Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:23:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_setprocattr - Smack process attribute setting*@name: the name of the attribute in /proc/
Proto:static int smack_setprocattr(const char *name, void *value, size_t size)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | name | |
void * | value | |
size_t | size |
3519 | tsp = smack_cred(current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()) |
3525 | If Not smack_privileged(Allow MAC configuration or state changes) && list_empty - tests whether a list is empty*@head: the list to test. Then Return -EPERM |
3534 | skp = smk_import_entry(value, size) |
3542 | If skp == smack_known_web || skp == smack_known_star Then Return -EINVAL |
3545 | If Not smack_privileged(Allow MAC configuration or state changes) Then |
3549 | rc = 0 |
3550 | Break |
3556 | new = prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification |
3560 | tsp = smack_cred(new) |
3561 | label for access control = skp |
3565 | smk_destroy_label_list( & transit allowed labels ) |
3568 | Return size |
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 |