Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smackfs.c Create Date:2022-07-28 19:27:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smk_cipso_doi - initialize the CIPSO domain

Proto:static void smk_cipso_doi(void)

Type:void

Parameter:Nothing

689  smk_netlabel_audit_set - fill a netlbl_audit struct*@nap: structure to fill
691  rc = LSM configuration operations
692  If rc != 0 Then printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
696  doip = Allocation memory
697  If (doip == NULL) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
699  std = NULL
700  doi = smk_cipso_doi_value
701  type = CIPSO_V4_MAP_PASS
702  tags[0] = CIPSO_V4_TAG_RBITMAP
703  When rc < DOI definition struct cycle tags[rc] = standard tag types
706  rc = netlbl_cfg_cipsov4_add(doip, & nai)
707  If rc != 0 Then
708  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
710  kfree(doip)
711  Return
713  rc = netlbl_cfg_cipsov4_map_add(doi, NULL, NULL, NULL, & nai)
714  If rc != 0 Then
715  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
717  kfree(doip)
718  Return
Caller
NameDescribe
smk_write_doismk_write_doi - write() for /smack/doi*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Returns number of bytes written or error code, as appropriate
init_smk_fs_smk_fs - get the smackfs superblock* register the smackfs* Do not register smackfs if Smack wasn't enabled* on boot