mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-31 00:16:58 +00:00
Merge "Device SELinux policy for secure persistent netd storage" into oc-dr1-dev
am: 4293069bf3
Change-Id: If3f2e474fc694ef6a0254846985ce0f059112a49
This commit is contained in:
10
sepolicy/private/netd.te
Normal file
10
sepolicy/private/netd.te
Normal file
@@ -0,0 +1,10 @@
|
||||
# TODO: delete this once it's in common sepolicy.
|
||||
set_prop(netd, netd_stable_secret_prop)
|
||||
|
||||
# persist.netd.stable_secret contains RFC 7217 secret key which should never be
|
||||
# leaked to other processes. Make sure it never leaks.
|
||||
neverallow { domain -netd -init } netd_stable_secret_prop:file r_file_perms;
|
||||
|
||||
# We want to ensure that no other process ever tries tampering with persist.netd.stable_secret,
|
||||
# the RFC 7217 secret key managed by netd. Doing so could compromise user privacy.
|
||||
neverallow { domain -netd -init } netd_stable_secret_prop:property_service set;
|
||||
2
sepolicy/private/property.te
Normal file
2
sepolicy/private/property.te
Normal file
@@ -0,0 +1,2 @@
|
||||
# TODO: delete this once it's in common sepolicy.
|
||||
type netd_stable_secret_prop, property_type;
|
||||
2
sepolicy/private/property_contexts
Normal file
2
sepolicy/private/property_contexts
Normal file
@@ -0,0 +1,2 @@
|
||||
# TODO: delete this once it's in common sepolicy.
|
||||
persist.netd.stable_secret u:object_r:netd_stable_secret_prop:s0
|
||||
Reference in New Issue
Block a user