Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\apparmorfs.c Create Date:2022-07-28 19:49:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:.load file hook fn to load policy

Proto:static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, loff_t *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *f
const char __user *buf
size_tsize
loff_t *pos
474  ns = aa_get_ns - increment references count on @ns*@ns: namespace to increment reference count of (MAYBE NULL)* Returns: pointer to @ns, if @ns is NULL returns NULL* Requires: @ns must be held with valid refcount when called
475  error = policy_update(AA_MAY_LOAD_POLICY, buf, size, pos, ns)
477  aa_put_ns - decrement refcount on @ns*@ns: namespace to put reference of* Decrement reference count of @ns and if no longer in use free it
479  Return error