return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Network interface name not valid: %s", optarg);
+ r = test_network_interface_initialized(optarg);
+ if (r < 0)
+ return r;
+
if (strv_extend(&arg_network_interfaces, optarg) < 0)
return log_oom();
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"MACVLAN network interface name not valid: %s", optarg);
+ r = test_network_interface_initialized(optarg);
+ if (r < 0)
+ return r;
+
if (strv_extend(&arg_network_macvlan, optarg) < 0)
return log_oom();
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"IPVLAN network interface name not valid: %s", optarg);
+ r = test_network_interface_initialized(optarg);
+ if (r < 0)
+ return r;
+
if (strv_extend(&arg_network_ipvlan, optarg) < 0)
return log_oom();
int netns_fd) {
_cleanup_close_ int fd = -1;
+ const char *p;
pid_t pid;
ssize_t l;
int r;
return r;
(void) dev_setup(directory, arg_uid_shift, arg_uid_shift);
- (void) make_inaccessible_nodes(directory, arg_uid_shift, arg_uid_shift);
+
+ p = prefix_roota(directory, "/run/systemd");
+ (void) make_inaccessible_nodes(p, arg_uid_shift, arg_uid_shift);
r = setup_pts(directory);
if (r < 0)