Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cred.c Create Date:2022-07-28 09:32:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_security_override_from_ctx - Set the security ID in a set of credentials*@new: The credentials to alter*@secctx: The LSM security context to generate the security ID from.* Set the LSM security ID in a set of credentials so that the subjective

Proto:int set_security_override_from_ctx(struct cred *new, const char *secctx)

Type:int

Parameter:

TypeParameterName
struct cred *new
const char *secctx
761  ret = security_secctx_to_secid(secctx, strlen - Find the length of a string*@s: The string to be sized, & secid)
762  If ret < 0 Then Return ret
765  Return set_security_override - Set the security ID in a set of credentials*@new: The credentials to alter*@secid: The LSM security ID to set* Set the LSM security ID in a set of credentials so that the subjective