lxc.net.0.type = phys
lxc.net.0.flags = up
-lxc.net.0.link = dummy0
+lxc.net.0.link = random0
lxc.net.0.hwaddr = 4a:49:43:49:79:ff
lxc.net.0.ipv4.address = 10.2.3.6/24
lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3297
lxc.net.1.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596
lxc.net.2.type = phys
lxc.net.2.flags = up
- lxc.net.2.link = dummy0
+ lxc.net.2.link = random0
lxc.net.2.hwaddr = 4a:49:43:49:79:ff
lxc.net.2.ipv4.address = 10.2.3.6/24
lxc.net.2.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3297
lxc.net.1.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596
lxc.net.2.type = phys
lxc.net.2.flags = up
- lxc.net.2.link = dummy0
+ lxc.net.2.link = random0
lxc.net.2.hwaddr = 4a:49:43:49:79:ff
lxc.net.2.ipv4.address = 10.2.3.6/24
lxc.net.2.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3297
lxc.net.1.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596
lxc.net.2.type = phys
lxc.net.2.flags = up
- lxc.net.2.link = dummy0
+ lxc.net.2.link = random0
lxc.net.2.hwaddr = 4a:49:43:49:79:ff
lxc.net.2.ipv4.address = 10.2.3.6/24
lxc.net.2.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3297
if (!token)
continue;
- /* next: dummy password field */
+ /* next: placeholder password field */
token = strtok_r(NULL, ":", &saveptr);
if (!token)
continue;
value == LONG_MAX)
continue;
- /* dummy sanity check: user id matches */
+ /* placeholder conherence check: user id matches */
if ((uid_t)value != uid)
continue;
bool bpf_devices_cgroup_supported(void)
{
__do_bpf_program_free struct bpf_program *prog = NULL;
- const struct bpf_insn dummy[] = {
+ const struct bpf_insn insn[] = {
BPF_MOV64_IMM(BPF_REG_0, 1),
BPF_EXIT_INSN(),
};
if (ret)
return log_error_errno(false, ENOMEM, "Failed to initialize bpf program");
- ret = bpf_program_add_instructions(prog, dummy, ARRAY_SIZE(dummy));
+ ret = bpf_program_add_instructions(prog, insn, ARRAY_SIZE(insn));
if (ret < 0)
return log_trace(false, "Failed to add new instructions to bpf device cgroup program");
DEBUG("Removed existing \"/dev/ptmx\" file");
}
- /* Create dummy /dev/ptmx file as bind mountpoint for /dev/pts/ptmx. */
+ /* Create placeholder /dev/ptmx file as bind mountpoint for /dev/pts/ptmx. */
ret = mknodat(rootfs->dfd_dev, "ptmx", S_IFREG | 0000, 0);
if (ret < 0 && errno != EEXIST)
- return log_error_errno(-1, errno, "Failed to create dummy \"/dev/ptmx\" file as bind mount target");
- DEBUG("Created dummy \"/dev/ptmx\" file as bind mount target");
+ return log_error_errno(-1, errno, "Failed to create \"/dev/ptmx\" file as bind mount target");
+ DEBUG("Created \"/dev/ptmx\" file as bind mount target");
/* Fallback option: create symlink /dev/ptmx -> /dev/pts/ptmx */
ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL);
/* Fallthrough and try to create a symlink. */
ERROR("Failed to bind mount \"/dev/pts/ptmx\" to \"/dev/ptmx\"");
- /* Remove the dummy /dev/ptmx file we created above. */
+ /* Remove the placeholder /dev/ptmx file we created above. */
ret = unlinkat(rootfs->dfd_dev, "ptmx", 0);
if (ret < 0)
return log_error_errno(-1, errno, "Failed to remove existing \"/dev/ptmx\"");
if (!file_exists(destpath)) {
ret = mknod(destpath, S_IFREG | 0000, 0);
if (ret < 0 && errno != EEXIST)
- return log_error_errno(-1, errno, "Failed to create dummy \"%s\" file as bind mount target", destpath);
+ return log_error_errno(-1, errno, "Failed to create \"%s\" file as bind mount target", destpath);
}
ret = safe_mount(path, destpath, "none", MS_BIND, NULL, conf->rootfs.mount);
* newer glibc versions where the getpid() cache is removed and the pid/tid is
* not reset anymore.
* However, if for whatever reason you - dear committer - somehow need to get the
- * pid of the dummy intermediate process for do_share_ns() you need to call
- * lxc_raw_getpid(). The next lxc_raw_clone() call does not employ CLONE_VM and
- * will be fine.
+ * pid of the placeholder intermediate process for do_share_ns() you need to
+ * call lxc_raw_getpid(). The next lxc_raw_clone() call does not employ
+ * CLONE_VM and will be fine.
*/
static inline int do_share_ns(void *arg)
{
/*
* The lxc parser requires that my_args.name is set. So let's satisfy
- * that condition by setting a dummy name which is never used.
+ * that condition by setting a placeholder name which is never used.
*/
my_args.name = "";
if (lxc_arguments_parse(&my_args, argc, argv))
mkdir ${MOUNTDIR}/{lowerdir,upperdir,workdir,overlayfs}
mount -t overlayfs -o lowerdir="${MOUNTDIR}/lowerdir",upperdir="${MOUNTDIR}/upperdir",workdir="${MOUNTDIR}/workdir" none "${MOUNTDIR}/overlayfs"
- CORRECT_LINK_TARGET="${MOUNTDIR}/overlayfs/dummy_file"
+ CORRECT_LINK_TARGET="${MOUNTDIR}/overlayfs/placeholder_file"
exec 9> "${CORRECT_LINK_TARGET}"
DETECTED_LINK_TARGET=$(readlink -q /proc/$$/fd/9)