函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:compress_loaddata

函数原型:static int compress_loaddata(struct aa_loaddata *data)

返回类型:int

参数:

类型参数名称
struct aa_loaddata *data
1127  AA_BUG(he compressed size of the payload > 0)
1133  如果aa_g_rawdata_compression_level不等于0则
1134  udata等于Pointer to payload. If @compressed_size > 0, then this is the* compressed version of the payload, else it is the uncompressed* version (with the size indicated by @size).
1135  error等于deflate_compress(udata, he original size of the payload , & Pointer to payload. If @compressed_size > 0, then this is the* compressed version of the payload, else it is the uncompressed* version (with the size indicated by @size)., & he compressed size of the payload )
1137  如果error则返回:error
1140  kvfree() - Free memory.*@addr: Pointer to allocated memory.* kvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc().* It is slightly more efficient to use kfree() or vfree() if you are certain* that you know which one to use.
1141  否则he compressed size of the payload 等于he original size of the payload
1144  返回:0
调用者
名称描述
aa_unpackaa_unpack - unpack packed binary profile(s) data loaded from user space*@udata: user data copied to kmem (NOT NULL)*@lh: list to place unpacked profiles in a aa_repl_ws*@ns: Returns namespace profile is in if specified else NULL (NOT NULL)* Unpack user