函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_delete_domain - Delete a domain.*@domainname: The name of domain.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().

函数原型:static int tomoyo_delete_domain(char *domainname)

返回类型:int

参数:

类型参数名称
char *domainname
1094  name等于domainname
1095  tomoyo_fill_path_info( & name)
1096  如果mutex_lock_interruptible( & tomoyo_policy_lock)则返回:负EINTR
1102  如果domain恒等于tomoyo_kernel_domain则继续下一循环
1104  如果 Delete flag. moyo_pathcmp - strcmp() for "struct tomoyo_path_info" structure.*@a: Pointer to "struct tomoyo_path_info".*@b: Pointer to "struct tomoyo_path_info".* Returns true if @a == @b, false otherwise.则继续下一循环
1107  Delete flag. = true
1108  退出
1110  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1111  返回:0
调用者
名称描述
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().