Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:compress_loaddata

Proto:static int compress_loaddata(struct aa_loaddata *data)

Type:int

Parameter:

TypeParameterName
struct aa_loaddata *data
1127  AA_BUG(he compressed size of the payload > 0)
1133  If aa_g_rawdata_compression_level != 0 Then
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  If error Then Return 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  Else he compressed size of the payload = he original size of the payload
1144  Return 0
Caller
NameDescribe
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