Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smk_fill_super - fill the smackfs superblock*@sb: the empty superblock*@fc: unused* Fill in the well known entries for the smack filesystem* Returns 0 on success, an error code on failure

Proto:static int smk_fill_super(struct super_block *sb, struct fs_context *fc)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
struct fs_context *fc
2830  static const struct tree_descr smack_files[] = {[load policy ] = {"load", & smk_load_ops, S_IRUGO | S_IWUSR}, [load label -> CIPSO mapping ] = {"cipso", & smk_cipso_ops, S_IRUGO | S_IWUSR}, [CIPSO DOI ] = {"doi", & smk_doi_ops, S_IRUGO | S_IWUSR}, [CIPSO level indicating direct label ] = {"direct", & smk_direct_ops, S_IRUGO | S_IWUSR}, [rnet ambient label ] = {"ambient", & smk_ambient_ops, S_IRUGO | S_IWUSR}, [single label hosts ] = {"netlabel", & smk_net4addr_ops, S_IRUGO | S_IWUSR}, [he only "capable" label ] = {"onlycap", & smk_onlycap_ops, S_IRUGO | S_IWUSR}, [logging ] = {"logging", & smk_logging_ops, S_IRUGO | S_IWUSR}, [ask specific rules ] = {"load-self", & smk_load_self_ops, S_IRUGO | S_IWUGO}, [access policy ] = {"access", & smk_access_ops, S_IRUGO | S_IWUGO}, [CIPSO level indicating mapped label ] = {"mapped", & smk_mapped_ops, S_IRUGO | S_IWUSR}, [load policy with long labels ] = {"load2", & smk_load2_ops, S_IRUGO | S_IWUSR}, [load task specific rules with long labels ] = {"load-self2", & smk_load_self2_ops, S_IRUGO | S_IWUGO}, [make an access check with long labels ] = {"access2", & smk_access2_ops, S_IRUGO | S_IWUGO}, [load long label -> CIPSO mapping ] = {"cipso2", & smk_cipso2_ops, S_IRUGO | S_IWUSR}, [set rules with subject label to '-' ] = {"revoke-subject", & smk_revoke_subj_ops, S_IRUGO | S_IWUSR}, [change or add rules (long labels) ] = {"change-rule", & smk_change_rule_ops, S_IRUGO | S_IWUSR}, [change syslog label) ] = {"syslog", & smk_syslog_ops, S_IRUGO | S_IWUSR}, [set ptrace rule ] = {"ptrace", & smk_ptrace_ops, S_IRUGO | S_IWUSR}, [single label IPv6 hosts ] = {"ipv6host", & smk_net6addr_ops, S_IRUGO | S_IWUSR}, [label possible without CAP_MAC_ADMIN ] = {"relabel-self", & smk_relabel_self_ops, S_IRUGO | S_IWUGO}, {""}}
2885  rc = simple_fill_super(sb, "SMAC" , smack_files)
2886  If rc != 0 Then
2887  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
2889  Return rc
2892  Return 0