函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:show_sid

函数原型:static int show_sid(struct seq_file *m, unsigned int sid)

返回类型:int

参数:

类型参数名称
struct seq_file *m
unsigned intsid
1078  char * context = NULL
1082  rc等于security_sid_to_context( & selinux_state, sid, & context, & len)
1084  如果非rc
1085  has_comma等于contextstrchr - 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  如果has_commaseq_putc(m, '\"')
1090  seq_escape(m, context, "\"\n\\")
1091  如果has_commaseq_putc(m, '\"')
1094  释放内存
1095  返回:rc
调用者
名称描述
selinux_sb_show_options