Home
last modified time | relevance | path

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

/system/core/fs_mgr/
Dfs_mgr_format.cpp58 struct selabel_handle *sehandle = selinux_android_file_context_handle(); in format_ext4() local
59 if (!sehandle) { in format_ext4()
74 …rc = make_ext4fs_internal(fd, NULL, NULL, fs_mnt_point, 0, 0, 0, 0, 0, 0, sehandle, 0, 0, NULL, NU… in format_ext4()
80 if (sehandle) { in format_ext4()
81 selabel_close(sehandle); in format_ext4()
/system/vold/
Dmain.cpp48 struct selabel_handle *sehandle; variable
70 sehandle = selinux_android_file_context_handle(); in main()
71 if (sehandle) { in main()
72 selinux_android_set_sehandle(sehandle); in main()
Dsehandle.h22 extern struct selabel_handle *sehandle;
DUtils.cpp65 if (sehandle) { in CreateDeviceNode()
66 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode()
101 if (sehandle) { in PrepareDir()
102 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir()
DLoop.cpp156 if (sehandle) { in create()
157 rc = selabel_lookup(sehandle, &secontext, filename, S_IFBLK); in create()
/system/core/init/
Dinit.h24 extern struct selabel_handle *sehandle;
Dutil.cpp125 if (sehandle) { in create_socket()
126 if (selabel_lookup(sehandle, &filecon, addr.sun_path, S_IFSOCK) == 0) { in create_socket()
294 if (sehandle) { in make_dir()
295 selabel_lookup(sehandle, &secontext, path, mode); in make_dir()
Ddevices.cpp63 extern struct selabel_handle *sehandle;
240 if (sehandle) { in make_device()
241 if (selabel_lookup_best_match(sehandle, &secontext, path, links, mode)) { in make_device()
955 selabel_close(sehandle); in handle_device_fd()
956 sehandle = sehandle2; in handle_device_fd()
1037 if (!sehandle) { in device_init()
1038 sehandle = selinux_android_file_context_handle(); in device_init()
Dinit.cpp76 struct selabel_handle *sehandle; variable
536 sehandle = selinux_android_file_context_handle(); in selinux_init_all_handles()
537 selinux_android_set_sehandle(sehandle); in selinux_init_all_handles()