|
@@ -318,8 +318,10 @@ static int check_syslog_permissions(int type, bool from_file)
|
|
|
return 0;
|
|
|
/* For historical reasons, accept CAP_SYS_ADMIN too, with a warning */
|
|
|
if (capable(CAP_SYS_ADMIN)) {
|
|
|
- WARN_ONCE(1, "Attempt to access syslog with CAP_SYS_ADMIN "
|
|
|
- "but no CAP_SYSLOG (deprecated).\n");
|
|
|
+ printk_once(KERN_WARNING "%s (%d): "
|
|
|
+ "Attempt to access syslog with CAP_SYS_ADMIN "
|
|
|
+ "but no CAP_SYSLOG (deprecated).\n",
|
|
|
+ current->comm, task_pid_nr(current));
|
|
|
return 0;
|
|
|
}
|
|
|
return -EPERM;
|