Skip to content
Snippets Groups Projects
Commit c8012152 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Allow healthd sys_tty_config

healthd performs privileged ioctls on the tty device
when in charger mode. Allow it.

This fixes a bug where off charging mode is forcing the device
to reboot into recovery.

Addresses the following denial:

type=1400 audit(15080631.900:4): avc:  denied  { sys_tty_config } for  pid=130 comm="healthd" capability=26  scontext=u:r:healthd:s0 tcontext=u:r:healthd:s0 tclass=capability

Bug: 13472365
Change-Id: I402987baf62ba0017e79e30e370850c32c286a6a
parent 09a1719c
Branches
Tags
No related merge requests found
...@@ -8,7 +8,7 @@ write_klog(healthd) ...@@ -8,7 +8,7 @@ write_klog(healthd)
# open fd inherited by healthd. # open fd inherited by healthd.
allow healthd tmpfs:chr_file { read write }; allow healthd tmpfs:chr_file { read write };
allow healthd self:capability { net_admin mknod }; allow healthd self:capability { net_admin mknod sys_tty_config };
allow healthd self:capability2 block_suspend; allow healthd self:capability2 block_suspend;
allow healthd self:netlink_kobject_uevent_socket create_socket_perms; allow healthd self:netlink_kobject_uevent_socket create_socket_perms;
binder_use(healthd) binder_use(healthd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment