函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_flags_to_may - convert S_ to MAY_ values*@flags: the S_ value* Returns the equivalent MAY_ value

函数原型:static int smack_flags_to_may(int flags)

返回类型:int

参数:

类型参数名称
intflags
2878  may等于0
2880  如果flags按位与S_IRUGOmay或等于MAY_READ
2882  如果flags按位与S_IWUGOmay或等于MAY_WRITE
2884  如果flags按位与S_IXUGOmay或等于MAY_EXEC
2887  返回:may
调用者
名称描述
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