Backport 'Set /dev/sg1 permissions in ueventd.rc' to P22

... 'This way we don't need to guess when we need to chown.'

This is Tri's change to init.gs101.rc (http://go/a-g/15447093),
applied to init.<censored>.rc.

Under some circumstances (see bug), storageproxyd needs to access
/dev/sg1 but doesn't have permission, leading to other apps
blocking on storage.

Bug: 214910469
Test: Check that steps b/214910469#comment76 no longer gets stuck
Change-Id: I9e4133b6bb9ffab1e0044a16b3582436ccf5dd44
This commit is contained in:
Thurston Dang 2022-01-22 23:16:58 +00:00
parent da1cccc09e
commit 70b9383b97
2 changed files with 3 additions and 1 deletions

View file

@ -751,7 +751,6 @@ on post-fs-data
symlink /mnt/vendor/persist/ss /data/vendor/ss/persist
chown root system /data/vendor/ss/persist
chmod 0770 /data/vendor/ss/persist
chown system system /dev/sg1
restart storageproxyd

View file

@ -162,6 +162,9 @@
/dev/trusty-ipc-dev0 0660 system drmrpc
/dev/trusty-log0 0660 system system
# RPMB
/dev/sg1 0660 system system
# Citadel
/dev/gsc0 0660 hsm hsm