函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_audit_path_number_log - Audit path/number request log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise.

函数原型:static int tomoyo_audit_path_number_log(struct tomoyo_request_info *r)

返回类型:int

参数:

类型参数名称
struct tomoyo_request_info *r
214  type等于* One of values in * "enum tomoyo_path_number_acl_index".
219  :type恒等于TOMOYO_TYPE_CREATE
220  :type恒等于TOMOYO_TYPE_MKDIR
221  :type恒等于TOMOYO_TYPE_MKFIFO
222  :type恒等于TOMOYO_TYPE_MKSOCK
223  :type恒等于TOMOYO_TYPE_CHMOD
224  radix等于TOMOYO_VALUE_TYPE_OCTAL
225  退出
226  :type恒等于TOMOYO_TYPE_IOCTL
227  radix等于TOMOYO_VALUE_TYPE_HEXADECIMAL
228  退出
229  默认
230  radix等于TOMOYO_VALUE_TYPE_DECIMAL
231  退出
233  tomoyo_print_ulong(buffer, buffer的长度, number, radix)
235  返回:moyo_supervisor - Ask for the supervisor's decision
调用者
名称描述
tomoyo_path_number_permmoyo_path_number_perm - Check permission for "create", "mkdir", "mkfifo", "mksock", "ioctl", "chmod", "chown", "chgrp".*@type: Type of operation.*@path: Pointer to "struct path".*@number: Number.* Returns 0 on success, negative value otherwise.