Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-28 19:37:17
Last Modify:2020-03-18 09:15:18 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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().

Proto:static int tomoyo_parse_policy(struct tomoyo_io_buffer *head, char *line)

Type:int

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
char *line
2621  is_delete = Not strncmp(line, "delete ", 7)
2622  If is_delete Then memmove(line, line + 7, strlen - Find the length of a string*@s: The string to be sized + 1)
2625  If Type of this interface. == TOMOYO_EXCEPTIONPOLICY || Type of this interface. == TOMOYO_PROFILE Then
2627  If line == '<' Then
2630  If cp Then
2634  Else ns = NULL
2636  Else ns = tomoyo_kernel_namespace
2639  If Not ns Then Return -ENOENT
2643  Return write(head)
Caller
NameDescribe
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.