Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
fuzz/ | 03-May-2024 | - | 147 | 105 | ||
tests/ | 03-May-2024 | - | 1,062 | 826 | ||
.clang-format | D | 03-May-2024 | 291 | |||
Android.bp | D | 03-May-2024 | 2.3 KiB | 106 | 88 | |
CommandListener.cpp | D | 03-May-2024 | 10.4 KiB | 379 | 290 | |
CommandListener.h | D | 03-May-2024 | 3.6 KiB | 99 | 68 | |
FlushCommand.cpp | D | 03-May-2024 | 2.8 KiB | 86 | 50 | |
FlushCommand.h | D | 03-May-2024 | 1.2 KiB | 44 | 19 | |
LogAudit.cpp | D | 03-May-2024 | 12.9 KiB | 403 | 324 | |
LogAudit.h | D | 03-May-2024 | 1.6 KiB | 57 | 31 | |
LogBuffer.cpp | D | 03-May-2024 | 43.4 KiB | 1,226 | 843 | |
LogBuffer.h | D | 03-May-2024 | 5.8 KiB | 190 | 122 | |
LogBufferElement.cpp | D | 03-May-2024 | 7.9 KiB | 282 | 219 | |
LogBufferElement.h | D | 03-May-2024 | 2.9 KiB | 100 | 67 | |
LogCommand.cpp | D | 03-May-2024 | 4.9 KiB | 146 | 79 | |
LogCommand.h | D | 03-May-2024 | 893 | 31 | 11 | |
LogKlog.cpp | D | 03-May-2024 | 26.5 KiB | 827 | 631 | |
LogKlog.h | D | 03-May-2024 | 2 KiB | 65 | 35 | |
LogListener.cpp | D | 03-May-2024 | 4 KiB | 132 | 83 | |
LogListener.h | D | 03-May-2024 | 1 KiB | 38 | 15 | |
LogReader.cpp | D | 03-May-2024 | 8.2 KiB | 267 | 197 | |
LogReader.h | D | 03-May-2024 | 1.2 KiB | 49 | 21 | |
LogStatistics.cpp | D | 03-May-2024 | 27 KiB | 856 | 695 | |
LogStatistics.h | D | 03-May-2024 | 22.6 KiB | 791 | 662 | |
LogTags.cpp | D | 03-May-2024 | 30.8 KiB | 904 | 647 | |
LogTags.h | D | 03-May-2024 | 4.8 KiB | 125 | 63 | |
LogTimes.cpp | D | 03-May-2024 | 6 KiB | 244 | 169 | |
LogTimes.h | D | 03-May-2024 | 2.9 KiB | 106 | 70 | |
LogUtils.h | D | 03-May-2024 | 2.3 KiB | 77 | 38 | |
LogWhiteBlackList.cpp | D | 03-May-2024 | 7.2 KiB | 272 | 210 | |
LogWhiteBlackList.h | D | 03-May-2024 | 2 KiB | 89 | 53 | |
OWNERS | D | 03-May-2024 | 40 | 3 | 2 | |
README.auditd | D | 03-May-2024 | 549 | 18 | 13 | |
README.property | D | 03-May-2024 | 5 KiB | 77 | 74 | |
auditctl.cpp | D | 03-May-2024 | 2.1 KiB | 75 | 48 | |
event.logtags | D | 03-May-2024 | 1.3 KiB | 40 | 38 | |
libaudit.c | D | 03-May-2024 | 6.8 KiB | 254 | 119 | |
libaudit.h | D | 03-May-2024 | 2.7 KiB | 107 | 28 | |
logd.rc | D | 03-May-2024 | 888 | 36 | 31 | |
logtagd.rc | D | 03-May-2024 | 291 | 10 | 9 | |
main.cpp | D | 03-May-2024 | 13.9 KiB | 440 | 322 |
README.auditd
1Auditd Daemon 2 3The audit daemon is a simplified version of its desktop 4counterpart designed to gather the audit logs from the 5audit kernel subsystem. The audit subsystem of the kernel 6includes Linux Security Modules (LSM) messages as well. 7 8To enable the audit subsystem, you must add this to your 9kernel config: 10CONFIG_AUDIT=y 11 12To enable a LSM, you must consult that LSM's documentation, the 13example below is for SELinux: 14CONFIG_SECURITY_SELINUX=y 15 16This does not include possible dependencies that may need to be 17satisfied for that particular LSM. 18
README.property
1The properties that logd and friends react to are: 2 3name type default description 4ro.logd.auditd bool true Enable selinux audit daemon 5ro.logd.auditd.dmesg bool true selinux audit messages sent to dmesg. 6ro.logd.auditd.main bool true selinux audit messages sent to main. 7ro.logd.auditd.events bool true selinux audit messages sent to events. 8persist.logd.security bool false Enable security buffer. 9ro.organization_owned bool false Override persist.logd.security to false 10ro.logd.kernel bool+ svelte+ Enable klogd daemon 11ro.logd.statistics bool+ svelte+ Enable logcat -S statistics. 12ro.debuggable number if not "1", logd.statistics & 13 ro.logd.kernel default false. 14logd.logpersistd.enable bool auto Safe to start logpersist daemon service 15logd.logpersistd string persist Enable logpersist daemon, "logcatd" 16 turns on logcat -f in logd context. 17 Responds to logcatd, clear and stop. 18logd.logpersistd.buffer persist logpersistd buffers to collect 19logd.logpersistd.size persist logpersistd size in MB 20logd.logpersistd.rotate_kbytes persist logpersistd outout file size in KB. 21persist.logd.logpersistd string Enable logpersist daemon, "logcatd" 22 turns on logcat -f in logd context. 23persist.logd.logpersistd.buffer all logpersistd buffers to collect 24persist.logd.logpersistd.size 256 logpersistd size in MB 25persist.logd.logpersistd.count 256 sets max number of rotated logs to <count>. 26persist.logd.logpersistd.rotate_kbytes 1024 logpersistd output file size in KB 27persist.logd.size number ro Global default size of the buffer for 28 all log ids at initial startup, at 29 runtime use: logcat -b all -G <value> 30ro.logd.size number svelte default for persist.logd.size. Larger 31 platform default sizes than 256KB are 32 known to not scale well under log spam 33 pressure. Address the spam first, 34 resist increasing the log buffer. 35persist.logd.size.<buffer> number ro Size of the buffer for <buffer> log 36ro.logd.size.<buffer> number svelte default for persist.logd.size.<buffer> 37ro.config.low_ram bool false if true, logd.statistics, 38 ro.logd.kernel default false, 39 logd.size 64K instead of 256K. 40persist.logd.filter string Pruning filter to optimize content. 41 At runtime use: logcat -P "<string>" 42ro.logd.filter string "~! ~1000/!" default for persist.logd.filter. 43 This default means to prune the 44 oldest entries of chattiest UID, and 45 the chattiest PID of system 46 (1000, or AID_SYSTEM). 47persist.logd.timestamp string ro The recording timestamp source. 48 "m[onotonic]" is the only supported 49 key character, otherwise realtime. 50ro.logd.timestamp string realtime default for persist.logd.timestamp 51log.tag string persist The global logging level, VERBOSE, 52 DEBUG, INFO, WARN, ERROR, ASSERT or 53 SILENT. Only the first character is 54 the key character. 55persist.log.tag string build default for log.tag 56log.tag.<tag> string persist The <tag> specific logging level. 57persist.log.tag.<tag> string build default for log.tag.<tag> 58 59NB: 60- auto - managed by /init 61- bool+ - "true", "false" and comma separated list of "eng" (forced false if 62 ro.debuggable is not "1") or "svelte" (forced false if ro.config.low_ram is 63 true). 64- svelte - see ro.config.low_ram for details. 65- svelte+ - see ro.config.low_ram and ro.debuggable for details. 66- ro - <base property> temporary override, ro.<base property> platform default. 67- persist - <base property> override, persist.<base property> platform default. 68- build - VERBOSE for native, DEBUG for jvm isLoggable, or developer option. 69- number - support multipliers (K or M) for convenience. Range is limited 70 to between 64K and 256M for log buffer sizes. Individual log buffer ids 71 such as main, system, ... override global default. 72- Pruning filter is of form of a space-separated list of [~][UID][/PID] 73 references, where '~' prefix means to blacklist otherwise whitelist. For 74 blacklisting, UID or PID may be a '!' to instead reference the chattiest 75 client, with the restriction that the PID must be in the UID group 1000 76 (system or AID_SYSTEM). 77