Home
last modified time | relevance | path

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

/aosp14/system/core/init/
H A Dselabel.cpp26 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()
H A Dueventd_test.cpp134 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()
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_SELinux.cpp36 std::atomic<selabel_handle*> sehandle{nullptr}; variable
39 selabel_handle* h = sehandle.load(); in GetSELabelHandle()
46 if (!sehandle.compare_exchange_strong(expected, h)) { in GetSELabelHandle()
48 return sehandle.load(); in GetSELabelHandle()