patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / security / commoncap.c
index 9b8cd2d..5f629be 100644 (file)
@@ -289,7 +289,7 @@ void cap_task_reparent_to_init (struct task_struct *p)
 
 int cap_syslog (int type)
 {
-       if ((type != 3) && !capable(CAP_SYS_ADMIN))
+       if ((type != 3 && type != 10) && !capable(CAP_SYS_ADMIN))
                return -EPERM;
        return 0;
 }