X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=security%2Fcommoncap.c;h=5f629be7231e5d9543194185cfa117d8458883ec;hp=9b8cd2d3389be545b713142bbcd68de090de1b28;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9 diff --git a/security/commoncap.c b/security/commoncap.c index 9b8cd2d33..5f629be72 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -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; }