Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apparmor_sb_pivotroot

Proto:static int apparmor_sb_pivotroot(const struct path *old_path, const struct path *new_path)

Type:int

Parameter:

TypeParameterName
const struct path *old_path
const struct path *new_path
578  error = 0
580  label = aa_get_current_label - get the newest version of the current tasks label* Returns: newest version of confining label (NOT NULL)* This fn will not update the tasks cred, so it is safe inside of locks* The returned reference must be put with aa_put_label()
581  If Not unconfined(label) Then error = aa_pivotroot(label, old_path, new_path)
583  aa_put_label(label)
585  Return error