Skip to content

Commit

Permalink
Allow coreos-installer-generator manage mdadm_conf_t files
Browse files Browse the repository at this point in the history
Resolves: RHEL-38614
  • Loading branch information
zpytela committed Aug 30, 2024
1 parent 45da5e7 commit 3e53e58
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions policy/modules/contrib/coreos_installer.te
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ optional_policy(`
')

optional_policy(`
raid_create_conf_dirs(coreos_installer_generator_t)
raid_manage_conf_files(coreos_installer_generator_t)
raid_filetrans_named_content(coreos_installer_generator_t)
')

Expand Down
18 changes: 18 additions & 0 deletions policy/modules/contrib/raid.if
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,24 @@ interface(`raid_manage_conf_files',`
manage_files_pattern($1, mdadm_conf_t, mdadm_conf_t)
')

########################################
## <summary>
## Create mdadm config dirs.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`raid_create_conf_dirs',`
gen_require(`
type mdadm_conf_t;
')

allow $1 mdadm_conf_t:dir create_dir_perms;
')

########################################
## <summary>
## Transition to mdadm named content
Expand Down

0 comments on commit 3e53e58

Please sign in to comment.