On Thu, Jun 17, 2021 at 11:50:42AM -0500, Bruce Dubbs wrote: > On 6/17/21 6:37 AM, Anatoly Pugachev wrote: > > util-linux$ git diff > > diff --git a/tests/ts/lsns/ioctl_ns b/tests/ts/lsns/ioctl_ns > > index e91f6743f..b8f35e2e5 100755 > > --- a/tests/ts/lsns/ioctl_ns > > +++ b/tests/ts/lsns/ioctl_ns > > @@ -24,6 +24,9 @@ ts_init "$*" > > # ts_skip_nonroot > > grep -q '#define HAVE_LINUX_NSFS_H' ${top_builddir}/config.h || > > ts_skip "no ioctl_ns support" > > > > +[ -a /proc/self/ns/user ] || ts_skip "no USER namespace kernel support" > > +[ -a /proc/self/ns/pid ] || ts_skip "no PID namespace kernel support" > > + > > ts_check_test_command "$TS_CMD_LSNS" > > ts_check_test_command "$TS_CMD_UNSHARE" > > ts_check_prog "stat" > > > > Looks pretty good to me, but I would use -r instead of -a. Applied with -r, thanks guys! Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com