Function report | 
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 activity | Download SCCT | Chinese | 
Name:check_syslog_permissions
Proto:static int check_syslog_permissions(int type, int source)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | type | |
| int | source | 
| 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 | 
| 695 | If Check operation authority Then | 
| 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) | 
| Name | Describe | 
|---|---|
| devkmsg_open | |
| do_syslog | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |