/system/vold/ |
D | vold_prepare_subdirs.cpp | 60 auto secontext = std::unique_ptr<char, void (*)(char*)>(nullptr, freecon); in prepare_dir_for_user() local 65 secontext.reset(tmp_secontext); in prepare_dir_for_user() 68 if (selinux_android_context_with_level(secontext.get(), &tmp_secontext, user_id, in prepare_dir_for_user() 73 secontext.reset(tmp_secontext); // Free the context in prepare_dir_for_user() 79 << gid << " context " << (secontext ? secontext.get() : "null") in prepare_dir_for_user() 81 if (secontext) { in prepare_dir_for_user() 82 if (setfscreatecon(secontext.get()) != 0) { in prepare_dir_for_user() 90 if (secontext) { in prepare_dir_for_user() 97 if (strcmp(secontext.get(), oldsecontext.get()) != 0) { in prepare_dir_for_user() 99 << ((char*)secontext.get()) << ": " << path; in prepare_dir_for_user() [all …]
|
D | Utils.cpp | 105 char* secontext = nullptr; in CreateDeviceNode() local 107 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode() 108 setfscreatecon(secontext); in CreateDeviceNode() 121 if (secontext) { in CreateDeviceNode() 123 freecon(secontext); in CreateDeviceNode() 453 char* secontext = nullptr; in PrepareDir() local 455 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir() 456 setfscreatecon(secontext); in PrepareDir() 462 if (secontext) { in PrepareDir() 464 freecon(secontext); in PrepareDir()
|
/system/core/init/ |
D | ueventd_test.cpp | 153 char* secontext; in TEST() local 154 ASSERT_EQ(0, selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST() 156 files_and_modes[i].expected_context = secontext; in TEST() 157 freecon(secontext); in TEST() 169 char* secontext; in TEST() local 170 int result = selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST() 175 if (files_and_modes[i].expected_context != secontext) { in TEST() 180 freecon(secontext); in TEST()
|
D | util.cpp | 113 std::string secontext; in CreateSocket() local 114 if (SelabelLookupFileContext(addr.sun_path, S_IFSOCK, &secontext) && !secontext.empty()) { in CreateSocket() 115 setfscreatecon(secontext.c_str()); in CreateSocket() 128 if (!secontext.empty()) { in CreateSocket() 180 std::string secontext; in OpenFile() local 181 if (SelabelLookupFileContext(path, mode, &secontext) && !secontext.empty()) { in OpenFile() 182 setfscreatecon(secontext.c_str()); in OpenFile() 187 if (!secontext.empty()) { in OpenFile() 265 std::string secontext; in make_dir() local 266 if (SelabelLookupFileContext(path, mode, &secontext) && !secontext.empty()) { in make_dir() [all …]
|
D | devices.cpp | 258 std::string secontext; in MakeDevice() local 259 if (!SelabelLookupFileContextBestMatch(path, links, mode, &secontext)) { in MakeDevice() 263 if (!secontext.empty()) { in MakeDevice() 264 setfscreatecon(secontext.c_str()); in MakeDevice() 279 if (mknod(path.c_str(), mode, dev) && (errno == EEXIST) && !secontext.empty()) { in MakeDevice() 287 bool different = fcon != secontext; in MakeDevice() 290 if (different && lsetfilecon(path.c_str(), secontext.c_str())) { in MakeDevice() 291 PLOG(ERROR) << "Cannot set '" << secontext << "' SELinux label on '" << path in MakeDevice() 302 if (!secontext.empty()) { in MakeDevice()
|
D | builtins.cpp | 824 std::string secontext; in MakeSymlink() local 826 if (SelabelLookupFileContext(linkpath, 0, &secontext) && !secontext.empty()) { in MakeSymlink() 827 setfscreatecon(secontext.c_str()); in MakeSymlink() 832 if (!secontext.empty()) { in MakeSymlink()
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | isolated_app.te | 33 # is modified to change the secontext when accessing the lower filesystem.
|
D | adbd.te | 124 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | mediaserver.te | 122 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | kernel.te | 74 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | kernel.te | 76 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | mediaserver.te | 119 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | isolated_app.te | 33 # is modified to change the secontext when accessing the lower filesystem.
|
D | adbd.te | 126 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | mediaserver.te | 122 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | kernel.te | 75 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | mediaserver.te | 115 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | mediaserver.te | 116 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/public/ |
D | mediaserver.te | 115 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | isolated_app.te | 31 # is modified to change the secontext when accessing the lower filesystem.
|
D | adbd.te | 131 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/31.0/public/ |
D | mediaserver.te | 115 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | isolated_app.te | 35 # is modified to change the secontext when accessing the lower filesystem.
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | isolated_app.te | 31 # is modified to change the secontext when accessing the lower filesystem.
|
/system/sepolicy/private/ |
D | isolated_app.te | 35 # is modified to change the secontext when accessing the lower filesystem.
|