Lines Matching refs:nsPath
93 char nsPath[PATH_MAX]; in readNamespacePid() local
94 snprintf(nsPath, sizeof(nsPath), "%s/%s.pid", kNetNsDir, ns); in readNamespacePid()
96 File file(::fopen(nsPath, "r")); in readNamespacePid()
99 nsPath, ns, strerror(errno)); in readNamespacePid()
112 LOGE("File %s does not contain a valid pid '%s'", nsPath, buffer); in readNamespacePid()
114 LOGE("Error reading from file %s: %s", nsPath, strerror(errno)); in readNamespacePid()
116 LOGE("Invalid contents of pid file %s", nsPath); in readNamespacePid()
134 char nsPath[PATH_MAX]; in setNetworkNamespace() local
135 snprintf(nsPath, sizeof(nsPath), "/proc/%s/ns/net", pid.c_str()); in setNetworkNamespace()
137 FileDescriptor nsFd(open(nsPath, O_RDONLY | O_CLOEXEC)); in setNetworkNamespace()
140 ns, nsPath, strerror(errno)); in setNetworkNamespace()