Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:55:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_binder_transfer_file

Proto:static int selinux_binder_transfer_file(struct task_struct *from, struct task_struct *to, struct file *file)

Type:int

Parameter:

TypeParameterName
struct task_struct *from
struct task_struct *to
struct file *file
2091  sid = get the objective security ID of a task
2092  fsec = selinux_file(file)
2093  dentry = dentry
2098  type = LSM_AUDIT_DATA_PATH
2099  path = f_path
2101  If sid != SID of open file description Then
2102  rc = avc_has_perm - Check permissions and perform any appropriate auditing
2107  If rc Then Return rc
2117  If Value for the false possibility is greater at compile time(IS_PRIVATE(d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper)) Then Return 0
2120  isec = Get the security label of a dentry's backing inode.
2121  Return avc_has_perm - Check permissions and perform any appropriate auditing