函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\apparmorfs.c Create Date:2022-07-27 21:21:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:.load file hook fn to load policy

函数原型:static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, loff_t *pos)

返回类型:ssize_t

参数:

类型参数名称
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  返回:error