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 fa8413f commit 73a2d29
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 @@ -61,6 +61,7 @@ ifdef(`distro_suse',`
/etc/securetty -- gen_context(system_u:object_r:etc_runtime_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 @@ -201,6 +202,8 @@ ifdef(`distro_redhat',`
/run/.*\.*pid <<none>>
/run/lock(/.*)? gen_context(system_u:object_r:var_lock_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 73a2d29

Please sign in to comment.