函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__file_sock_perm

函数原型:static int __file_sock_perm(const char *op, struct aa_label *label, struct aa_label *flabel, struct file *file, unsigned int request, unsigned int denied)

返回类型:int

参数:

类型参数名称
const char *op
struct aa_label *label
struct aa_label *flabel
struct file *file
unsigned intrequest
unsigned intdenied
575  sock等于 needed for tty driver, and maybe others
578  AA_BUG(!sock)
581  如果非deniedaa_label_is_subset(flabel, label)则返回:0
585  error等于aa_sock_file_perm(label, op, request, sock)
586  如果denied
589  last_error(error, aa_sock_file_perm(flabel, op, request, sock))
591  如果非errorupdate_file_ctx(file_ctx(file), label, request)
594  返回:error
调用者
名称描述
aa_file_permaa_file_perm - do permission revalidation check & audit for @file*@op: operation being checked*@label: label being enforced (NOT NULL)*@file: file to revalidate access permissions on (NOT NULL)*@request: requested permissions*@in_atomic: whether