Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\file.c Create Date:2022-07-28 19:41:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static int tomoyo_audit_path_number_log(struct tomoyo_request_info *r)

Type:int

Parameter:

TypeParameterName
struct tomoyo_request_info *r
214  type = * One of values in * "enum tomoyo_path_number_acl_index".
219  Case type == TOMOYO_TYPE_CREATE
220  Case type == TOMOYO_TYPE_MKDIR
221  Case type == TOMOYO_TYPE_MKFIFO
222  Case type == TOMOYO_TYPE_MKSOCK
223  Case type == TOMOYO_TYPE_CHMOD
224  radix = TOMOYO_VALUE_TYPE_OCTAL
225  Break
226  Case type == TOMOYO_TYPE_IOCTL
227  radix = TOMOYO_VALUE_TYPE_HEXADECIMAL
228  Break
229  Default
230  radix = TOMOYO_VALUE_TYPE_DECIMAL
231  Break
233  tomoyo_print_ulong(buffer, size of buffer , number, radix)
235  Return moyo_supervisor - Ask for the supervisor's decision
Caller
NameDescribe
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.