Allow vendor_init to set setupwizard prop
05-16 17:07:33.099472 root 351 351 E init : Unable to set property 'setupwizard.feature.provisioning_profile_mode' from uid:0 gid:0 pid:352: SELinux permission check failed 05-16 17:07:33.095723 root 352 352 W libc : Unable to set property "setupwizard.feature.provisioning_profile_mode" to "true": error code: 0x18 Bug: 339918070 Test: manual Change-Id: Ie1737d7632e11de9750305df4255da55b4a0c426
This commit is contained in:
parent
f23f1fc4fa
commit
432fb7298d
6 changed files with 15 additions and 0 deletions
|
@ -1,2 +1,6 @@
|
|||
# sepolicy exclusively for comet.
|
||||
BOARD_SEPOLICY_DIRS += device/google/comet-sepolicy/vendor
|
||||
|
||||
# system_ext
|
||||
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += device/google/comet-sepolicy/system_ext/public
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/comet-sepolicy/system_ext/private
|
||||
|
|
2
system_ext/private/gmscore_app.te
Normal file
2
system_ext/private/gmscore_app.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Allow to read setupwizard_feature_prop
|
||||
get_prop(gmscore_app, setupwizard_feature_prop)
|
2
system_ext/private/priv_app.te
Normal file
2
system_ext/private/priv_app.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Allow to read setupwizard_feature_prop
|
||||
get_prop(priv_app, setupwizard_feature_prop)
|
2
system_ext/private/property_contexts
Normal file
2
system_ext/private/property_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
# setupwizard
|
||||
setupwizard.feature.provisioning_profile_mode u:object_r:setupwizard_feature_prop:s0
|
2
system_ext/public/property.te
Normal file
2
system_ext/public/property.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# setupwizard
|
||||
system_public_prop(setupwizard_feature_prop)
|
3
vendor/vendor_init.te
vendored
3
vendor/vendor_init.te
vendored
|
@ -1,2 +1,5 @@
|
|||
# Camera vendor property
|
||||
set_prop(vendor_init, vendor_camera_debug_prop)
|
||||
|
||||
# setupwizard
|
||||
set_prop(vendor_init, setupwizard_feature_prop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue