summaryrefslogtreecommitdiffstats
path: root/include/namespace.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement support for cgroup namespacesSerge Hallyn2016-03-031-0/+3
| | | | | | Currently these are supported in #for-next. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
* include: fix SYS_{unshare,nsenter} usageKarel Zak2013-04-171-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* remove duplicate includesKarel Zak2013-03-201-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* namespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/Josh Triplett2013-03-131-1/+1
| | | | | | | | | | | This typo causes namespace.h to always unconditionally define CLONE_NEWNS rather than using the system definition. Bug present since the initial version of unshare in commit 4205f1fda1ac32046125a2e0f3937b666186bfab. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Anton Cherkashyn <mail@antonc.com>
* nsenter: fix indentationSami Kerola2013-01-251-28/+27Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* unshare,nsenter: Move the old libc handling into a common header namespace.hEric W. Biederman2013-01-171-0/+43
Move the defitions of CLONE_NEWNS, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWUSER, CLONE_NEWPID into namespace.h in case sched.h does not provide those definitions. Are there systems around that are old enough that still need this? Move the definitions of unshare() and setns() into namespace.h for supporting old versions of libc that does not provice these. I have tested this support with setns as I still have systems old enough that glibc does not wrap setns. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>