Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Unverified Commit e571d4ee authored by Christian Brauner's avatar Christian Brauner
Browse files

nsproxy: restore EINVAL for non-namespace file descriptor


The LTP testsuite reported a regression where users would now see EBADF
returned instead of EINVAL when an fd was passed that referred to an open
file but the file was not a nsfd. Fix this by continuing to report EINVAL.

Reported-by: default avatarkernel test robot <rong.a.chen@intel.com>
Cc: Jan Stancek <jstancek@redhat.com>
Cc: Cyril Hrubis <chrubis@suse.cz>
Link: https://lore.kernel.org/lkml/20200615085836.GR12456@shao2-debian
Fixes: 303cc571

 ("nsproxy: attach to namespaces via pidfds")
Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
parent b3a9e3b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment