函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__aa_fs_create_rawdata

函数原型:int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata)

返回类型:int

参数:

类型参数名称
struct aa_ns *ns
struct aa_loaddata *rawdata
1462  AA_BUG(!ns)
1463  AA_BUG(!rawdata)
1464  AA_BUG(!是互斥锁)
1465  AA_BUG(!ns_subdata_dir(ns))
1472  name等于kasprintf(GFP_KERNEL, "%ld", revision)
1473  如果非name则返回:负ENOMEM
1476  dir等于aafs_create_dir - create a directory in the apparmorfs filesystem*@name: name of dentry to create*@parent: parent directory for this dentry* see aafs_create
1477  如果是错误则返回:错误
1480  dents[AAFS_LOADDATA_DIR]等于dir
1482  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
1484  如果是错误则转到:fail
1486  dents[AAFS_LOADDATA_ABI]等于dent
1488  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
1490  如果是错误则转到:fail
1492  dents[AAFS_LOADDATA_REVISION]等于dent
1494  如果aa_g_hash_policy
1495  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
1497  如果是错误则转到:fail
1499  dents[AAFS_LOADDATA_HASH]等于dent
1502  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
1505  如果是错误则转到:fail
1507  dents[AAFS_LOADDATA_COMPRESSED_SIZE]等于dent
1509  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
1511  如果是错误则转到:fail
1513  dents[AAFS_LOADDATA_DATA]等于dent
1514  i_size等于he original size of the payload
1516  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
1517  添加链表项
1520  返回:0
1522  fail :
1523  remove_rawdata_dents(rawdata)
1525  返回:错误
调用者
名称描述
aa_replace_profilesaa_replace_profiles - replace profile(s) on the profile list*@policy_ns: namespace load is occurring on*@label: label that is attempting to load/replace policy*@mask: permission mask*@udata: serialized data stream (NOT NULL)* unpack and replace a profile