Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 19:02:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_getprocattr
Proto:static int selinux_getprocattr(struct task_struct *p, char *name, char **value)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | p | |
char * | name | |
char ** | value |
6293 | If current process != p Then |
6301 | If Not strcmp(name, "current") Then sid = current SID |
6303 | Else if Not strcmp(name, "prev") Then sid = SID prior to last execve |
6307 | Else if Not strcmp(name, "fscreate") Then sid = fscreate SID |
6309 | Else if Not strcmp(name, "keycreate") Then sid = keycreate SID |
6311 | Else if Not strcmp(name, "sockcreate") Then sid = fscreate SID |
6313 | Else |
6319 | If Not sid Then Return 0 |
6322 | error = security_sid_to_context( & selinux_state, sid, value, & len) |
6325 | Return len |
6327 | bad : |
6329 | Return error |
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 |