From: Hauke Mehrtens Date: Sun, 24 Nov 2013 00:01:04 +0000 (+0100) Subject: backports: add current_user_ns() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5e68649891b15e2bd0678e6a4c2183eee3c680cc;p=openwrt%2Fstaging%2Fblogic.git backports: add current_user_ns() current_user_ns() is used by seq_user_ns() if CONFIG_USER_NS is set and kernel version <= 2.6.38. This was added to the kernel in version 2.6.29. Signed-off-by: Hauke Mehrtens --- diff --git a/backport/backport-include/linux/cred.h b/backport/backport-include/linux/cred.h new file mode 100644 index 000000000000..2fbcf0111155 --- /dev/null +++ b/backport/backport-include/linux/cred.h @@ -0,0 +1,10 @@ +#ifndef __BACKPORT_LINUX_CRED_H +#define __BACKPORT_LINUX_CRED_H +#include_next +#include + +#ifndef current_user_ns +#define current_user_ns() (current->nsproxy->user_ns) +#endif + +#endif /* __BACKPORT_LINUX_CRED_H */