/usr/share/cgmanager/tests/test11.sh is in cgmanager-tests 0.39-2ubuntu5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash
echo "test 11: unpriv setvalue to first cgroup"
if [ -n "$SUDO_USER" ]; then
gid=$SUDO_GID
uid=$SUDO_UID
else
gid=1000
uid=1000
fi
sudo -u \#$uid cgm setvalue memory zzz memory.limit_in_bytes 99999
if [ $? -eq 0 ]; then
exit 1
fi
exit 0
|