Home
last modified time | relevance | path

Searched refs:secontext (Results 1 – 25 of 33) sorted by relevance

12

/system/vold/
Dvold_prepare_subdirs.cpp60 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()
DUtils.cpp74 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()
DAndroid.bp129 "secontext.cpp",
/system/core/init/
Dueventd_test.cpp158 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()
Dutil.cpp116 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 …]
Ddevices.cpp228 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()
Dsubcontext.cpp361 for (const auto& [path_prefix, secontext] : paths_and_secontexts) { in InitializeSubcontexts()
362 subcontexts.emplace_back(path_prefix, secontext); in InitializeSubcontexts()
Dbuiltins.cpp646 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()
Dproperty_service.cpp575 for (const auto& [path_prefix, secontext] : paths_and_secontexts) { in LoadProperties()
577 context = secontext; in LoadProperties()
/system/sepolicy/prebuilts/api/26.0/private/
Disolated_app.te33 # is modified to change the secontext when accessing the lower filesystem.
Dadbd.te124 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/prebuilts/api/28.0/public/
Dmediaserver.te119 # This should be removed if sdcardfs is modified to alter the secontext for its
Dkernel.te76 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/prebuilts/api/26.0/public/
Dkernel.te74 # This should be removed if sdcardfs is modified to alter the secontext for its
Dmediaserver.te122 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/prebuilts/api/27.0/public/
Dkernel.te75 # This should be removed if sdcardfs is modified to alter the secontext for its
Dmediaserver.te122 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/public/
Dkernel.te76 # This should be removed if sdcardfs is modified to alter the secontext for its
Dmediaserver.te119 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/prebuilts/api/27.0/private/
Disolated_app.te33 # is modified to change the secontext when accessing the lower filesystem.
Dadbd.te126 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/prebuilts/api/28.0/private/
Disolated_app.te31 # is modified to change the secontext when accessing the lower filesystem.
Dadbd.te131 # This should be removed if sdcardfs is modified to alter the secontext for its
/system/sepolicy/private/
Disolated_app.te31 # is modified to change the secontext when accessing the lower filesystem.
Dadbd.te131 # This should be removed if sdcardfs is modified to alter the secontext for its

12