Label /lib symlink as lib_t for every distro
As in Debian, Gentoo and Arch Linux /lib may be a symlink, move its file context definition outside of ifdef blocks.
This commit is contained in:
parent
d7acf5d3c5
commit
74ec2d61b2
|
@ -36,19 +36,12 @@ ifdef(`distro_redhat',`
|
|||
# /lib(64)?
|
||||
#
|
||||
/lib -d gen_context(system_u:object_r:lib_t,s0)
|
||||
/lib -l gen_context(system_u:object_r:lib_t,s0)
|
||||
/lib/.* gen_context(system_u:object_r:lib_t,s0)
|
||||
/lib/ld-[^/]*\.so(\.[^/]*)* -- gen_context(system_u:object_r:ld_so_t,s0)
|
||||
|
||||
/lib/security/pam_poldi\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0)
|
||||
|
||||
ifdef(`distro_debian',`
|
||||
/lib -l gen_context(system_u:object_r:lib_t,s0)
|
||||
')
|
||||
|
||||
ifdef(`distro_gentoo',`
|
||||
/lib -l gen_context(system_u:object_r:lib_t,s0)
|
||||
')
|
||||
|
||||
#
|
||||
# /opt
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue