Tried this on a Focal AMD64 instance, and it passed with
1:4.0.12-0ubuntu1~20.04.1
Stefan is right, the tool was not updated on that s390x SUT.
Sorry for the noise, this is a manually provisioned system and this
-proposed stuff must be something leftover from the past.
** Changed in: lxc (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1969905
Title:
lxc-test-no-new-privs in ubuntu_lxc failed on F-s390x zVM (lxc
1:4.0.12-0ubuntu1~20.04.1 )
Status in ubuntu-kernel-tests:
New
Status in lxc package in Ubuntu:
Invalid
Bug description:
Issue found on F 5.4.0-108.122 s390x node kernel04
Test failed with:
Running '/tmp/lxc-pkg-ubuntu/src/tests/lxc-test-no-new-privs'
+ DONE=0
+ trap cleanup EXIT SIGHUP SIGINT SIGTERM
+ '[' '!' -d /etc/lxc ']'
+ lxc-create -t busybox -n c1
+ echo 'lxc.no_new_privs = 1'
+ lxc-start -n c1
++ lxc-info -n c1 -p -H
+ p1=65479
+ '[' 65479 '!=' -1 ']'
+ lxc-attach -n c1 --clear-env -- mkdir -p /home/ubuntu
+ lxc-attach -n c1 --clear-env -- /bin/sh -c 'cat <> /etc/passwd
ubuntu:x:1000:1000:ubuntu:/home/ubuntu:/bin/sh
EOF'
+ lxc-attach -n c1 --clear-env --uid 1000 --gid 1000 -- ping -c 1 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: permission denied (are you root?)
+ lxc-stop -n c1 -k
+ sed -i 's/lxc.no_new_privs = 1/lxc.no_new_privs = 0/'
/var/lib/lxc/c1/config
+ lxc-start -n c1
+ lxc-attach -n c1 --clear-env --uid 1000 --gid 1000 -- ping -c 1 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Network is unreachable
Managed to ping localhost
+ echo 'Managed to ping localhost'
+ false
+ cleanup
+ cd /
+ lxc-destroy -n c1 -f
FAIL
+ '[' 0 -eq 0 ']'
+ echo FAIL
+ exit 1
It's worthy to note that this test has passed with 5.4.0-106.120 + lxc
1:4.0.6-0ubuntu1~20.04.1
The test output is a bit different, I think it's because of this commit:
https://github.com/lxc/lxc/commit/f6a53ad2c593ade2320cc357abd15e01e22b6f8d
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1969905/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp