platform_system_core/logd
William Roberts 29d238d2a8 logd: selinux auditd initial commit
Initial commit for an audit daemon that writes kernel audit
messages to the Android logger. The daemon searches dmesg
for all lines that contain "audit" and writes them. Then
receiving the messages from the netlink socket.

It also formats the messages so they are compatable with
ausearch (type=<t> <m> format)

Modified: Mark Salyzyn <salyzyn@google.com>

- do not start auditd
- merge into logd, stripping unnecessary file logging.
- Convert headers and code to support C++
- Fix bugs in libaudit
- squash timestamp (replace with 0.0) due to duplication
- squash pid due to duplication
- squash comm due to duplication

Change-Id: I421bcf33e7e670d596628b1b5c7c25536ce2d3fe
2014-04-07 10:51:00 -07:00
..
Android.mk logd: selinux auditd initial commit 2014-04-07 10:51:00 -07:00
CommandListener.cpp logd: liblog: logcat: Add LogWhiteBlackList 2014-03-13 14:48:07 -07:00
CommandListener.h logd: liblog: logcat: Add LogWhiteBlackList 2014-03-13 14:48:07 -07:00
FlushCommand.cpp logd: liblog: logcat: Arbitrary time to tail 2014-03-14 10:23:51 -07:00
FlushCommand.h logd: liblog: logcat: Arbitrary time to tail 2014-03-14 10:23:51 -07:00
libaudit.c logd: selinux auditd initial commit 2014-04-07 10:51:00 -07:00
libaudit.h logd: selinux auditd initial commit 2014-04-07 10:51:00 -07:00
LogAudit.cpp logd: selinux auditd initial commit 2014-04-07 10:51:00 -07:00
LogAudit.h logd: selinux auditd initial commit 2014-04-07 10:51:00 -07:00
LogBuffer.cpp logd: build breakage in user 2014-04-01 16:57:29 -07:00
LogBuffer.h logd: Add pidToUid helper 2014-04-07 10:51:00 -07:00
LogBufferElement.cpp logd: liblog: Thread IDs missing from logcat -v thread 2014-03-21 10:37:44 -07:00
LogBufferElement.h logd: liblog: Thread IDs missing from logcat -v thread 2014-03-21 10:37:44 -07:00
LogCommand.cpp logd: institute getGroups for socket credentials 2014-02-28 13:48:33 -08:00
LogCommand.h logd: institute getGroups for socket credentials 2014-02-28 13:48:33 -08:00
LogListener.cpp Merge "logd: compile warning message" 2014-03-24 21:56:34 +00:00
LogListener.h logd: initial checkin. 2014-02-26 09:52:35 -08:00
LogReader.cpp logd: Find log time for arbitrary time to tail 2014-03-14 10:24:19 -07:00
LogReader.h logd: initial checkin. 2014-02-26 09:52:35 -08:00
LogStatistics.cpp logd: Add pidToUid helper 2014-04-07 10:51:00 -07:00
LogStatistics.h logd: Add pidToUid helper 2014-04-07 10:51:00 -07:00
LogTimes.cpp logd: transitory reader thread create should be detached 2014-04-04 13:12:56 -07:00
LogTimes.h logd: liblog: logcat: Arbitrary time to tail 2014-03-14 10:23:51 -07:00
LogWhiteBlackList.cpp logcat: white and blacklist failure 2014-03-21 15:43:31 -07:00
LogWhiteBlackList.h logd: liblog: logcat: Add LogWhiteBlackList 2014-03-13 14:48:07 -07:00
main.cpp logd: selinux auditd initial commit 2014-04-07 10:51:00 -07:00
README.auditd logd: selinux auditd initial commit 2014-04-07 10:51:00 -07:00

Auditd Daemon

The audit daemon is a simplified version of its desktop
counterpart designed to gather the audit logs from the
audit kernel subsystem. The audit subsystem of the kernel
includes Linux Security Modules (LSM) messages as well.

To enable the audit subsystem, you must add this to your
kernel config:
CONFIG_AUDIT=y

To enable a LSM, you must consult that LSM's documentation, the
example below is for SELinux:
CONFIG_SECURITY_SELINUX=y

This does not include possible dependencies that may need to be
satisfied for that particular LSM.