Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_str_starts - Check whether the given string starts with the given keyword

Proto:bool tomoyo_str_starts(char **src, const char *find)

Type:bool

Parameter:

TypeParameterName
char **src
const char *find
384  len = strlen - Find the length of a string*@s: The string to be sized
385  tmp = src
387  If strncmp(tmp, find, len) Then Return false
389  tmp += len
390  src = tmp
391  Return true
Caller
NameDescribe
tomoyo_write_taskmoyo_write_task - Update task related list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_domain2moyo_write_domain2 - Write domain policy.*@ns: Pointer to "struct tomoyo_policy_namespace".*@list: Pointer to "struct list_head".*@data: Policy to be interpreted.*@is_delete: True if it is a delete request.* Returns 0 on success, negative value otherwise.
tomoyo_write_domainmoyo_write_domain - Write domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_read_pidmoyo_read_pid - Get domainname of the specified PID
tomoyo_write_exceptionmoyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_statmoyo_write_stat - Set memory quota.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0.
tomoyo_write_miscmoyo_write_misc - Update environment variable list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.