Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_same_manager - Check for duplicated "struct tomoyo_manager" entry.*@a: Pointer to "struct tomoyo_acl_head".*@b: Pointer to "struct tomoyo_acl_head".* Returns true if @a == @b, false otherwise.

Proto:static bool tomoyo_same_manager(const struct tomoyo_acl_head *a, const struct tomoyo_acl_head *b)

Type:bool

Parameter:

TypeParameterName
const struct tomoyo_acl_head *a
const struct tomoyo_acl_head *b
847  Return ({
847  __mptr = a
847  Do
847  When 0 cycle
847  __mptr - __builtin_offsetof(structmoyo_manager - Check whether the current process is a policy manager.* Returns true if the current process is permitted to modify policy* via /sys/kernel/security/tomoyo/ interface.* Caller holds tomoyo_read_lock()., head)
847  Return ({})->manager == ({
848  __mptr = b
848  Do
848  When 0 cycle
848  __mptr - __builtin_offsetof(structmoyo_manager - Check whether the current process is a policy manager.* Returns true if the current process is permitted to modify policy* via /sys/kernel/security/tomoyo/ interface.* Caller holds tomoyo_read_lock()., head)
848  })->manager