Function report |
Source Code:security\apparmor\domain.c |
Create Date:2022-07-28 19:51:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static struct aa_label *find_attach(const struct linux_binprm *bprm, struct aa_ns *ns, struct list_head *head, const char *name, const char **info)
Type:struct aa_label
Parameter:
Type | Parameter | Name |
---|---|---|
const struct linux_binprm * | bprm | |
struct aa_ns * | ns | |
struct list_head * | head | |
const char * | name | |
const char ** | info |
385 | candidate_len = 0 , candidate_xattrs = 0 |
386 | bool conflict = false |
387 | struct aa_profile * profile, * candidate = NULL |
393 | restart : |
395 | If flags & profile is null learning profile && label == ns_unconfined(ns) Then Continue |
410 | If xmatch Then |
419 | ret = 0 |
421 | If count < candidate_len Then Continue |
424 | If bprm && xattr_count Then |
442 | If ret < 0 Then Continue |
451 | If count == candidate_len && ret <= candidate_xattrs Then |
454 | If ret == candidate_xattrs Then conflict = true |
456 | Continue |
463 | candidate_len = xmatch_len |
464 | candidate_xattrs = ret |
465 | conflict = false |
481 | Return NULL |
484 | out : |
488 | Return label |
Name | Describe |
---|---|
x_to_label | x_to_label - get target label for a given xindex*@profile: current profile (NOT NULL)*@bprm: binprm structure of transitioning task*@name: name to lookup (NOT NULL)*@xindex: index into x transition table*@lookupname: returns: name used in lookup if one |
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 |