[LTP] [PATCH] syscalls/clone09.c: skip this test if net ns is not supported

Cyril Hrubis chrubis@suse.cz
Thu Jul 20 14:17:17 CEST 2017


Hi!
> If net namespace is supported and disable, clone(CLONE_NEWNET) fails
> and sets errno to EINVAL as expected.  However, If net namespace is
> not supported(e.g. RHEL5.11GA), clone(CLONE_NEWNET) succeeds abnormally.

This sounds like a kernel bug. The usuall course of action for unknown
flag is to return EINVAL.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list