Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-28 16:39:59
Last Modify:2022-05-23 18:05:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pc_update_perm - update the permissions of an ipc object*@in: the permission given as input.*@out: the permission of the ipc to set.

Proto:int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)

Type:int

Parameter:

TypeParameterName
struct ipc64_perm *in
struct kern_ipc_perm *out
655  uid = make_kuid(current_user_ns(), uid)
656  gid = make_kgid(current_user_ns(), gid)
657  If Not uid_valid(uid) || Not gid_valid(gid) Then Return -EINVAL
660  uid = uid
661  gid = gid
662  mode = mode & ~S_IRWXUGO | mode & S_IRWXUGO
665  Return 0
Caller
NameDescribe
msgctl_downThis function handles some msgctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.
semctl_downThis function handles some semctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.
shmctl_downThis function handles some shmctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.