Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_check_profile - Check all profiles currently assigned to domains are defined.

Proto:void tomoyo_check_profile(void)

Type:void

Parameter:Nothing

2776  idx = moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock().
2778  External variable definitions. ********* = true
2779  pr_info("TOMOYO: 2.6.0\n")
2782  profile = Profile number to use.
2783  ns = Namespace for this domain. Never NULL.
2785  If Profile version. Currently only 20150505 is defined. == 20110903 Then
2786  pr_info_once("Converting profile version from %u to %u.\n", 20110903, 20150505)
2788  Profile version. Currently only 20150505 is defined. = 20150505
2790  If Profile version. Currently only 20150505 is defined. != 20150505 Then pr_err("Profile version %u is not supported.\n", Profile version. Currently only 20150505 is defined. )
2793  Else if Not Profile table. Memory is allocated as needed. [profile] Then pr_err("Profile %u (used by '%s') is not defined.\n", profile, name)
2796  Else Continue
2798  pr_err("Userland tools for TOMOYO 2.6 must be installed and policy must be initialized.\n")
2799  pr_err("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  pr_info("Mandatory Access Control activated.\n")
Caller
NameDescribe
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