summaryrefslogtreecommitdiffstats
path: root/init/devices_test.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-08-10 12:22:44 -0700
committerTom Cherry <tomcherry@google.com>2017-08-11 15:00:00 -0700
commit16380365c4f665d17927e507f606a02e59e6f167 (patch)
treea9668ad7d5f5073f18208d4fbfe800a2f3de936d /init/devices_test.cpp
parent0b3c800bb35977da38c9f8bd26d9605065b6cbe2 (diff)
downloadcore-16380365c4f665d17927e507f606a02e59e6f167.tar.gz
core-16380365c4f665d17927e507f606a02e59e6f167.tar.bz2
core-16380365c4f665d17927e507f606a02e59e6f167.zip
init: split security functions out of init.cpp
This change splits out the selinux initialization and supporting functionality into selinux.cpp and splits the security related initialization of the rng, etc to security.cpp. It also provides additional documentation for SEPolicy loading as this has been requested by some teams. It additionally cleans up sehandle and sehandle_prop. The former is static within selinux.cpp and new wrapper functions are created around selabel_lookup*() to better serve the users. The latter is moved to property_service.cpp as it is isolated to that file for its usage. Test: boot bullhead Merged-In: Idc95d493cebc681fbe686b5160502f36af149f60 Change-Id: Idc95d493cebc681fbe686b5160502f36af149f60 (cherry picked from commit 9afb86b25d8675927cb37c86119a7ecf19f74819)
Diffstat (limited to 'init/devices_test.cpp')
-rw-r--r--init/devices_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/devices_test.cpp b/init/devices_test.cpp
index ac4ab9b30..eba00cb78 100644
--- a/init/devices_test.cpp
+++ b/init/devices_test.cpp
@@ -35,13 +35,13 @@ class DeviceHandlerTester {
device_handler_.sysfs_mount_point_ = fake_sys_root.path;
std::string platform_device_dir = fake_sys_root.path + platform_device;
- mkdir_recursive(platform_device_dir, 0777, nullptr);
+ mkdir_recursive(platform_device_dir, 0777);
std::string platform_bus = fake_sys_root.path + "/bus/platform"s;
- mkdir_recursive(platform_bus, 0777, nullptr);
+ mkdir_recursive(platform_bus, 0777);
symlink(platform_bus.c_str(), (platform_device_dir + "/subsystem").c_str());
- mkdir_recursive(android::base::Dirname(fake_sys_root.path + uevent.path), 0777, nullptr);
+ mkdir_recursive(android::base::Dirname(fake_sys_root.path + uevent.path), 0777);
std::vector<std::string> result;
result = device_handler_.GetBlockDeviceSymlinks(uevent);