aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2024-11-14 08:36:35 +0000
committerAmir Goldstein <[email protected]>2024-11-14 12:15:46 +0000
commit711747e204ead127235aa41b350e518e92a87fcc (patch)
treece95f3deeb06147510da6a1596bebe5b5a214b14 /rust/helpers/security.c
parentovl: use wrapper ovl_revert_creds() (diff)
downloadkernel-711747e204ead127235aa41b350e518e92a87fcc.tar.gz
kernel-711747e204ead127235aa41b350e518e92a87fcc.zip
ovl: pass an explicit reference of creators creds to callers
ovl_setup_cred_for_create() decrements one refcount of new creds and ovl_revert_creds() in callers decrements the last refcount. In preparation to revert_creds_light() back to caller creds, pass an explicit reference of the creators creds to the callers and drop the refcount explicitly in the callers after ovl_revert_creds(). Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Amir Goldstein <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions