函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Remaining nodes use transaction based IO methods like nfsd/nfsctl.c

函数原型:static ssize_t sel_write_access(struct file *file, char *buf, size_t size)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
char *buf
size_tsize
810  fsi等于s_fs_info
811  state等于state
812  char * scon = NULL, * tcon = NULL
818  length等于avc_has_perm - Check permissions and perform any appropriate auditing
821  如果length则转到:out
824  length等于负ENOMEM
825  scon等于分配内存并置零
826  如果非scon则转到:out
829  length等于负ENOMEM
830  tcon等于分配内存并置零
831  如果非tcon则转到:out
834  length等于负EINVAL
835  如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments不等于3则转到:out
838  length等于security_context_str_to_sid(state, scon, & ssid, GFP_KERNEL)
839  如果length则转到:out
842  length等于security_context_str_to_sid(state, tcon, & tsid, GFP_KERNEL)
843  如果length则转到:out
846  security_compute_av_user(state, ssid, tsid, tclass, & avd)
848  length等于格式化输出字符串
853  out :
854  释放内存
855  释放内存
856  返回:length