Function report |
Source Code:security\apparmor\policy.c |
Create Date:2022-07-28 19:52:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_may_manage_policy - can the current task manage policy*@label: label to check if it can manage policy*@op: the policy manipulation operation being done* Returns: 0 if the task is allowed to manipulate policy else error
Proto:int aa_may_manage_policy(struct aa_label *label, struct aa_ns *ns, unsigned int mask)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct aa_label * | label | |
| struct aa_ns * | ns | |
| unsigned int | mask |
| 684 | If mask & AA_MAY_REMOVE_POLICY Then op = OP_PROF_RM |
| 686 | Else if mask & AA_MAY_REPLACE_POLICY Then op = OP_PROF_REPL |
| 688 | Else op = OP_PROF_LOAD |
| 701 | Return 0 |
| Name | Describe |
|---|---|
| profile_remove | .remove file hook fn to remove loaded policy |
| ns_mkdir_op | |
| ns_rmdir_op |
| 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 |