summaryrefslogtreecommitdiffstats
path: root/security/selinux/netport.c
diff options
context:
space:
mode:
authorStephen Smalley <stephen.smalley.work@gmail.com>2020-06-17 15:23:09 -0400
committerPaul Moore <paul@paul-moore.com>2020-06-23 20:57:01 -0400
commit7383c0f94d3c902d5dd68792331e9a1d4a5ad6cb (patch)
tree4a3b17a0ac9bcfde9caa98c6e4d576cb6438a0ea /security/selinux/netport.c
parent382c2b5d23b4245f1818f69286db334355488dc4 (diff)
downloadlinux-7383c0f94d3c902d5dd68792331e9a1d4a5ad6cb.tar.gz
linux-7383c0f94d3c902d5dd68792331e9a1d4a5ad6cb.tar.bz2
linux-7383c0f94d3c902d5dd68792331e9a1d4a5ad6cb.zip
selinux: log error messages on required process class / permissions
In general SELinux no longer treats undefined object classes or permissions in the policy as a fatal error, instead handling them in accordance with handle_unknown. However, the process class and process transition and dyntransition permissions are still required to be defined due to dependencies on these definitions for default labeling behaviors, role and range transitions in older policy versions that lack an explicit class field, and role allow checking. Log error messages in these cases since otherwise the policy load will fail silently with no indication to the user as to the underlying cause. While here, fix the checking for process transition / dyntransition so that omitting either permission is handled as an error; both are needed in order to ensure that role allow checking is consistently applied. Reported-by: bauen1 <j2468h@googlemail.com> Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/netport.c')
0 files changed, 0 insertions, 0 deletions