syslog: distinguish between /proc/kmsg and syscalls
[deliverable/linux.git] / security / selinux / hooks.c
index 9a2ee845e9d4c4b40bc29a9f33c67d591f2e8c30..a4862a0730fa52690afbae320c72f0409d3c1acd 100644 (file)
@@ -76,6 +76,7 @@
 #include <linux/selinux.h>
 #include <linux/mutex.h>
 #include <linux/posix-timers.h>
+#include <linux/syslog.h>
 
 #include "avc.h"
 #include "objsec.h"
@@ -2049,11 +2050,11 @@ static int selinux_quota_on(struct dentry *dentry)
        return dentry_has_perm(cred, NULL, dentry, FILE__QUOTAON);
 }
 
-static int selinux_syslog(int type)
+static int selinux_syslog(int type, bool from_file)
 {
        int rc;
 
-       rc = cap_syslog(type);
+       rc = cap_syslog(type, from_file);
        if (rc)
                return rc;
 
This page took 0.042216 seconds and 5 git commands to generate.