From 6daf5144483d66384a61649ed6225a4e07b72650 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Mon, 1 May 2017 10:39:03 -0700 Subject: [PATCH] ueventd: remove leftovers of the SELinux policy update mechanism Reloading sepolicy has been removed from the system, so this support code can also now be removed. Bug: 26544104 Test: Boot bullhead Change-Id: If9dbc9d540d9a69340c1dd6a483c1f8fe5feb287 --- init/devices.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/init/devices.cpp b/init/devices.cpp index 07d28d0bc..11687f06c 100644 --- a/init/devices.cpp +++ b/init/devices.cpp @@ -47,7 +47,6 @@ #include #include #include -#include #include #include @@ -783,15 +782,6 @@ coldboot_action_t handle_device_fd(coldboot_callback fn) { coldboot_action_t ret = handle_device_fd_with( [&](uevent* uevent) -> coldboot_action_t { - if (selinux_status_updated() > 0) { - struct selabel_handle *sehandle2; - sehandle2 = selinux_android_file_context_handle(); - if (sehandle2) { - selabel_close(sehandle); - sehandle = sehandle2; - } - } - // default is to always create the devices coldboot_action_t act = COLDBOOT_CREATE; if (fn) { @@ -881,7 +871,6 @@ void device_init(const char* path, coldboot_callback fn) { return; } fcntl(device_fd, F_SETFL, O_NONBLOCK); - selinux_status_open(true); } if (access(COLDBOOT_DONE, F_OK) == 0) { @@ -915,7 +904,6 @@ void device_init(const char* path, coldboot_callback fn) { void device_close() { platform_devices.clear(); device_fd.reset(); - selinux_status_close(); } int get_device_fd() {