Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-28 10:05:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_syslog_permissions

Proto:static int check_syslog_permissions(int type, int source)

Type:int

Parameter:

TypeParameterName
inttype
intsource
685  If source == SYSLOG_FROM_PROC && type != Open the log. Currently a NOP. Then Go to ok
688  If syslog_action_restricted(type) Then
689  If Check operation authority Then Go to ok
696  pr_warn_once("%s (%d): Attempt to access syslog with CAP_SYS_ADMIN but no CAP_SYSLOG (deprecated).\n", comm, task_pid_nr(current process))
700  Go to ok
702  Return -EPERM
704  ok :
705  Return security_syslog(type)
Caller
NameDescribe
devkmsg_open
do_syslog