函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\file.c Create Date:2022-07-27 21:42:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:update_file_ctx

函数原型:static void update_file_ctx(struct aa_file_ctx *fctx, struct aa_label *label, unsigned int request)

返回类型:void

参数:

类型参数名称
struct aa_file_ctx *fctx
struct aa_label *label
unsigned intrequest
501  加自旋锁
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  如果l
506  如果l不等于old
508  aa_put_label(old)
509  否则aa_put_label(l)
511  allow或等于request
513  自旋锁解锁
调用者
名称描述
__file_path_perm
__file_sock_perm