Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smk_netlbl_mls - convert a catset to netlabel mls categories*@catset: the Smack categories*@sap: where to put the netlabel categories* Allocates and fills attr.mls* Returns 0 on success, error code on failure.

Proto:int smk_netlbl_mls(int level, char *catset, struct netlbl_lsm_secattr *sap, int len)

Type:int

Parameter:

TypeParameterName
intlevel
char *catset
struct netlbl_lsm_secattr *sap
intlen
494  flags |= NETLBL_SECATTR_MLS_CAT
495  lvl = level
496  cat = NULL
498  When byte < len cycle When m != 0 cycle
500  If (m & cp) == 0 Then Continue
502  rc = netlbl_catmap_setbit( & cat, cat, GFP_NOFS)
504  If rc < 0 Then
506  Return rc
510  Return 0
Caller
NameDescribe
smk_import_entrysmk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated
smk_set_cipsosmk_set_cipso - do the work for write() for cipso and cipso2*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start*@format: /smack/cipso or /smack/cipso2
smk_preset_netlabel