函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_old_perms - map old file perms layout to the new layout*@old: permission set in old mapping* Returns: new permission mapping

函数原型:static unsigned int map_old_perms(unsigned int old)

返回类型:unsigned int

参数:

类型参数名称
unsigned intold
194  new等于old按位与0xf
195  如果old按位与MAY_READnew或等于meta read 按位或AA_MAY_OPEN
197  如果old按位与MAY_WRITEnew或等于meta write 按位或AA_MAY_CREATE按位或AA_MAY_DELETE按位或pair 按位或pair 按位或AA_MAY_OPEN
200  如果old按位与0x10则new或等于pair
205  如果old按位与0x20则new或等于LINK_SUBSET overlaid 按位或verlaid
207  如果old按位与0x40则new或等于AA_EXEC_MMAP
210  返回:new
调用者
名称描述
aa_compute_fpermsaa_compute_fperms - convert dfa compressed perms to internal perms*@dfa: dfa to compute perms for (NOT NULL)*@state: state in dfa*@cond: conditions to consider (NOT NULL)* TODO: convert from dfa + state to permission entry, do computation conversion