namespace-util: refuse remote pidref in pidref_namespace_open()

This commit is contained in:
Yu Watanabe
2025-01-04 17:07:59 +01:00
committed by Mike Yuan
parent 72661e0091
commit 1775337a36
+3
View File
@@ -62,6 +62,9 @@ int pidref_namespace_open(
assert(pidref_is_set(pidref));
if (pidref_is_remote(pidref))
return -EREMOTE;
if (ret_pidns_fd) {
const char *pidns;