From 72388335d20291e808affb1131ba920e28d6fc76 Mon Sep 17 00:00:00 2001
From: Samuel Tan <samueltan@google.com>
Date: Wed, 26 Aug 2015 18:18:21 -0700
Subject: [PATCH] sepolicy: Apply dhcpcd sepolicy to dhcpcd-6.8.2

Apply the same sepolicy used on dhcpcd to dhcpcd-6.8.2,
which is have it run with the dhcp context, and have its
data files possess the dhcp_data_file context.

BUG: 22956197
Change-Id: I7915b694038bb309d93691ef5d4d293593ef3b5e
---
 file_contexts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/file_contexts b/file_contexts
index 2adece5fe..c9f01d8d1 100644
--- a/file_contexts
+++ b/file_contexts
@@ -170,6 +170,7 @@
 /system/bin/wpa_supplicant	u:object_r:wpa_exec:s0
 /system/bin/sdcard      u:object_r:sdcardd_exec:s0
 /system/bin/dhcpcd      u:object_r:dhcp_exec:s0
+/system/bin/dhcpcd-6.8.2	u:object_r:dhcp_exec:s0
 /system/bin/mtpd	u:object_r:mtp_exec:s0
 /system/bin/pppd	u:object_r:ppp_exec:s0
 /system/bin/tf_daemon	u:object_r:tee_exec:s0
@@ -251,6 +252,7 @@
 /data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0
 /data/misc/camera(/.*)?         u:object_r:camera_data_file:s0
 /data/misc/dhcp(/.*)?           u:object_r:dhcp_data_file:s0
+/data/misc/dhcp-6.8.2(/.*)?     u:object_r:dhcp_data_file:s0
 /data/misc/gatekeeper(/.*)?     u:object_r:gatekeeper_data_file:s0
 /data/misc/keychain(/.*)?       u:object_r:keychain_data_file:s0
 /data/misc/keystore(/.*)?       u:object_r:keystore_data_file:s0
-- 
GitLab