Skip to content

Commit

Permalink
Merge pull request #613 from ix5/toolbox-context
Browse files Browse the repository at this point in the history
[Q-COMPAT] Change toybox run context, update selinux xattr
  • Loading branch information
jerpelea committed Jul 29, 2019
2 parents 0e27d04 + 305913c commit afc15bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rootdir/vendor/etc/init/hw/init.common.rc
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ on fs
# CDSP devices
start cdspstart_sh

# Remove "security.restorecon_last" xattr from /mnt/vendor/persist/
exec u:r:vendor_init:s0 root root -- /vendor/bin/toybox_vendor setfattr -x security.restorecon_last /mnt/vendor/persist/
# (Android <= 9): Remove "security.restorecon_last" xattr from /mnt/vendor/persist/
exec u:r:vendor_toolbox:s0 root root -- /vendor/bin/toybox_vendor setfattr -x security.restorecon_last /mnt/vendor/persist/
# (Android >= 10): Remove "security.sehash" xattr from /mnt/vendor/persist/
exec u:r:vendor_toolbox:s0 root root -- /vendor/bin/toybox_vendor setfattr -x security.sehash /mnt/vendor/persist/
# And force restoring of SELinux labels
restorecon_recursive /mnt/vendor/persist/

Expand Down

0 comments on commit afc15bf

Please sign in to comment.