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:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_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

Proto:static int smack_shm_shmat(struct kern_ipc_perm *isp, char __user *shmaddr, int shmflg)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *isp
char __user *shmaddr
intshmflg
3016  may = smack_flags_to_may - convert S_ to MAY_ values*@flags: the S_ value* Returns the equivalent MAY_ value
3017  Return smk_curacc_shm : check if current has access on shm*@isp : the object*@access : access requested* Returns 0 if current has the requested access, error code otherwise