Skip to content

Commit

Permalink
Label /etc/sysctl.d and /run/sysctl.d with system_conf_t
Browse files Browse the repository at this point in the history
Resolves: RHEL-56988
  • Loading branch information
zpytela committed Oct 23, 2024
1 parent 55262ef commit 0f07334
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions policy/modules/kernel/files.fc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ ifdef(`distro_suse',`

/etc/mdevctl\.d(/.*)? gen_context(system_u:object_r:mdevctl_conf_t,s0)
/etc/sysctl\.conf(\.old)? -- gen_context(system_u:object_r:system_conf_t,s0)
/etc/sysctl\.d(/.*)? gen_context(system_u:object_r:system_conf_t,s0)
/etc/sysconfig/ebtables.* -- gen_context(system_u:object_r:system_conf_t,s0)
/etc/sysconfig/ip6?tables.* -- gen_context(system_u:object_r:system_conf_t,s0)
/etc/sysconfig/ip6?tables\.save -- gen_context(system_u:object_r:system_conf_t,s0)
Expand Down Expand Up @@ -211,6 +212,8 @@ ifdef(`distro_debian',`
/run/motd\.dynamic -- gen_context(system_u:object_r:initrc_var_run_t,s0)
')

/run/sysctl\.d(/.*)? gen_context(system_u:object_r:system_conf_t,s0)

/sandbox(/.*)? gen_context(system_u:object_r:tmp_t,s0)
#
# /selinux
Expand Down

0 comments on commit 0f07334

Please sign in to comment.