Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
violet: sepolicy: Attach vendor_property_type to properties
Browse files Browse the repository at this point in the history
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Bug: 159097992
Test: m selinux_policy && boot device
Change-Id: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
Merged-In: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
(cherry picked from commit 44eb8e1f89adf04fd413a69391fd444ba68af742)
(cherry picked from commit 1922128397116d551a663d5344b4456a84bf46eb)
  • Loading branch information
iskim517 authored and Joker-V2 committed Jan 26, 2022
1 parent 802fb44 commit 27c345d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sepolicy/public/property.te
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# IMEI
type deviceid_prop, property_type;
vendor_public_prop(deviceid_prop);
8 changes: 4 additions & 4 deletions sepolicy/vendor/property.te
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Fingerprint
type vendor_fp_prop, property_type;
vendor_public_prop(vendor_fp_prop)

# Init
type vendor_device_prop, property_type;
vendor_internal_prop(vendor_device_prop)

# Power
type vendor_power_prop, property_type;
vendor_internal_prop(vendor_power_prop)

# Thermal
type vendor_thermal_normal_prop, property_type;
vendor_internal_prop(vendor_thermal_normal_prop)

0 comments on commit 27c345d

Please sign in to comment.