diff options
author | Janis Danisevskis <jdanis@google.com> | 2016-03-13 14:47:23 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-03-13 14:47:23 +0000 |
commit | b9c078880644b51bc9e6c314eed157f230fce43c (patch) | |
tree | ad8aeb2bc576ec95cfd8e8c8f3190b07faa68266 /init/init.cpp | |
parent | 1f13c1a208394b74a8c60e677546a8c8ed697091 (diff) | |
parent | 3d1dff22311bb6b3c01115f0c4400dcdc37c35c3 (diff) |
Merge "Leftovers of the SELinux policy update mechanism"
Diffstat (limited to 'init/init.cpp')
-rw-r--r-- | init/init.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/init/init.cpp b/init/init.cpp index 9e6143be3..bac27df88 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -460,24 +460,6 @@ static bool selinux_is_enforcing(void) return true; } -int selinux_reload_policy(void) -{ - INFO("SELinux: Attempting to reload policy files\n"); - - if (selinux_android_reload_policy() == -1) { - return -1; - } - - if (sehandle) - selabel_close(sehandle); - - if (sehandle_prop) - selabel_close(sehandle_prop); - - selinux_init_all_handles(); - return 0; -} - static int audit_callback(void *data, security_class_t /*cls*/, char *buf, size_t len) { property_audit_data *d = reinterpret_cast<property_audit_data*>(data); |