Skip to content
Snippets Groups Projects
Commit 47cd53a5 authored by Sami Tolvanen's avatar Sami Tolvanen
Browse files

Allow ueventd to set verity.* properties

On dm-verity errors, we catch uevents in ueventd and set the value
for a matching verity.* property. Allow ueventd to actually change
property values.

Needed by changes from
  Ibb82953594d234f81ad21c40f524190b88e4ac8f

Change-Id: I79bc90733edf8a45b27e64795f4adfbb3bc028dc
parent 41d961a7
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ type radio_prop, property_type;
type net_radio_prop, property_type;
type system_radio_prop, property_type;
type system_prop, property_type;
type verity_prop, property_type;
type vold_prop, property_type;
type ctl_bootanim_prop, property_type;
type ctl_default_prop, property_type;
......
......@@ -49,6 +49,9 @@ selinux. u:object_r:security_prop:s0
vold. u:object_r:vold_prop:s0
crypto. u:object_r:vold_prop:s0
# dm-verity properties
verity. u:object_r:verity_prop:s0
# ro.build.fingerprint is either set in /system/build.prop, or is
# set at runtime by system_server.
build.fingerprint u:object_r:fingerprint_prop:s0
......
......@@ -23,3 +23,9 @@ allow ueventd efs_file:file r_file_perms;
# Use setfscreatecon() to label /dev directories and files.
allow ueventd self:process setfscreate;
# Set property.
unix_socket_connect(ueventd, property, init)
# Property service
allow ueventd verity_prop:property_service set;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment