Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: kernel test robot <[email protected]> Cc: Jan Stancek <[email protected]> Cc: Cyril Hrubis <[email protected]> Link: https://lore.kernel.org/lkml/20200615085836.GR12456@shao2-debian Fixes: 303cc57 ("nsproxy: attach to namespaces via pidfds") Signed-off-by: Christian Brauner <[email protected]>
- Loading branch information