Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rawdata_open

Proto:static int rawdata_open(struct inode *inode, struct file *file)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *file
1392  If Not policy_view_capable - check if viewing policy in at @ns is allowed* Returns: true if viewing policy is allowed* If @ns is NULL then the namespace being viewed is assumed to be the* tasks current namespace. Then Return -EACCES
1395  loaddata = __aa_get_loaddata - get a reference count to uncounted data reference*@data: reference to get a count on* Returns: pointer to reference OR NULL if race is lost and reference is* being repeated
1396  If Not loaddata Then Return -ENOENT
1400  private = rawdata_f_data_alloc(he original size of the payload )
1401  If IS_ERR(private) Then
1402  error = PTR_ERR(private)
1403  Go to fail_private_alloc
1406  loaddata = loaddata
1408  error = deflate_decompress(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 , RAWDATA_F_DATA_BUF(private), he original size of the payload )
1411  If error Then Go to fail_decompress
1414  needed for tty driver, and maybe others = private
1415  Return 0
1417  fail_decompress :
1418  rawdata_f_data_free(private)
1419  Return error
1421  fail_private_alloc :
1422  aa_put_loaddata(loaddata)
1423  Return error