Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_flags_to_may - convert S_ to MAY_ values*@flags: the S_ value* Returns the equivalent MAY_ value

Proto:static int smack_flags_to_may(int flags)

Type:int

Parameter:

TypeParameterName
intflags
2878  may = 0
2880  If flags & S_IRUGO Then may |= MAY_READ
2882  If flags & S_IWUGO Then may |= MAY_WRITE
2884  If flags & S_IXUGO Then may |= MAY_EXEC
2887  Return may
Caller
NameDescribe
smack_shm_associatesmack_shm_associate - Smack access check for shm*@isp: the object*@shmflg: access requested* Returns 0 if current has the requested access, error code otherwise
smack_shm_shmatsmack_shm_shmat - Smack access for shmat*@isp: the object*@shmaddr: unused*@shmflg: access requested* Returns 0 if current has the requested access, error code otherwise
smack_sem_associatesmack_sem_associate - Smack access check for sem*@isp: the object*@semflg: access requested* Returns 0 if current has the requested access, error code otherwise
smack_msg_queue_associatesmack_msg_queue_associate - Smack access check for msg_queue*@isp: the object*@msqflg: access requested* Returns 0 if current has the requested access, error code otherwise
smack_msg_queue_msgsndsmack_msg_queue_msgsnd - Smack access check for msg_queue*@isp: the object*@msg: unused*@msqflg: access requested* Returns 0 if current has the requested access, error code otherwise
smack_ipc_permissionsmack_ipc_permission - Smack access for ipc_permission()*@ipp: the object permissions*@flag: access requested* Returns 0 if current has read and write access, error code otherwise