Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:57:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_inode_post_setxattr
Proto:static void selinux_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | |
| const char * | name | |
| const void * | value | |
| size_t | size | |
| int | flags |
| 3236 | If strcmp(name, XATTR_NAME_SELINUX) Then |
| 3238 | Return |
| 3241 | If Not initialized Then |
| 3247 | Return |
| 3250 | rc = security_context_to_sid_force( & selinux_state, value, size, & newsid) |
| 3252 | If rc Then |
| 3253 | pr_err("SELinux: unable to map context to SIDfor (%s, %lu), rc=%d\n", s_id, Stat data, not accessed from path walking , - rc) |
| 3256 | Return |
| 3262 | SID of this object = newsid |
| 3263 | initialization flag = initialized |
| 3264 | spin_unlock( & lock) |
| 3266 | Return |
| 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 |