Home
last modified time | relevance | path

Searched refs:audit_context (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.10/kernel/
Dauditsc.c162 static int audit_match_perm(struct audit_context *ctx, int mask) in audit_match_perm()
205 static int audit_match_filetype(struct audit_context *ctx, int val) in audit_match_filetype()
232 static void audit_set_auditable(struct audit_context *ctx) in audit_set_auditable()
240 static int put_tree_ref(struct audit_context *ctx, struct audit_chunk *chunk) in put_tree_ref()
261 static int grow_tree_refs(struct audit_context *ctx) in grow_tree_refs()
277 static void unroll_tree_refs(struct audit_context *ctx, in unroll_tree_refs()
305 static void free_tree_refs(struct audit_context *ctx) in free_tree_refs()
314 static int match_tree_refs(struct audit_context *ctx, struct audit_tree *tree) in match_tree_refs()
338 struct audit_context *ctx) in audit_compare_uid()
362 struct audit_context *ctx) in audit_compare_gid()
[all …]
Daudit.h98 struct audit_context { struct
252 extern int auditsc_get_stamp(struct audit_context *ctx,
287 extern void audit_kill_trees(struct audit_context *context);
291 struct audit_context *ctx);
Daudit.c201 struct audit_context *ctx; /* NULL or associated context */
392 ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_CONFIG_CHANGE); in audit_log_config_change()
1056 static void audit_log_common_recv_msg(struct audit_context *context, in audit_log_common_recv_msg()
1106 ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_FEATURE_CHANGE); in audit_log_feature_change()
1383 audit_log_common_recv_msg(audit_context(), &ab, in audit_receive_msg()
1399 audit_log_common_recv_msg(audit_context(), &ab, in audit_receive_msg()
1430 audit_log_common_recv_msg(audit_context(), &ab, in audit_receive_msg()
1498 audit_log_common_recv_msg(audit_context(), &ab, in audit_receive_msg()
1558 ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_EVENT_LISTENER); in audit_log_multicast()
1736 static struct audit_buffer *audit_buffer_alloc(struct audit_context *ctx, in audit_buffer_alloc()
[all …]
Daudit_tree.c525 static void audit_tree_log_remove_rule(struct audit_context *context, in audit_tree_log_remove_rule()
542 static void kill_rules(struct audit_context *context, struct audit_tree *tree) in kill_rules()
635 kill_rules(audit_context(), tree); in trim_marked()
975 void audit_kill_trees(struct audit_context *context) in audit_kill_trees()
1021 kill_rules(audit_context(), owner); in evict_chunk()
Daudit_fsnotify.c121 ab = audit_log_start(audit_context(), GFP_NOFS, AUDIT_CONFIG_CHANGE); in audit_mark_log_rule_change()
Daudit_watch.c232 ab = audit_log_start(audit_context(), GFP_NOFS, AUDIT_CONFIG_CHANGE); in audit_watch_log_rule_change()
263 audit_filter_inodes(current, audit_context()); in audit_update_watch()
Dauditfilter.c1105 ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_CONFIG_CHANGE); in audit_log_rule_change()
/Linux-v5.10/include/linux/
Daudit.h27 struct audit_context;
158 void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type,
161 extern struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type);
214 void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, in audit_log()
217 static inline struct audit_buffer *audit_log_start(struct audit_context *ctx, in audit_log_start()
307 static inline void audit_set_context(struct task_struct *task, struct audit_context *ctx) in audit_set_context()
309 task->audit_context = ctx; in audit_set_context()
312 static inline struct audit_context *audit_context(void) in audit_context() function
314 return current->audit_context; in audit_context()
319 void *p = audit_context(); in audit_dummy_context()
[all …]
Dsched.h39 struct audit_context;
984 struct audit_context *audit_context; member
Dsecurity.h41 struct audit_context;
/Linux-v5.10/security/integrity/
Dintegrity.h248 integrity_audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type) in integrity_audit_log_start()
270 integrity_audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type) in integrity_audit_log_start()
Dintegrity_audit.c47 ab = audit_log_start(audit_context(), GFP_KERNEL, audit_msgno); in integrity_audit_message()
/Linux-v5.10/net/netlabel/
Dnetlabel_user.c93 audit_buf = audit_log_start(audit_context(), GFP_ATOMIC, type); in netlbl_audit_start_common()
/Linux-v5.10/drivers/tty/
Dtty_audit.c69 ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_TTY); in tty_audit_log()
/Linux-v5.10/security/integrity/evm/
Devm_secfs.c190 ab = audit_log_start(audit_context(), GFP_KERNEL, in evm_write_xattrs()
/Linux-v5.10/kernel/entry/
Dcommon.c36 if (unlikely(audit_context())) { in syscall_enter_audit()
/Linux-v5.10/security/integrity/ima/
Dima_api.c359 ab = audit_log_start(audit_context(), GFP_KERNEL, in ima_audit_measurement()
Dima_policy.c1131 ab = integrity_audit_log_start(audit_context(), GFP_KERNEL, in ima_parse_rule()
/Linux-v5.10/security/selinux/ss/
Dservices.c493 ab = audit_log_start(audit_context(), in security_dump_masked_av()
731 audit_log(audit_context(), GFP_ATOMIC, AUDIT_SELINUX_ERR, in security_validtrans_handle_fail()
921 audit_log(audit_context(), in security_bounded_transition()
1648 ab = audit_log_start(audit_context(), GFP_ATOMIC, AUDIT_SELINUX_ERR); in compute_sid_handle_invalid_context()
3013 audit_log(audit_context(), GFP_ATOMIC, in security_set_bools()
3170 ab = audit_log_start(audit_context(), in security_sid_mls_copy()
/Linux-v5.10/security/
Dlsm_audit.c459 ab = audit_log_start(audit_context(), GFP_ATOMIC | __GFP_NOWARN, in common_lsm_audit()
/Linux-v5.10/security/selinux/
Dselinuxfs.c172 audit_log(audit_context(), GFP_KERNEL, AUDIT_MAC_STATUS, in sel_write_enforce()
314 audit_log(audit_context(), GFP_KERNEL, AUDIT_MAC_STATUS, in sel_write_disable()
662 audit_log(audit_context(), GFP_KERNEL, AUDIT_MAC_POLICY_LOAD, in sel_write_load()
Dhooks.c3174 ab = audit_log_start(audit_context(), in selinux_inode_setxattr()
6386 ab = audit_log_start(audit_context(), in selinux_setprocattr()
6852 audit_log(audit_context(), in selinux_lockdown()
/Linux-v5.10/include/net/
Dxfrm.h678 audit_buf = audit_log_start(audit_context(), GFP_ATOMIC, in xfrm_audit_start()
/Linux-v5.10/kernel/bpf/
Dsyscall.c1614 struct audit_context *ctx = NULL; in bpf_audit_prog()
1622 ctx = audit_context(); in bpf_audit_prog()
/Linux-v5.10/net/core/
Ddev.c8215 audit_log(audit_context(), GFP_ATOMIC, in __dev_set_promiscuity()