[Buildroot] [PATCH 1/1] util-linux: Add an option to compile 'nsenter' binary.

Nicolas Cavallari Nicolas.Cavallari at green-communications.fr
Tue Dec 23 12:33:37 UTC 2014


On 23/12/2014 12:20, Thomas Petazzoni wrote:
> Dear Nicolas Cavallari,
> 
> We had this option in the past, but it was causing some problems with a
> number of toolchains, so we had to revert it. See:
> 
>   http://git.buildroot.net/buildroot/commit/package/util-linux?id=d293e64bfb75c4cbaab7e46472de674ee813d4aa

I didn't know. It was compiling fine with uclibc. Now I realize that
uclibc does not provide setns()...

> Has this issue been resolved?

Yes, there is a fallback in util-linux sources:

# if !defined(HAVE_SETNS) && defined(SYS_setns)
static inline int setns(int fd, int nstype)
{
        return syscall(SYS_setns, fd, nstype);
}
# endif



More information about the buildroot mailing list