Lines Matching refs:secontext
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()
250 std::string secontext; in make_dir() local
251 if (SelabelLookupFileContext(path, mode, &secontext) && !secontext.empty()) { in make_dir()
252 setfscreatecon(secontext.c_str()); in make_dir()
257 if (!secontext.empty()) { in make_dir()