Skip to content

Commit

Permalink
Merge pull request #720 from etbe/raid
Browse files Browse the repository at this point in the history
small mdadm changes for cron job
  • Loading branch information
pebenito authored Oct 6, 2023
2 parents 0a96509 + c2a9111 commit d542d53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion policy/modules/kernel/corecommands.fc
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ ifdef(`distro_debian',`
/usr/sbin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0)
/usr/sbin/smrsh -- gen_context(system_u:object_r:shell_exec_t,s0)

/usr/share/mdadm/checkarray -- gen_context(system_u:object_r:bin_t,s0)
/usr/share/(.*/)?bin(/.*)? gen_context(system_u:object_r:bin_t,s0)
/usr/share/ajaxterm/ajaxterm\.py.* -- gen_context(system_u:object_r:bin_t,s0)
/usr/share/ajaxterm/qweb\.py.* -- gen_context(system_u:object_r:bin_t,s0)
Expand Down
2 changes: 2 additions & 0 deletions policy/modules/system/raid.fc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
/usr/bin/mdmpd -- gen_context(system_u:object_r:mdadm_exec_t,s0)
/usr/bin/raid-check -- gen_context(system_u:object_r:mdadm_exec_t,s0)

/usr/share/mdadm/checkarray -- gen_context(system_u:object_r:mdadm_exec_t,s0)

# Systemd unit files
/usr/lib/systemd/system/[^/]*mdadm-.* -- gen_context(system_u:object_r:mdadm_unit_t,s0)
/usr/lib/systemd/system/[^/]*mdmon.* -- gen_context(system_u:object_r:mdadm_unit_t,s0)
Expand Down
2 changes: 2 additions & 0 deletions policy/modules/system/raid.te
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dev_read_realtime_clock(mdadm_t)
# create links in /dev/md
dev_create_generic_symlinks(mdadm_t)

domain_dontaudit_search_all_domains_state(mdadm_t)
domain_use_interactive_fds(mdadm_t)

files_read_etc_files(mdadm_t)
Expand Down Expand Up @@ -95,6 +96,7 @@ userdom_dontaudit_search_user_home_content(mdadm_t)

optional_policy(`
cron_system_entry(mdadm_t, mdadm_exec_t)
cron_rw_inherited_tmp_files(mdadm_t)
')

optional_policy(`
Expand Down

0 comments on commit d542d53

Please sign in to comment.