Skip to content

Commit

Permalink
sepolicy: recovery: Add policy for volume manager
Browse files Browse the repository at this point in the history
Fixes:
 avc:  denied  { read } for  pid=573 comm="recovery"
 scontext=u:r:recovery:s0 tcontext=u:r:recovery:s0
 tclass=netlink_kobject_uevent_socket permissive=1

which in turn fixes reboot

Change-Id: Ie28453602be3b5c3c4064057f5f071ee7508d316
  • Loading branch information
aleasto committed Apr 13, 2020
1 parent 158f077 commit f51b60c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/private/recovery.te
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ recovery_only(`
userdebug_or_eng(`
permissive recovery;
')

# Volume manager
allow recovery self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
')

0 comments on commit f51b60c

Please sign in to comment.