Sepolicy: allow vendor_misc_writer to get sota_prop

libc    : Access denied finding property "persist.vendor.nfc.factoryota.state"
avc:  denied  { read } for  comm="misc_writer" name="u:object_r:sota_prop:s0"
dev="tmpfs" ino=317 scontext=u:r:vendor_misc_writer:s0
tcontext=u:object_r:sota_prop:s0 tclass=file permissive=0

Bug: 285803498
Bug: 271950369
Change-Id: I9e5809eba48899751345c3067f116549d8f57029
This commit is contained in:
ChengYou Ho 2023-06-15 09:33:37 +00:00
parent 05961615f6
commit 378ba14598
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,4 @@
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/misc_writer
PRODUCT_PACKAGES += \
misc_writer

View file

@ -0,0 +1 @@
get_prop(vendor_misc_writer, sota_prop)