Function report |
Source Code:security\apparmor\file.c |
Create Date:2022-07-28 19:54:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_audit_file - handle the auditing of file operations*@profile: the profile being enforced (NOT NULL)*@perms: the permissions computed for the request (NOT NULL)*@op: operation being mediated*@request: permissions requested*@name: name of object being
Proto:int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, const char *op, unsigned int request, const char *name, const char *target, struct aa_label *tlabel, kuid_t ouid, const char *info, int error)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct aa_profile * | profile | |
| struct aa_perms * | perms | |
| const char * | op | |
| unsigned int | request | |
| const char * | name | |
| const char * | target | |
| struct aa_label * | tlabel | |
| kuid_t | ouid | |
| const char * | info | |
| int | error |
| 106 | type = AUDIT_APPARMOR_AUTO |
| 109 | tsk = NULL |
| 117 | tsk = NULL |
| 119 | If Value is more likely to compile time(!error) Then |
| 122 | If Value for the false possibility is greater at compile time(AUDIT_MODE(profile) == AUDIT_ALL) Then mask = 0xffff |
| 128 | If Value is more likely to compile time(!request) Then Return 0 |
| 130 | type = AUDIT_APPARMOR_AUDIT |
| 131 | Else |
| 136 | If request & set only when ~allow | deny Then type = AUDIT_APPARMOR_KILL |
| 140 | If request & set only when ~allow | deny && AUDIT_MODE(profile) != do not quiet audit messages && AUDIT_MODE(profile) != AUDIT_ALL Then request &= ~ set only when ~allow | deny |
| Name | Describe |
|---|---|
| profile_onexec | |
| handle_onexec | sure none ns domain transitions are correctly applied with onexec |
| apparmor_bprm_set_creds | apparmor_bprm_set_creds - set the new creds on the bprm struct*@bprm: binprm for the exec (NOT NULL)* Returns: %0 or error on failure* TODO: once the other paths are done see if we can't refactor into a fn |
| build_change_hat | helper fn for change_hat* Returns: label for hat transition OR ERR_PTR. Does NOT return NULL |
| change_hat | helper fn for changing into a hat* Returns: label for hat transition or ERR_PTR. Does not return NULL |
| aa_change_hat | aa_change_hat - change hat to/from subprofile*@hats: vector of hat names to try changing into (MAYBE NULL if @count == 0)*@count: number of hat names in @hats*@token: magic value to validate the hat change*@flags: flags affecting behavior of the change |
| change_profile_perms_wrapper | |
| aa_change_profile | aa_change_profile - perform a one-way profile transition*@fqname: name of profile may include namespace (NOT NULL)*@onexec: whether this transition is to take place immediately or at exec*@flags: flags affecting change behavior |
| path_name | |
| __aa_path_perm | |
| profile_path_link | |
| 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 |