hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/security/selinux/include/audit.h
....@@ -1,18 +1,12 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * SELinux support for the Audit LSM hooks
3
- *
4
- * Most of below header was moved from include/linux/selinux.h which
5
- * is released under below copyrights:
64 *
75 * Author: James Morris <jmorris@redhat.com>
86 *
97 * Copyright (C) 2005 Red Hat, Inc., James Morris <jmorris@redhat.com>
108 * Copyright (C) 2006 Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com>
119 * Copyright (C) 2006 IBM Corporation, Timothy R. Chavez <tinytim@us.ibm.com>
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License version 2,
15
- * as published by the Free Software Foundation.
1610 */
1711
1812 #ifndef _SELINUX_AUDIT_H
....@@ -46,13 +40,11 @@
4640 * @field: the field this rule refers to
4741 * @op: the operater the rule uses
4842 * @rule: pointer to the audit rule to check against
49
- * @actx: the audit context (can be NULL) associated with the check
5043 *
5144 * Returns 1 if the context id matches the rule, 0 if it does not, and
5245 * -errno on failure.
5346 */
54
-int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *rule,
55
- struct audit_context *actx);
47
+int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *rule);
5648
5749 /**
5850 * selinux_audit_rule_known - check to see if rule contains selinux fields.