chiark / gitweb /
audit: do not complain if kernel lacks audit
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 17 Oct 2011 19:01:40 +0000 (21:01 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 17 Oct 2011 19:04:59 +0000 (21:04 +0200)
commit5a8d081c58f7b83172ad5031a8fdac0c33072b2a
tree50331442e7879881188f68a58b28651c52bc976e
parente51db373c242b7541794affb2b5e411bcce26d0f
audit: do not complain if kernel lacks audit

When running on a kernel without audit support, systemd currently
writes a mysterious-sounding error to its log:

systemd[1]: Failed to connect to audit log: Protocol not supported

Better to suppress the audit_open() failure message when (and only
when) it is due to running on a kernel without audit support, since in
this case the admin probably does not mind systemd not writing to the
audit log.  This way, more serious errors like ENOMEM and EACCES will
stand out more.
src/manager.c
src/update-utmp.c