aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-05-09 09:51:00 +0200
committerAndreas Schneider <asn@cryptomilk.org>2016-05-10 10:29:20 +0200
commit615fe23acab323624fd732fd0272a768833e183e (patch)
treed8c4945660c21a8d894799bdf1d6b92b91a5a60d
parentf3ef1e8833fb809d3a4e8dd9051eb4ab31d76c78 (diff)
downloadpam_wrapper-615fe23acab323624fd732fd0272a768833e183e.tar.gz
pam_wrapper-615fe23acab323624fd732fd0272a768833e183e.tar.xz
pam_wrapper-615fe23acab323624fd732fd0272a768833e183e.zip
pwrap: Disable audit on BSD
This allows us to use pam_wrapper on BSD Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/pam_wrapper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pam_wrapper.c b/src/pam_wrapper.c
index fddc7fa..bc73f41 100644
--- a/src/pam_wrapper.c
+++ b/src/pam_wrapper.c
@@ -1518,6 +1518,15 @@ int audit_open(void)
return -1;
}
+/* Disable BSD auditing */
+int cannot_audit(int x);
+int cannot_audit(int x)
+{
+ (void) x;
+
+ return 1;
+}
+
/****************************
* DESTRUCTOR
***************************/