Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_permstr - Find permission keywords.*@string: String representation for permissions in foo/bar/buz format.*@keyword: Keyword to find from @string/* Returns true if @keyword was found in @string, false otherwise.

Proto:bool tomoyo_permstr(const char *string, const char *keyword)

Type:bool

Parameter:

TypeParameterName
const char *string
const char *keyword
116  cp = strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
118  If cp Then Return cp == string || *(cp - 1) == '/'
120  Return false
Caller
NameDescribe
tomoyo_write_filemoyo_write_file - Update file related list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_inet_networkmoyo_write_inet_network - Write "struct tomoyo_inet_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_unix_networkmoyo_write_unix_network - Write "struct tomoyo_unix_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.