diff options
author | Eric Paris <eparis@redhat.com> | 2008-06-09 16:51:37 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-07-14 01:02:00 -0400 |
commit | 6cbe27061a69ab89d25dbe42d1a4f33a8425fe88 (patch) | |
tree | 883e50c699dcd495ca9fc985e71622394ce21001 /security/selinux/selinuxfs.c | |
parent | 22df4adb049a5cbb340dd935f5bbfa1ab3947562 (diff) |
SELinux: more user friendly unknown handling printk
I've gotten complaints and reports about people not understanding the
meaning of the current unknown class/perm handling the kernel emits on
every policy load. Hopefully this will make make it clear to everyone
the meaning of the message and won't waste a printk the user won't care
about anyway on systems where the kernel and the policy agree on
everything.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/selinuxfs.c')
-rw-r--r-- | security/selinux/selinuxfs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 07a5db69571c..69c9dccc8cf0 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c | |||
@@ -356,11 +356,6 @@ static ssize_t sel_write_load(struct file *file, const char __user *buf, | |||
356 | length = count; | 356 | length = count; |
357 | 357 | ||
358 | out1: | 358 | out1: |
359 | |||
360 | printk(KERN_INFO "SELinux: policy loaded with handle_unknown=%s\n", | ||
361 | (security_get_reject_unknown() ? "reject" : | ||
362 | (security_get_allow_unknown() ? "allow" : "deny"))); | ||
363 | |||
364 | audit_log(current->audit_context, GFP_KERNEL, AUDIT_MAC_POLICY_LOAD, | 359 | audit_log(current->audit_context, GFP_KERNEL, AUDIT_MAC_POLICY_LOAD, |
365 | "policy loaded auid=%u ses=%u", | 360 | "policy loaded auid=%u ses=%u", |
366 | audit_get_loginuid(current), | 361 | audit_get_loginuid(current), |