Read docs lol
This commit is contained in:
2
sepolicy/file_contexts
Normal file
2
sepolicy/file_contexts
Normal file
@@ -0,0 +1,2 @@
|
||||
# Label the JAR file
|
||||
/system/framework/pawlet-device.jar u:object_r:pawlet_device_exec:s0
|
||||
14
sepolicy/pawlet_device.te
Normal file
14
sepolicy/pawlet_device.te
Normal file
@@ -0,0 +1,14 @@
|
||||
# Type declarations
|
||||
type pawlet_device, domain;
|
||||
type pawlet_device_exec, exec_type, file_type, system_file_type;
|
||||
|
||||
# Inherit from core domain
|
||||
typeattribute pawlet_device coredomain;
|
||||
|
||||
# Property access
|
||||
get_prop(pawlet_device, oxmc_prop)
|
||||
set_prop(pawlet_device, oxmc_prop)
|
||||
|
||||
# Framework interactions
|
||||
allow pawlet_device framework_res:file { read getattr };
|
||||
allow pawlet_device system_server:service_manager find;
|
||||
4
sepolicy/property_contexts
Normal file
4
sepolicy/property_contexts
Normal file
@@ -0,0 +1,4 @@
|
||||
# Custom properties
|
||||
ro.oxmc..* u:object_r:oxmc_prop:s0
|
||||
ro.pawlet..* u:object_r:oxmc_prop:s0
|
||||
persist.pawlet..* u:object_r:oxmc_prop:s0
|
||||
Reference in New Issue
Block a user