函数逻辑报告 |
Source Code:security\apparmor\policy.c |
Create Date:2022-07-27 21:33:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:policy_view_capable - check if viewing policy in at @ns is allowed* Returns: true if viewing policy is allowed* If @ns is NULL then the namespace being viewed is assumed to be the* tasks current namespace.
函数原型:bool policy_view_capable(struct aa_ns *ns)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_ns * | ns | namespace being viewed by current task (may be NULL) |
644 | user_ns等于current_user_ns() |
645 | view_ns等于aa_get_current_ns() |
646 | root_in_user_ns等于uid_eq(current_euid(), make_kuid - Map a user-namespace uid pair into a kuid)或in_egroup_p(make_kgid - Map a user-namespace gid pair into a kgid) |
648 | bool response = false |
649 | 如果非 namespace being viewed by current task (may be NULL)则 namespace being viewed by current task (may be NULL)等于view_ns |
659 | 返回:response |
名称 | 描述 |
---|---|
profiles_open | |
policy_admin_capable | |
param_get_aalockpolicy | |
param_get_aabool | |
param_get_aauint | |
param_get_aacompressionlevel | |
param_get_audit | |
param_get_mode | |
rawdata_open |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |