-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this prevents logd from accessing kernel messages
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
service logd /system/bin/logd | ||
socket logd stream 0666 logd logd | ||
socket logdr seqpacket 0666 logd logd | ||
socket logdw dgram+passcred 0222 logd logd | ||
user logd | ||
group logd system package_info readproc | ||
capabilities SYSLOG AUDIT_CONTROL | ||
priority 10 | ||
task_profiles ServiceCapacityLow | ||
onrestart setprop logd.ready false | ||
|
||
service logd-reinit /system/bin/logd --reinit | ||
oneshot | ||
disabled | ||
user logd | ||
group logd | ||
task_profiles ServiceCapacityLow | ||
|
||
# Limit SELinux denial generation to 5/second | ||
service logd-auditctl /system/bin/auditctl -r 5 | ||
oneshot | ||
disabled | ||
user logd | ||
group logd | ||
capabilities AUDIT_CONTROL | ||
|
||
on fs | ||
write /dev/event-log-tags "# content owned by logd | ||
" | ||
chown logd logd /dev/event-log-tags | ||
chmod 0644 /dev/event-log-tags | ||
|
||
on property:sys.boot_completed=1 | ||
start logd-auditctl |