aboutsummaryrefslogtreecommitdiff
path: root/security/selinux/include/audit.h
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2024-10-09 10:32:11 -0700
committerPaul Moore <paul@paul-moore.com>2024-10-11 14:34:12 -0400
commit6f2f724f0e116d9ea960ff3dd645add12e60e176 (patch)
tree8f9ed2193bbc3eabb023168cc07cc4ba74db7a78 /security/selinux/include/audit.h
parent870b7fdc660b38c4e1bd8bf48e62aa352ddf8f42 (diff)
downloadlinux-6f2f724f0e116d9ea960ff3dd645add12e60e176.tar.gz
linux-6f2f724f0e116d9ea960ff3dd645add12e60e176.tar.bz2
linux-6f2f724f0e116d9ea960ff3dd645add12e60e176.zip
lsm: add lsmprop_to_secctx hook
Add a new hook security_lsmprop_to_secctx() and its LSM specific implementations. The LSM specific code will use the lsm_prop element allocated for that module. This allows for the possibility that more than one module may be called upon to translate a secid to a string, as can occur in the audit code. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> [PM: subject line tweak] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/audit.h')
-rw-r--r--security/selinux/include/audit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/selinux/include/audit.h b/security/selinux/include/audit.h
index c745ea2a993d..d5b0425055e4 100644
--- a/security/selinux/include/audit.h
+++ b/security/selinux/include/audit.h
@@ -49,7 +49,8 @@ void selinux_audit_rule_free(void *rule);
* Returns 1 if the context id matches the rule, 0 if it does not, and
* -errno on failure.
*/
-int selinux_audit_rule_match(struct lsm_prop *prop, u32 field, u32 op, void *rule);
+int selinux_audit_rule_match(struct lsm_prop *prop, u32 field, u32 op,
+ void *rule);
/**
* selinux_audit_rule_known - check to see if rule contains selinux fields.