root@lp1916485-b:~# wget 
https://cloud-images.ubuntu.com/hirsute/current/hirsute-server-cloudimg-amd64-root.tar.xz
...
root@lp1916485-b:~# mkdir h
root@lp1916485-b:~# cd h
root@lp1916485-b:~/h# tar xvf ../hirsute-server-cloudimg-amd64-root.tar.xz 
...

root@lp1916485-b:~/h# dpkg -l systemd|grep systemd
ii  systemd        237-3ubuntu10.45 amd64        system and service manager
root@lp1916485-b:~/h# dpkg -l libseccomp2|grep seccomp
ii  libseccomp2:amd64 2.4.3-1ubuntu3.18.04.3 amd64        high level interface 
to Linux seccomp filter
root@lp1916485-b:~/h# systemd-nspawn 
Spawning container h on /root/h.
Press ^] three times within 1s to kill container.
root@h:~# ls -l /usr/bin/gpg
-rwxr-xr-x 1 root root 1083472 Feb 22 09:33 /usr/bin/gpg
root@h:~# test -x /usr/bin/gpg || echo "fail"
fail


root@lp1916485-b:~/h# dpkg -l systemd|grep systemd
ii  systemd        237-3ubuntu10.46 amd64        system and service manager
root@lp1916485-b:~/h# dpkg -l libseccomp2|grep seccomp
ii  libseccomp2:amd64 2.5.1-1ubuntu1~18.04.1 amd64        high level interface 
to Linux seccomp filter
root@lp1916485-b:~/h# systemd-nspawn 
Spawning container h on /root/h.
Press ^] three times within 1s to kill container.
root@h:~# ls -l /usr/bin/gpg
-rwxr-xr-x 1 root root 1083472 Feb 22 09:33 /usr/bin/gpg
root@h:~# test -x /usr/bin/gpg || echo "fail"
root@h:~# 


** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1916485

Title:
  test -x fails inside shell scripts in containers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1916485/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to