1# Basic test for cgroups and executor cgroup setup. 2# This inherently does not work with sandbox="" because sandbox does part of setup. 3# TODO(dvyukov): sandbox=setuid has some permissions setup problems. 4# requires: -sandbox= -sandbox=setuid -C,norepeat 5 6r0 = getpid() 7r1 = openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup/cgroup.procs\x00', 0x2, 0x0) 8read(r1, &(0x7f0000000100)="00", 0x1) 9write$cgroup_pid(r1, &(0x7f0000000100)=r0, 0x12) 10close(r1) 11openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup/pids.max\x00', 0x2, 0x0) 12openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.cpu/cgroup.procs\x00', 0x2, 0x0) 13openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.cpu/cpuset.cpus\x00', 0x2, 0x0) 14openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.net/cgroup.procs\x00', 0x2, 0x0) 15openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.net/devices.allow\x00', 0x1, 0x0) 16