lxc-test-no-new-privs in ubuntu_lxc failed on F-s390x zVM (lxc 1:4.0.12-0ubuntu1~20.04.1 )
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Issue found on F 5.4.0-108.122 s390x node kernel04
Test failed with:
Running '/tmp/lxc-
+ 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:
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-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-
The test output is a bit different, I think it's because of this commit: https:/
tags: | added: 5.4 focal s390x sru-20220321 ubuntu-lxc |
And that only fails on s390x?