/system/vold/ |
D | vold_prepare_subdirs.cpp | 60 auto secontext = std::unique_ptr<char, void (*)(char*)>(nullptr, freecon); in prepare_dir() local 63 secontext.reset(tmp_secontext); in prepare_dir() 66 << gid << " context " << secontext.get() << " on path: " << path; in prepare_dir() 67 if (secontext) { in prepare_dir() 68 if (setfscreatecon(secontext.get()) != 0) { in prepare_dir() 76 if (secontext) { in prepare_dir() 83 if (strcmp(secontext.get(), oldsecontext.get()) != 0) { in prepare_dir() 85 << ((char*)secontext.get()) << ": " << path; in prepare_dir() 86 if (lsetfilecon(path.c_str(), secontext.get()) != 0) { in prepare_dir()
|
D | Utils.cpp | 74 char* secontext = nullptr; in CreateDeviceNode() local 76 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode() 77 setfscreatecon(secontext); in CreateDeviceNode() 90 if (secontext) { in CreateDeviceNode() 92 freecon(secontext); in CreateDeviceNode() 111 char* secontext = nullptr; in PrepareDir() local 113 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir() 114 setfscreatecon(secontext); in PrepareDir() 120 if (secontext) { in PrepareDir() 122 freecon(secontext); in PrepareDir()
|
D | Android.bp | 129 "secontext.cpp",
|
/system/core/init/ |
D | ueventd_test.cpp | 158 char* secontext; in TEST() local 159 ASSERT_EQ(0, selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST() 161 files_and_modes[i].expected_context = secontext; in TEST() 162 freecon(secontext); in TEST() 174 char* secontext; in TEST() local 175 int result = selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, in TEST() 180 if (files_and_modes[i].expected_context != secontext) { in TEST() 185 freecon(secontext); in TEST()
|
D | util.cpp | 116 std::string secontext; in CreateSocket() local 117 if (SelabelLookupFileContext(addr.sun_path, S_IFSOCK, &secontext) && !secontext.empty()) { in CreateSocket() 118 setfscreatecon(secontext.c_str()); in CreateSocket() 132 if (!secontext.empty()) { in CreateSocket() 188 std::string secontext; in OpenFile() local 189 if (SelabelLookupFileContext(path, mode, &secontext) && !secontext.empty()) { in OpenFile() 190 setfscreatecon(secontext.c_str()); in OpenFile() 195 if (!secontext.empty()) { in OpenFile() 259 std::string secontext; in make_dir() local 260 if (SelabelLookupFileContext(path, mode, &secontext) && !secontext.empty()) { in make_dir() [all …]
|
D | devices.cpp | 228 std::string secontext; in MakeDevice() local 229 if (!SelabelLookupFileContextBestMatch(path, links, mode, &secontext)) { in MakeDevice() 233 if (!secontext.empty()) { in MakeDevice() 234 setfscreatecon(secontext.c_str()); in MakeDevice() 249 if (mknod(path.c_str(), mode, dev) && (errno == EEXIST) && !secontext.empty()) { in MakeDevice() 257 bool different = fcon != secontext; in MakeDevice() 260 if (different && lsetfilecon(path.c_str(), secontext.c_str())) { in MakeDevice() 261 PLOG(ERROR) << "Cannot set '" << secontext << "' SELinux label on '" << path in MakeDevice() 272 if (!secontext.empty()) { in MakeDevice()
|
D | subcontext.cpp | 361 for (const auto& [path_prefix, secontext] : paths_and_secontexts) { in InitializeSubcontexts() 362 subcontexts.emplace_back(path_prefix, secontext); in InitializeSubcontexts()
|
D | builtins.cpp | 646 std::string secontext; in MakeSymlink() local 648 if (SelabelLookupFileContext(linkpath, 0, &secontext) && !secontext.empty()) { in MakeSymlink() 649 setfscreatecon(secontext.c_str()); in MakeSymlink() 654 if (!secontext.empty()) { in MakeSymlink()
|
D | property_service.cpp | 575 for (const auto& [path_prefix, secontext] : paths_and_secontexts) { in LoadProperties() 577 context = secontext; in LoadProperties()
|
/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/28.0/public/ |
D | mediaserver.te | 119 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | kernel.te | 76 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | kernel.te | 74 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | mediaserver.te | 122 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | kernel.te | 75 # This should be removed if sdcardfs is modified to alter the secontext for its
|
D | mediaserver.te | 122 # This should be removed if sdcardfs is modified to alter the secontext for its
|
/system/sepolicy/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/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/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
|