]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/smack/smack_lsm.c
syslog: distinguish between /proc/kmsg and syscalls
[net-next-2.6.git] / security / smack / smack_lsm.c
index 529c9ca65878a0139303362316f3e0936b0da8c8..a5721b373f53935601c63687acc5b4454acc54b4 100644 (file)
@@ -157,12 +157,12 @@ static int smack_ptrace_traceme(struct task_struct *ptp)
  *
  * Returns 0 on success, error code otherwise.
  */
-static int smack_syslog(int type)
+static int smack_syslog(int type, bool from_file)
 {
        int rc;
        char *sp = current_security();
 
-       rc = cap_syslog(type);
+       rc = cap_syslog(type, from_file);
        if (rc != 0)
                return rc;