函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rawdata_open

函数原型:static int rawdata_open(struct inode *inode, struct file *file)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *file
1392  如果非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.则返回:负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  如果非loaddata则返回:负ENOENT
1400  private等于rawdata_f_data_alloc(he original size of the payload )
1401  如果是错误
1402  error等于错误
1403  转到: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  如果error则转到:fail_decompress
1414  needed for tty driver, and maybe others 等于private
1415  返回:0
1417  fail_decompress :
1418  rawdata_f_data_free(private)
1419  返回:error
1421  fail_private_alloc :
1422  aa_put_loaddata(loaddata)
1423  返回:error