Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:show_sid

Proto:static int show_sid(struct seq_file *m, unsigned int sid)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
unsigned intsid
1078  char * context = NULL
1082  rc = security_sid_to_context( & selinux_state, sid, & context, & len)
1084  If Not rc Then
1085  has_comma = context && strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
1087  seq_putc(m, '=')
1088  If has_comma Then seq_putc(m, '\"')
1090  seq_escape(m, context, "\"\n\\")
1091  If has_comma Then seq_putc(m, '\"')
1094  kfree(context)
1095  Return rc
Caller
NameDescribe
selinux_sb_show_options