函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\audit.c Create Date:2022-07-27 21:02:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_get_audit - Get audit mode.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number.*@index: Index number of functionality.*@is_granted: True if granted log, false otherwise.

函数原型:static bool tomoyo_get_audit(const struct tomoyo_policy_namespace *ns, const u8 profile, const u8 index, const struct tomoyo_acl_info *matched_acl, const bool is_granted)

返回类型:bool

参数:

类型参数名称
const struct tomoyo_policy_namespace *ns
const u8profile
const u8index
const struct tomoyo_acl_info *matched_acl
const boolis_granted
333  category等于tomoyo_index2category[index]加TOMOYO_MAX_MAC_INDEX
337  如果非External variable definitions. *********则返回:false
339  p等于tomoyo_profile(ns, profile)
340  如果Length of "stuct list_head tomoyo_log". 大于等于pref[TOMOYO_PREF_MAX_AUDIT_LOG]则返回:false
342  如果is_grantedmatched_acl Maybe NULL. One of values in "enum tomoyo_grant_log". 不等于TOMOYO_GRANTLOG_AUTO则返回:One of values in "enum tomoyo_grant_log". 恒等于TOMOYO_GRANTLOG_YES
345  mode等于config[index]
346  如果mode恒等于TOMOYO_CONFIG_USE_DEFAULTmode等于config[category]
348  如果mode恒等于TOMOYO_CONFIG_USE_DEFAULTmode等于default_config
350  如果is_granted则返回:mode按位与TOMOYO_CONFIG_WANT_GRANT_LOG
352  返回:mode按位与TOMOYO_CONFIG_WANT_REJECT_LOG
调用者
名称描述
tomoyo_write_log2moyo_write_log2 - Write an audit log.*@r: Pointer to "struct tomoyo_request_info".*@len: Buffer size needed for @fmt and @args.*@fmt: The printf()'s format string.*@args: va_list structure for @fmt.* Returns nothing.