函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smackfs.c Create Date:2022-07-27 20:58:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int smk_fill_super(struct super_block *sb, struct fs_context *fc)

返回类型:int

参数:

类型参数名称
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  如果rc不等于0则
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  返回:rc
2892  返回:0