函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ased on selinux's flush_unauthorized_files

函数原型:void aa_inherit_files(const struct cred *cred, struct files_struct *files)

返回类型:void

参数:

类型参数名称
const struct cred *cred
struct files_struct *files
698  label等于aa_get_newest_cred_label - obtain the newest label on a cred*@cred: cred to obtain label from (NOT NULL)* Returns: newest version of confining label
699  struct file * devnull = NULL
702  revalidate_tty(label)
705  n等于iterate_fd(files, 0, match_file, label)
706  如果非n则转到:out
709  devnull等于dentry_open( & aa_null, O_RDWR, cred)
710  如果是错误devnull = NULL
713  循环
714  replace_fd(n - 1, devnull, 0)
715 n等于iterate_fd(files, n, match_file, label)不等于0循环
716  如果devnullfput(devnull)
718  out :
719  aa_put_label(label)
调用者
名称描述
apparmor_bprm_committing_credsapparmor_bprm_committing_creds - do task cleanup on committing new creds*@bprm: binprm for the exec (NOT NULL)