HomeSort by relevance Sort by last modified time
    Searched defs:sehandle (Results 1 - 10 of 10) sorted by null

  /bootable/recovery/updater/
updater.cpp 53 struct selabel_handle *sehandle; variable in typeref:struct:selabel_handle
145 sehandle = selinux_android_file_context_handle();
146 selinux_android_set_sehandle(sehandle);
148 if (!sehandle) {
  /external/selinux/libselinux/src/android/
android.c 50 struct selabel_handle* sehandle; local
52 sehandle = selabel_open(SELABEL_CTX_ANDROID_SERVICE,
55 if (!sehandle) {
64 return sehandle;
android_platform.c 136 struct selabel_handle *sehandle; local
143 sehandle = selabel_open(SELABEL_CTX_FILE, fc_opts, ARRAY_SIZE(fc_opts));
144 if (!sehandle) {
150 selabel_close(sehandle);
156 return sehandle;
187 struct selabel_handle* sehandle; local
210 sehandle = selabel_open(SELABEL_CTX_ANDROID_PROP, seopts_prop, size);
211 if (!sehandle) {
219 return sehandle;
    [all...]
  /system/vold/
main.cpp 25 #include "sehandle.h"
49 struct selabel_handle *sehandle; variable in typeref:struct:selabel_handle
73 sehandle = selinux_android_file_context_handle();
74 if (sehandle) {
75 selinux_android_set_sehandle(sehandle);
vold_prepare_subdirs.cpp 57 static bool prepare_dir(struct selabel_handle* sehandle, mode_t mode, uid_t uid, gid_t gid,
62 if (sehandle && selabel_lookup(sehandle, &tmp_secontext, path.c_str(), S_IFDIR) == 0) {
123 struct selabel_handle* sehandle = selinux_android_file_context_handle(); local
128 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/vold")) return false;
129 if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/storaged")) return false;
132 if (!prepare_dir(sehandle, 0700, AID_SYSTEM, AID_SYSTEM, vendor_de_path + "/fpdata")) {
138 if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/vold")) return false;
139 if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/storaged")) return false;
  /bootable/recovery/tests/component/
updater_test.cpp 51 struct selabel_handle *sehandle = nullptr; variable in typeref:struct:selabel_handle
    [all...]
  /frameworks/native/cmds/servicemanager/
service_manager.c 62 static struct selabel_handle* sehandle; variable in typeref:struct:selabel_handle
97 if (!sehandle) {
98 ALOGE("SELinux: Failed to find sehandle. Aborting service_manager.\n");
102 if (selabel_lookup(sehandle, &tctx, name, 0) != 0) {
288 if (sehandle && selinux_status_updated() > 0) {
295 selabel_close(sehandle);
296 sehandle = tmp_sehandle;
410 sehandle = selinux_android_vendor_service_context_handle();
412 sehandle = selinux_android_service_context_handle();
416 if (sehandle == NULL)
    [all...]
  /system/core/init/
selinux.cpp 74 selabel_handle* sehandle = nullptr; member in namespace:android::init::__anon2768
484 // its value. selinux_android_restorecon() also needs an sehandle for file context look up. It
488 sehandle = selinux_android_file_context_handle();
489 selinux_android_set_sehandle(sehandle);
492 // A C++ wrapper around selabel_lookup() using the cached sehandle.
493 // If sehandle is null, this returns success with an empty context.
497 if (!sehandle) return true;
500 if (selabel_lookup(sehandle, &context, key.c_str(), type) != 0) {
508 // A C++ wrapper around selabel_lookup_best_match() using the cached sehandle.
509 // If sehandle is null, this returns success with an empty context
    [all...]
  /external/selinux/libselinux/src/
selinux_restorecon.c 92 struct selabel_handle *sehandle = NULL; local
95 sehandle = selinux_restorecon_default_handle();
96 selinux_restorecon_set_sehandle(sehandle);
1062 struct selabel_handle *sehandle; local
1068 sehandle = selabel_open(SELABEL_CTX_FILE, fc_opts, 1);
1070 if (!sehandle) {
1077 return sehandle;
  /bootable/recovery/
recovery.cpp 140 struct selabel_handle* sehandle; variable in typeref:struct:selabel_handle
197 mkdir_recursively(path, 0777, true, sehandle);
602 mkdir_recursively(CACHE_LOG_DIR, 0777, false, sehandle) == 0) {
    [all...]

Completed in 328 milliseconds