Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_permissions

Proto:static int set_permissions(struct ctl_table_header *head, struct ctl_table *table)

Type:int

Parameter:

TypeParameterName
struct ctl_table_header *head
struct ctl_table *table
37  user_ns = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(set, structuser_namespace, set)
42  If ns_capable(user_ns, Override max number of keymaps ) Then mode = (mode & S_IRWXU) >> 6
44  Else mode = mode & S_IROTH
47  Return mode << 6 | mode << 3 | mode