diff options
author | Gary Tierney <gary.tierney@gmx.com> | 2017-01-09 10:07:31 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-01-09 10:07:31 -0500 |
commit | 4262fb51c9f53e0c623663216e6a5d1872a45824 (patch) | |
tree | d0f5bd65f6997a134804685bfe6c26fbf1dd513b /security/selinux/hooks.c | |
parent | b21507e272627c434e8dd74e8d51fd8245281b59 (diff) | |
download | linux-4262fb51c9f53e0c623663216e6a5d1872a45824.tar.bz2 |
selinux: log errors when loading new policy
Adds error logging to the code paths which can fail when loading a new
policy in sel_write_load(). If the policy fails to be loaded from
userspace then a warning message is printed, whereas if a failure occurs
after loading policy from userspace an error message will be printed
with details on where policy loading failed (recreating one of /classes/,
/policy_capabilities/, /booleans/ in the SELinux fs).
Also, if sel_make_bools() fails to obtain an SID for an entry in
/booleans/* an error will be printed indicating the path of the
boolean.
Signed-off-by: Gary Tierney <gary.tierney@gmx.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions