函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_parse_policy - Parse a policy line.*@head: Poiter to "struct tomoyo_io_buffer".*@line: Line to parse.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().

函数原型:static int tomoyo_parse_policy(struct tomoyo_io_buffer *head, char *line)

返回类型:int

参数:

类型参数名称
struct tomoyo_io_buffer *head
char *line
2621  is_delete等于非字符串指定长度比较
2622  如果is_deletememmove(line, line + 7, strlen - Find the length of a string*@s: The string to be sized + 1)
2625  如果Type of this interface. 恒等于TOMOYO_EXCEPTIONPOLICYType of this interface. 恒等于TOMOYO_PROFILE
2627  如果line恒等于'<'则
2630  如果cp
2634  否则ns = NULL
2636  否则ns等于tomoyo_kernel_namespace
2639  如果非ns则返回:负ENOENT
2643  返回:write(head)
调用者
名称描述
tomoyo_write_controlmoyo_write_control - write() for /sys/kernel/security/tomoyo/ interface.*@head: Pointer to "struct tomoyo_io_buffer".*@buffer: Pointer to buffer to read from.*@buffer_len: Size of @buffer.* Returns @buffer_len on success, negative value otherwise.
tomoyo_load_builtin_policymoyo_load_builtin_policy - Load built-in policy.* Returns nothing.