Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_quotactl

Proto:static int selinux_quotactl(int cmds, int type, int id, struct super_block *sb)

Type:int

Parameter:

TypeParameterName
intcmds
inttype
intid
struct super_block *sb
2183  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
2184  rc = 0
2186  If Not sb Then Return 0
2190  Case cmds == sync disk copy of a filesystems quotas
2191  Case cmds == urn quotas on
2192  Case cmds == urn quotas off
2193  Case cmds == set information about quota files
2194  Case cmds == set user quota structure
2195  rc = Check whether a task can perform a filesystem operation.
2196  Break
2197  Case cmds == get quota format used on given filesystem
2198  Case cmds == get information about quota files
2199  Case cmds == get user quota structure
2200  rc = Check whether a task can perform a filesystem operation.
2201  Break
2202  Default
2203  rc = 0
2204  Break
2206  Return rc