Home
last modified time | relevance | path

Searched refs:sehandle (Results 1 – 6 of 6) sorted by relevance

/system/vold/
Dvold_prepare_subdirs.cpp57 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()
124 struct selabel_handle* sehandle = selinux_android_file_context_handle(); in prepare_subdirs() local
129 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/vold")) return false; in prepare_subdirs()
130 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/storaged")) return false; in prepare_subdirs()
131 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/rollback")) return false; in prepare_subdirs()
134 if (!prepare_dir(sehandle, 0700, AID_SYSTEM, AID_SYSTEM, vendor_de_path + "/fpdata")) { in prepare_subdirs()
138 if (!prepare_dir(sehandle, 0700, AID_SYSTEM, AID_SYSTEM, facedata_path)) { in prepare_subdirs()
144 if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/vold")) return false; in prepare_subdirs()
145 if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/storaged")) return false; in prepare_subdirs()
[all …]
Dmain.cpp50 struct selabel_handle* sehandle; variable
74 sehandle = selinux_android_file_context_handle(); in main()
75 if (sehandle) { in main()
76 selinux_android_set_sehandle(sehandle); in main()
Dsehandle.h22 extern struct selabel_handle* sehandle;
DUtils.cpp84 if (sehandle) { in CreateDeviceNode()
85 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode()
121 if (sehandle) { in PrepareDir()
122 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir()
/system/core/init/
Dueventd_test.cpp138 std::unique_ptr<selabel_handle, decltype(&selabel_close)> sehandle( in TEST() local
141 ASSERT_TRUE(sehandle); in TEST()
158 ASSERT_EQ(0, selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST()
174 int result = selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST()
Dselinux.cpp82 selabel_handle* sehandle = nullptr; variable
554 sehandle = selinux_android_file_context_handle(); in SelabelInitialize()
555 selinux_android_set_sehandle(sehandle); in SelabelInitialize()
563 if (!sehandle) return true; in SelabelLookupFileContext()
566 if (selabel_lookup(sehandle, &context, key.c_str(), type) != 0) { in SelabelLookupFileContext()
581 if (!sehandle) return true; in SelabelLookupFileContextBestMatch()
590 if (selabel_lookup_best_match(sehandle, &context, key.c_str(), &c_aliases[0], type) != 0) { in SelabelLookupFileContextBestMatch()