Attach vendor_property_type to properties
authorInseob Kim <inseob@google.com>
Tue, 18 Aug 2020 14:29:12 +0000 (23:29 +0900)
committerSamarV-121 <samarvispute121@pm.me>
Sat, 8 Jan 2022 04:25:56 +0000 (09:55 +0530)
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: I33c40ca345365d8f01f43d3ce7f1f3434b1edfd5
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
common/public/property.te
common/vendor/property.te
tee/mobicore/common/property.te
tee/teegris/vendor/property.te

index 0b1e97c632016eeb17a217444c931c5efe9db9c2..f593525d4ad98b9be9e3ca223bedbaf0491a8c38 100644 (file)
@@ -1,2 +1,2 @@
 ### RFKILL
-type rfkilldisabled_prop, property_type;
+vendor_public_prop(rfkilldisabled_prop)
index 98639bd53b307622c93e545deb52b0b299d89b8b..2644228f7a4e39408fcd1e5a967376c1c9d46d6b 100644 (file)
@@ -1,6 +1,6 @@
 # property.te
 
-type vendor_cbd_prop, property_type;
-type vendor_radio_prop, property_type;
-type vendor_fastcharge_prop, property_type;
-type vendor_wifi_prop, property_type;
+vendor_internal_prop(vendor_cbd_prop)
+vendor_internal_prop(vendor_radio_prop)
+vendor_internal_prop(vendor_fastcharge_prop)
+vendor_internal_prop(vendor_wifi_prop)
index 183c2a593ad8fbbde3c2c9a53a9017f46cf66d30..ffa36c621a05d90faa34a2467dc9818fe938522e 100644 (file)
@@ -1 +1 @@
-type tee_prop, property_type;
+vendor_internal_prop(tee_prop)
index 231d68e3917dc3b72f3a6978c168f3ae4c809d0d..999ded52b77e27fd67e81a528f2eed0a85400c80 100644 (file)
@@ -1,4 +1,4 @@
 # property.te
-type vendor_secureos_prop, property_type;
-type vendor_tzdaemon_prop, property_type;
-type vendor_tztsdaemon_prop, property_type;
+vendor_internal_prop(vendor_secureos_prop)
+vendor_internal_prop(vendor_tzdaemon_prop)
+vendor_internal_prop(vendor_tztsdaemon_prop)