Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:map_old_perms - map old file perms layout to the new layout*@old: permission set in old mapping* Returns: new permission mapping

Proto:static unsigned int map_old_perms(unsigned int old)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intold
194  new = old & 0xf
195  If old & MAY_READ Then new |= meta read | AA_MAY_OPEN
197  If old & MAY_WRITE Then new |= meta write | AA_MAY_CREATE | AA_MAY_DELETE | pair | pair | AA_MAY_OPEN
200  If old & 0x10 Then new |= pair
205  If old & 0x20 Then new |= LINK_SUBSET overlaid | verlaid
207  If old & 0x40 Then new |= AA_EXEC_MMAP
210  Return new
Caller
NameDescribe
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