函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_check_profile - Check all profiles currently assigned to domains are defined.

函数原型:void tomoyo_check_profile(void)

返回类型:void

参数:

2776  idx等于moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock().
2778  External variable definitions. ********* = true
2779  打印信息("TOMOYO: 2.6.0\n")
2782  profile等于 Profile number to use.
2783  ns等于 Namespace for this domain. Never NULL.
2785  如果 Profile version. Currently only 20150505 is defined. 恒等于20110903则
2786  pr_info_once("Converting profile version from %u to %u.\n", 20110903, 20150505)
2788  Profile version. Currently only 20150505 is defined. 等于20150505
2790  如果 Profile version. Currently only 20150505 is defined. 不等于20150505则打印错误信息("Profile version %u is not supported.\n", Profile version. Currently only 20150505 is defined. )
2793  否则如果非 Profile table. Memory is allocated as needed. [profile]则打印错误信息("Profile %u (used by '%s') is not defined.\n", profile, name)
2796  否则继续下一循环
2798  打印错误信息("Userland tools for TOMOYO 2.6 must be installed and policy must be initialized.\n")
2799  打印错误信息("Please see https://tomoyo.osdn.jp/2.6/ for more information.\n")
2800  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2802  moyo_read_unlock - Release lock for protecting policy.*@idx: Index number returned by tomoyo_read_lock().* Returns nothing.
2803  打印信息("Mandatory Access Control activated.\n")
调用者
名称描述
tomoyo_load_policymoyo_load_policy - Run external policy loader to load policy.*@filename: The program about to start.* This function checks whether @filename is /sbin/init , and if so* invoke /sbin/tomoyo-init and wait for the termination of /sbin/tomoyo-init