Lines Matching refs:mount
4 #include <sys/mount.h>
20 * we create a new mount namespace, and cgroup namespace. The cgroupv2
23 * own mount namespace and manage it ourselves. We assume /mnt exists.
27 * mount under /sys/fs/cgroup/net_cls, which should be the case for the
203 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL)) {
204 log_err("mount fakeroot");
208 if (mount("none", CGROUP_MOUNT_PATH, "cgroup2", 0, NULL) && errno != EBUSY) {
209 log_err("mount cgroup2");
491 if (mount("tmpfs", CGROUP_MOUNT_DFLT, "tmpfs", 0, NULL) &&
493 log_err("mount cgroup base");
502 if (mount("net_cls", NETCLS_MOUNT_PATH, "cgroup", 0, "net_cls")) {
504 log_err("mount cgroup net_cls");