Function report |
Source Code:security\apparmor\domain.c |
Create Date:2022-07-28 19:51:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_xattrs_match - check whether a file matches the xattrs defined in profile*@bprm: binprm struct for the process to validate*@profile: profile to match against (NOT NULL)*@state: state to start match in* Returns: number of extended attributes that
Proto:static int aa_xattrs_match(const struct linux_binprm *bprm, struct aa_profile *profile, unsigned int state)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct linux_binprm * | bprm | |
struct aa_profile * | profile | |
unsigned int | state |
315 | char * value = NULL |
316 | value_size = 0 , ret = xattr_count |
318 | If Not bprm || Not xattr_count Then Return 0 |
320 | might_sleep() |
327 | When i < xattr_count cycle |
328 | size = vfs_getxattr_alloc(d, xattrs[i], & value, value_size, GFP_KERNEL) |
330 | If size >= 0 Then |
344 | If size < 0 Then |
359 | out : |
361 | Return ret |
Name | Describe |
---|---|
find_attach | d_attach - do attachment search for unconfined processes*@bprm - binprm structure of transitioning task*@ns: the current namespace (NOT NULL)*@head - profile list to walk (NOT NULL)*@name - to match against (NOT NULL)*@info - info message if there was an |
profile_transition |
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 |