pub fn add_v1_mounts(&mut self) -> std::result::Result<(), std::io::Error> {
            let controllers = vec![
                "memory",
                "net_cls,net_prio",
                "pids",
                "cpuset",
                "cpu,cpuacct",
            ];

            for c in &controllers {
                writeln!(
                    self.mounts_file,
                    "cgroup {}/{} cgroup rw,nosuid,nodev,noexec,relatime,{} 0 0",
                    Self::MOCK_SYS_CGROUPS_DIR,
                    c,
                    c,
                )?;
            }
            Ok(())
        }
// Populate the mocked proc/mounts file with cgroupv1 entries
Populate the mocked proc/mounts file with cgroupv1 entries
Populate the mocked proc / mounts file with cgroupv1 entries
pub fn add_v1_mounts(&mut self) -> std::result::Result<(), std::io::Error> {
            let controllers = vec![
                "memory",
                "net_cls,net_prio",
                "pids",
                "cpuset",
                "cpu,cpuacct",
            ];
            for c in &controllers {
                writeln!(
                    self.mounts_file,
                    "cgroup {}/{} cgroup rw,nosuid,nodev,noexec,relatime,{} 0 0",
                    Self::MOCK_SYS_CGROUPS_DIR,
                    c,
                    c,
                )?;
            }
            Ok(())
        }
pub fn add_v1_mounts ( & mut self ) -> std :: result :: Result < ( ) , std :: io :: Error > { let controllers = vec ! [ " " " " " " " " " " ] ; for c in & controllers { writeln ! ( self mounts_file " " Self MOCK_SYS_CGROUPS_DIR c c ) ? ; } Ok ( ( ) ) }
Populate the mocked proc/mounts file with cgroupv1 entries
Populate the mocked proc / mounts file with cgroupv1 entries
&mut self
&mut self