Searched refs:sehandle (Results 1 – 6 of 6) sorted by relevance
/system/vold/ |
D | vold_prepare_subdirs.cpp | 57 static bool prepare_dir(struct selabel_handle* sehandle, mode_t mode, uid_t uid, gid_t gid, in prepare_dir() argument 62 if (sehandle && selabel_lookup(sehandle, &tmp_secontext, path.c_str(), S_IFDIR) == 0) { in prepare_dir() 123 static bool prepare_apex_subdirs(struct selabel_handle* sehandle, const std::string& path) { in prepare_apex_subdirs() argument 124 if (!prepare_dir(sehandle, 0711, 0, 0, path + "/apexdata")) return false; in prepare_apex_subdirs() 141 if (!prepare_dir(sehandle, 0771, AID_ROOT, AID_SYSTEM, path + "/apexdata/" + name)) { in prepare_apex_subdirs() 149 struct selabel_handle* sehandle = selinux_android_file_context_handle(); in prepare_subdirs() local 154 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/vold")) return false; in prepare_subdirs() 155 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/storaged")) return false; in prepare_subdirs() 156 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/rollback")) return false; in prepare_subdirs() 158 prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/apexrollback"); in prepare_subdirs() [all …]
|
D | main.cpp | 55 struct selabel_handle* sehandle; variable 79 sehandle = selinux_android_file_context_handle(); in main() 80 if (sehandle) { in main() 81 selinux_android_set_sehandle(sehandle); in main()
|
D | sehandle.h | 22 extern struct selabel_handle* sehandle;
|
D | Utils.cpp | 86 if (sehandle) { in CreateDeviceNode() 87 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode() 123 if (sehandle) { in PrepareDir() 124 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir()
|
/system/core/init/ |
D | selabel.cpp | 26 selabel_handle* sehandle = nullptr; variable 34 sehandle = selinux_android_file_context_handle(); in SelabelInitialize() 35 selinux_android_set_sehandle(sehandle); in SelabelInitialize() 43 if (!sehandle) return true; in SelabelLookupFileContext() 46 if (selabel_lookup(sehandle, &context, key.c_str(), type) != 0) { in SelabelLookupFileContext() 61 if (!sehandle) return true; in SelabelLookupFileContextBestMatch() 70 if (selabel_lookup_best_match(sehandle, &context, key.c_str(), &c_aliases[0], type) != 0) { in SelabelLookupFileContextBestMatch()
|
D | ueventd_test.cpp | 134 std::unique_ptr<selabel_handle, decltype(&selabel_close)> sehandle( in TEST() local 137 ASSERT_TRUE(sehandle); in TEST() 154 ASSERT_EQ(0, selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST() 170 int result = selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST()
|