Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_make_classes

Proto:static int sel_make_classes(struct selinux_fs_info *fsi)

Type:int

Parameter:

TypeParameterName
struct selinux_fs_info *fsi
1797  sel_remove_entries(class_dir)
1799  rc = security_get_classes(state, & classes, & nclasses)
1800  If rc Then Return rc
1804  last_class_ino = sel_class_to_ino(nclasses + 2)
1806  When i < nclasses cycle
1809  class_name_dir = declaration for sel_make_class_dirs
1811  If IS_ERR(class_name_dir) Then
1813  Go to out
1817  rc = sel_make_class_dir_entries(classes[i], i + 1, class_name_dir)
1819  If rc Then Go to out
1822  rc = 0
1823  out :
1824  When i < nclasses cycle kfree(classes[i])
1826  kfree(classes)
1827  Return rc
Caller
NameDescribe
sel_make_policy_nodes