Lines Matching refs:secontext
115 std::string secontext; in CreateSocket() local
116 if (SelabelLookupFileContext(addr.sun_path, S_IFSOCK, &secontext) && !secontext.empty()) { in CreateSocket()
117 setfscreatecon(secontext.c_str()); in CreateSocket()
130 if (!secontext.empty()) { in CreateSocket()
182 std::string secontext; in OpenFile() local
183 if (SelabelLookupFileContext(path, mode, &secontext) && !secontext.empty()) { in OpenFile()
184 setfscreatecon(secontext.c_str()); in OpenFile()
189 if (!secontext.empty()) { in OpenFile()
252 std::string secontext; in make_dir() local
253 if (SelabelLookupFileContext(path, mode, &secontext) && !secontext.empty()) { in make_dir()
254 setfscreatecon(secontext.c_str()); in make_dir()
259 if (!secontext.empty()) { in make_dir()