OrangePi_CM5/security/selinux/include
Richard Haines 448857f580 selinux: allow FIOCLEX and FIONCLEX with policy capability
[ Upstream commit 65881e1db4e948614d9eb195b8e1197339822949 ]

These ioctls are equivalent to fcntl(fd, F_SETFD, flags), which SELinux
always allows too.  Furthermore, a failed FIOCLEX could result in a file
descriptor being leaked to a process that should not have access to it.

As this patch removes access controls, a policy capability needs to be
enabled in policy to always allow these ioctls.

Based-on-patch-by: Demi Marie Obenour <demiobenour@gmail.com>
Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
[PM: subject line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:31 +02:00
..
audit.h
…
avc.h
…
avc_ss.h
…
classmap.h
…
conditional.h
…
ibpkey.h
…
initial_sid_to_string.h
…
netif.h
…
netlabel.h
…
netnode.h
…
netport.h
…
objsec.h
…
policycap.h selinux: allow FIOCLEX and FIONCLEX with policy capability 2022-04-08 14:40:31 +02:00
policycap_names.h selinux: allow FIOCLEX and FIONCLEX with policy capability 2022-04-08 14:40:31 +02:00
security.h selinux: allow FIOCLEX and FIONCLEX with policy capability 2022-04-08 14:40:31 +02:00
xfrm.h
…