summaryrefslogtreecommitdiff
path: root/modules/pam_loginuid
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2015-09-24 13:21:40 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2015-09-24 13:21:40 +0200
commitd766637071ab5bb835ea8fc4379d77f5449e249f (patch)
tree2d71b8308740f30332aa3c87ecdf519dc6e16793 /modules/pam_loginuid
parentcaeae5bc84045df20f9e4fddcaefddde6209f6cd (diff)
downloadlinux-pam-git-d766637071ab5bb835ea8fc4379d77f5449e249f.tar.gz
pam_loginuid: Add syslog message if required auditd is not detected.
* modules/pam_loginuid/pam_loginuid.c (_pam_loginuid): Add syslog message if required auditd is not detected.
Diffstat (limited to 'modules/pam_loginuid')
-rw-r--r--modules/pam_loginuid/pam_loginuid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pam_loginuid/pam_loginuid.c b/modules/pam_loginuid/pam_loginuid.c
index 73c42f9c..9a1589e5 100644
--- a/modules/pam_loginuid/pam_loginuid.c
+++ b/modules/pam_loginuid/pam_loginuid.c
@@ -234,6 +234,8 @@ _pam_loginuid(pam_handle_t *pamh, int flags UNUSED,
if (require_auditd) {
int rc = check_auditd();
+ if (rc != PAM_SUCCESS)
+ pam_syslog(pamh, LOG_ERR, "required running auditd not detected");
return rc != PAM_SUCCESS ? rc : ret;
} else
#endif