kernel_optimize_test/security/selinux/ss
Stephen Smalley 7383c0f94d 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>
2020-06-23 20:57:01 -04:00
..
avtab.c selinux: avtab_init() and cond_policydb_init() return void 2020-03-05 14:55:43 -05:00
avtab.h selinux: avtab_init() and cond_policydb_init() return void 2020-03-05 14:55:43 -05:00
conditional.c selinux: fix error return code in cond_read_list() 2020-04-27 17:44:39 -04:00
conditional.h selinux: avtab_init() and cond_policydb_init() return void 2020-03-05 14:55:43 -05:00
constraint.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
context.c selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
context.h selinux: move context hashing under sidtab 2020-04-17 16:04:38 -04:00
ebitmap.c selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
ebitmap.h selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
hashtab.c selinux: do not allocate hashtabs dynamically 2020-05-01 16:34:57 -04:00
hashtab.h selinux: do not allocate hashtabs dynamically 2020-05-01 16:34:57 -04:00
mls_types.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mls.c selinux: do not allocate hashtabs dynamically 2020-05-01 16:34:57 -04:00
mls.h selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
policydb.c selinux: log error messages on required process class / permissions 2020-06-23 20:57:01 -04:00
policydb.h selinux: do not allocate hashtabs dynamically 2020-05-01 16:34:57 -04:00
services.c selinux: do not allocate hashtabs dynamically 2020-05-01 16:34:57 -04:00
services.h selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
sidtab.c selinux: move context hashing under sidtab 2020-04-17 16:04:38 -04:00
sidtab.h selinux: move context hashing under sidtab 2020-04-17 16:04:38 -04:00
symtab.c selinux: do not allocate hashtabs dynamically 2020-05-01 16:34:57 -04:00
symtab.h selinux: do not allocate hashtabs dynamically 2020-05-01 16:34:57 -04:00