Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:update_file_ctx

Proto:static void update_file_ctx(struct aa_file_ctx *fctx, struct aa_label *label, unsigned int request)

Type:void

Parameter:

TypeParameterName
struct aa_file_ctx *fctx
struct aa_label *label
unsigned intrequest
501  spin_lock( & lock)
502  old = cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(label, lockdep_is_held( & lock))
504  l = aa_label_merge - attempt to insert new merged label of @a and @b*@ls: set of labels to insert label into (NOT NULL)*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)*@gfp: memory allocation type* Requires: caller to hold valid
505  If l Then
506  If l != old Then
508  aa_put_label(old)
509  Else aa_put_label(l)
511  allow |= request
513  spin_unlock( & lock)
Caller
NameDescribe
__file_path_perm
__file_sock_perm