Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smk_rule_show

Proto:static void smk_rule_show(struct seq_file *s, struct smack_rule *srp, int max)

Type:void

Parameter:

TypeParameterName
struct seq_file *s
struct smack_rule *srp
intmax
572  If strlen - Find the length of a string*@s: The string to be sized >= max || strlen - Find the length of a string*@s: The string to be sized >= max Then Return
576  If smk_access == 0 Then Return
579  seq_printf(s, "%s %s", smk_known, smk_known)
583  seq_putc(s, ' ')
585  If smk_access & MAY_READ Then seq_putc(s, 'r')
587  If smk_access & MAY_WRITE Then seq_putc(s, 'w')
589  If smk_access & MAY_EXEC Then seq_putc(s, 'x')
591  If smk_access & MAY_APPEND Then seq_putc(s, 'a')
593  If smk_access & Controls directory labeling Then seq_putc(s, 't')
595  If smk_access & Locks should be writes, but ... Then seq_putc(s, 'l')
597  If smk_access & Report use of this rule Then seq_putc(s, 'b')
600  seq_putc(s, '\n')
Caller
NameDescribe
load_seq_show
load_self_seq_show
load2_seq_showSeq_file read operations for /smack/load2
load_self2_seq_show