Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_cred_transfer - Transfer the old credentials to the new credentials*@new: the new credentials*@old: the original credentials* Fill in a set of blank credentials from another set of credentials.

Proto:static void smack_cred_transfer(struct cred *new, const struct cred *old)

Type:void

Parameter:

TypeParameterName
struct cred *new
const struct cred *old
1971  old_tsp = smack_cred(old)
1972  new_tsp = smack_cred(new)
1974  label for access control = label for access control
1975  label when forked = label for access control
1976  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock for the rules )
1977  Initialization list head