Update sepolicy/pawlet_device.te
This commit is contained in:
@@ -1,7 +1,3 @@
|
|||||||
# Type declarations
|
|
||||||
type pawlet_device, domain;
|
|
||||||
type pawlet_device_exec, exec_type, file_type, system_file_type;
|
|
||||||
|
|
||||||
# Inherit from core domain
|
# Inherit from core domain
|
||||||
typeattribute pawlet_device coredomain;
|
typeattribute pawlet_device coredomain;
|
||||||
|
|
||||||
@@ -14,5 +10,8 @@ binder_use(pawlet_device)
|
|||||||
binder_call(pawlet_device, system_server)
|
binder_call(pawlet_device, system_server)
|
||||||
binder_call(pawlet_device, servicemanager)
|
binder_call(pawlet_device, servicemanager)
|
||||||
|
|
||||||
# ONLY THIS LINE IS NEEDED FOR READING PROPERTIES:
|
# Define a new property type for your device
|
||||||
get_prop(pawlet_device, vendor_default_prop)
|
type pawlet_prop, property_type;
|
||||||
|
|
||||||
|
# Allow your device to get and set its own properties
|
||||||
|
allow pawlet_device pawlet_prop:property_service { get set };
|
Reference in New Issue
Block a user