Function report |
Source Code:security\apparmor\policy.c |
Create Date:2022-07-28 19:51:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_alloc_profile - allocate, initialize and return a new profile*@hname: name of the profile (NOT NULL)*@gfp: allocation type* Returns: refcount profile or NULL on failure
Proto:struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, gfp_t gfp)
Type:struct aa_profile
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | hname | |
struct aa_proxy * | proxy | |
gfp_t | gfp |
262 | profile = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
264 | If Not profile Then Return NULL |
267 | If Not aa_policy_init - initialize a policy structure*@policy: policy to initialize (NOT NULL)*@prefix: prefix name if any is required Then Go to fail |
269 | If Not aa_label_init( & label, 1, gfp) Then Go to fail |
273 | If Not proxy Then |
277 | Else aa_get_proxy(proxy) |
282 | flags |= label is a profile |
286 | Return profile |
288 | fail : |
291 | Return NULL |
Name | Describe |
---|---|
aa_new_null_profile | aa_new_null_profile - create or find a null-X learning profile*@parent: profile that caused this profile to be created (NOT NULL)*@hat: true if the null- learning profile is a hat*@base: name to base the null profile off of*@gfp: type of allocation |
unpack_profile | pack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a failure |
alloc_ns | alloc_ns - allocate, initialize and return a new namespace*@prefix: parent namespace name (MAYBE NULL)*@name: a preallocated name (NOT NULL)* Returns: refcounted namespace or NULL on failure. |
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 |