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:
4
misc_writer/misc_writer.mk
Normal file
4
misc_writer/misc_writer.mk
Normal file
@@ -0,0 +1,4 @@
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/misc_writer
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
misc_writer
|
||||
1
misc_writer/vendor_misc_writer.te
Normal file
1
misc_writer/vendor_misc_writer.te
Normal file
@@ -0,0 +1 @@
|
||||
get_prop(vendor_misc_writer, sota_prop)
|
||||
Reference in New Issue
Block a user