aboutsummaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c
index 290482bdbbb0..2ef593ec70f3 100644
--- a/security/security.c
+++ b/security/security.c
@@ -1120,3 +1120,28 @@ int security_key_permission(key_ref_t key_ref,
1120} 1120}
1121 1121
1122#endif /* CONFIG_KEYS */ 1122#endif /* CONFIG_KEYS */
1123
1124#ifdef CONFIG_AUDIT
1125
1126int security_audit_rule_init(u32 field, u32 op, char *rulestr, void **lsmrule)
1127{
1128 return security_ops->audit_rule_init(field, op, rulestr, lsmrule);
1129}
1130
1131int security_audit_rule_known(struct audit_krule *krule)
1132{
1133 return security_ops->audit_rule_known(krule);
1134}
1135
1136void security_audit_rule_free(void *lsmrule)
1137{
1138 security_ops->audit_rule_free(lsmrule);
1139}
1140
1141int security_audit_rule_match(u32 secid, u32 field, u32 op, void *lsmrule,
1142 struct audit_context *actx)
1143{
1144 return security_ops->audit_rule_match(secid, field, op, lsmrule, actx);
1145}
1146
1147#endif /* CONFIG_AUDIT */