Commit Graph

48 Commits

Author SHA1 Message Date
Michael Kerrisk daf084cc33 clone.2, flock.2, getpid.2, getunwind.2, mount.2, reboot.2, semop.2, seteuid.2, setgid.2, setns.2, setresuid.2, setreuid.2, setuid.2, uname.2, unshare.2, clock.3, drand48.3, proc.5, capabilities.7, credentials.7, mq_overview.7, namespaces.7, pid_namespaces.7, svipc.7, user_namespaces.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-21 11:23:07 +02:00
Michael Kerrisk 53d084e81a setns.2: Add pointer to user_namespaces(7)
Add pointer to user_namespaces(7) for details on interactions
of user and mount namespaces

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-15 10:59:30 +02:00
Michael Kerrisk d0c5d17b30 setns.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-15 10:56:31 +02:00
Michael Kerrisk 9f4bb2a6c2 setns.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-15 10:53:18 +02:00
Michael Kerrisk 6edfe90905 setns.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-15 10:52:17 +02:00
Michael Kerrisk e63259f20e setns.2: ERRORS: Add EINVAL for two cases of joining a new user namespace
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:16:03 -07:00
Michael Kerrisk 8db3776096 setns.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:16:03 -07:00
Michael Kerrisk 85e34225be setns.2: A process can't join a new userns if it shares CLONE_FS attributes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:16:02 -07:00
Michael Kerrisk 16fe718f99 setns.2: wfix 2014-09-13 20:15:59 -07:00
Michael Kerrisk e57c3979fe setns.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:59 -07:00
Michael Kerrisk ec66fbfff5 setns.2: Reorganize text on user namespaces
And add reference to user_namespaces(7).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:59 -07:00
Michael Kerrisk 5c8d010b84 setns.2, unshare.2: Add reference to pid_namespaces(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:59 -07:00
Michael Kerrisk 5c67baab4f setns.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:59 -07:00
Michael Kerrisk 7fc8e5ece2 setns.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:59 -07:00
Michael Kerrisk edc3c3b4c0 setns.2: Attempt to rejoin current user namespace gives EINVAL
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:59 -07:00
Michael Kerrisk 41096af101 clone.2, setns.2, unshare.2: SEE ALSO: add namespaces(7); remove proc(5)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:57 -07:00
Michael Kerrisk 13009cfaa6 setns.2: Change page xref from proc(5) to namespaces(7) 2014-09-13 20:15:57 -07:00
Michael Kerrisk 7612b8a7e1 setns.2: setns() into a user namespace grants all capabilities in that namespace
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk 3c98ab169f setns.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk 268a93cb30 setns.2: Specify kernel version on each CLONE_NEW* flag
And remove text on flags from VERSIONS.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk 773f59eb02 setns.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk 81714b4f86 setns.2: Rework discussion of restrictions on changing user namespace
After comments from Eric Biederman

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk 21bfe3e933 setns.2: Clarify capabilities required for reassociating with a mount namespace
Based on comments from Eric Biederman.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk 2a9f74a936 setns.2: SEE ALSO: Add unshare(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk f16c7698e2 setns.2: Clarify wording in CLONE_NEWPID discussion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk 49af76fed3 setns.2: Various fixes for text on PID, user, and mount namespace support
After comments from Eric Biederman

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Michael Kerrisk cd7e05aa16 setns.2: Fixes for text on PID, user, and mount namespace support
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Eric W. Biederman 99fd2fe3b5 setns.2: Document the PID, user, and mount namespace support
Document CLONE_NEWPID, CLONE_NEWUSER, and CLONE_NEWNS flags.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-13 20:15:56 -07:00
Simon Paillard 5c977011c1 ptrace.2, setns.2, glob.7, ld.so.8: ffix: hyphen-used-as-minus-sign
See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-05 13:09:41 +02:00
Michael Kerrisk 8ff7380d6f epoll_create.2, epoll_ctl.2, epoll_wait.2, eventfd.2, fallocate.2, futex.2, getcpu.2, getitimer.2, ioctl_list.2, ioprio_set.2, migrate_pages.2, move_pages.2, pciconfig_read.2, sendfile.2, setns.2, signalfd.2, spu_create.2, spu_run.2, sysinfo.2, timerfd_create.2, backtrace.3, cmsg.3, error.3, getpt.3, getrpcent.3, getrpcport.3, getsubopt.3, offsetof.3, program_invocation_name.3, rpc.3, rpmatch.3, rtnetlink.3, xdr.3, cciss.4, hpsa.4, pts.4, charmap.5, dir_colors.5, elf.5, gai.conf.5, locale.5, nscd.conf.5, nss.5, resolv.conf.5, rpc.5, arp.7, cpuset.7, ddp.7, epoll.7, fifo.7, futex.7, icmp.7, ip.7, ipv6.7, mailaddr.7, netdevice.7, packet.7, raw.7, regex.7, rtnetlink.7, socket.7, spufs.7, tcp.7, udp.7, unix.7, x25.7, ldconfig.8, nscd.8: Global fix: s/END_LICENSE/LICENSE_END/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-12 10:31:09 +01:00
Michael Kerrisk 2297bf0ef5 ldd.1, capget.2, clone.2, create_module.2, fallocate.2, futex.2, get_kernel_syms.2, get_thread_area.2, getcpu.2, getitimer.2, getpid.2, io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, io_submit.2, ioctl_list.2, mkdir.2, mknod.2, pciconfig_read.2, pivot_root.2, posix_fadvise.2, query_module.2, sendfile.2, set_thread_area.2, setns.2, unshare.2, __setfpucw.3, a64l.3, addseverity.3, argz_add.3, bindresvport.3, cabs.3, cacos.3, cacosh.3, canonicalize_file_name.3, carg.3, casin.3, casinh.3, catan.3, catanh.3, ccos.3, ccosh.3, cerf.3, cexp.3, cexp2.3, cimag.3, clog.3, clog10.3, clog2.3, cmsg.3, conj.3, cpow.3, cproj.3, creal.3, csin.3, csinh.3, csqrt.3, ctan.3, ctanh.3, des_crypt.3, envz_add.3, fdim.3, fma.3, fmax.3, fmemopen.3, fmin.3, fmtmsg.3, fpclassify.3, gamma.3, getpt.3, getrpcent.3, getrpcport.3, getttyent.3, isgreater.3, key_setsecret.3, lgamma.3, malloc_hook.3, mempcpy.3, nan.3, netlink.3, nextafter.3, putgrent.3, remove.3, remquo.3, rpc.3, rtime.3, rtnetlink.3, setaliasent.3, setnetgrent.3, signbit.3, significand.3, sincos.3, stdin.3, tgamma.3, xcrypt.3, xdr.3, cciss.4, hpsa.4, mouse.4, pts.4, sk98lin.4, tty_ioctl.4, wavelan.4, hosts.equiv.5, rpc.5, tzfile.5, boot.7, complex.7, ddp.7, fifo.7, futex.7, icmp.7, ip.7, ipv6.7, netdevice.7, netlink.7, packet.7, raw.7, rtnetlink.7, socket.7, tcp.7, udp.7, unix.7, x25.7, sync.8: Global fix: Put copyright info at top of page, followed by blank line and LICENSE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-10 10:57:11 +01:00
Michael Kerrisk c4a99c30b7 fallocate.2, setns.2, cciss.4, hpsa.4: Added LICENSE_START(GPLv2_ONELINE)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-10 10:57:11 +01:00
Michael Kerrisk 7fc9de91dd fsync.2, getcpu.2, io_getevents.2, kcmp.2, killpg.2, outb.2, perf_event_open.2, setns.2, getaddrinfo_a.3, makedev.3, mcheck.3, perror.3, posix_memalign.3, xdr.3, cciss.4, fd.4, hpsa.4, st.4, acct.5, gai.conf.5, nss.5, proc.5, ip.7, koi8-r.7, netdevice.7, netlink.7, ld.so.8: Remove double blank lines in output
Found using this script from Denys Vlasenko (with some mods
by mtk):

    find man? -type f -name '*.[123456789]' -size +200c | sort \
    | while read name; do
            m1="`man $name | tail -n +5 | head -n-1`"
            m2="`
            printf "%s\n" "$m1" \
            | tr $'\n' '@' \
            | sed 's/@@@/@@HERE>>>>@/g' \
            | tr '@' $'\n' \
            | sed 's/^/\t/' \
            | sed 's/^\tHERE>>>>/    HERE>>>>/' \
            | grep -C2 -e $'^[^\t]' \
            | sed 's/^\t$//'
            `"
            test "$m2" || continue
            printf "%s\n%s\n" "${name#./}" "$m2"
    done

Reported-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-25 07:05:55 +01:00
Michael Kerrisk 51ebe08047 setns.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 15:25:01 +01:00
Michael Kerrisk 9f1b972601 Removed trailing white space at end of lines 2013-01-27 21:28:25 +01:00
Michael Kerrisk a1ce9159e7 setns.2: Minor changes to example program discussion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-01-03 03:43:38 +01:00
Michael Kerrisk c0ce4807c1 setns.2: Minor fix: rename example program binary
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-01-02 08:11:47 +01:00
Michael Kerrisk 8d41e6071a setns.2: Add example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>

Conflicts:
	man2/setns.2
2013-01-01 03:53:40 +01:00
Michael Kerrisk c95b6ae1ce faccessat.2, fchmodat.2, fchownat.2, fstatat.2, futimesat.2, inotify_init.2, linkat.2, mkdirat.2, mknodat.2, openat.2, readlinkat.2, renameat.2, setns.2, splice.2, symlinkat.2, sync.2, tee.2, unlinkat.2, vmsplice.2: Global fix: note glibc version that added library support
Reported-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:16 +12:00
Michael Kerrisk c409c4ffa3 Removed trailing white space at end of lines 2011-10-04 08:34:28 +02:00
Michael Kerrisk 41acdb62c9 Changes, setns.2, stat.2, proc.5, capabilities.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-04 08:32:21 +02:00
Michael Kerrisk 7aa166c58d setns.2: Edited in review comments from Eric Biederman
Reviewed-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-03 08:36:41 +02:00
Michael Kerrisk 92dcb22063 setns.2: Various improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-03 08:36:41 +02:00
Michael Kerrisk b93a34b5a2 setns.2: Minor improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-03 08:36:41 +02:00
Michael Kerrisk 4e1e208d0f setns.2: srcfix: Added FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-03 08:36:41 +02:00
Michael Kerrisk 63b6ef4127 setns.2: Note privileges required
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-03 08:36:41 +02:00
Michael Kerrisk c07ad242fd setns.2: Minor improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-03 08:36:41 +02:00
Eric W. Biederman dfa22c8b77 setns.2: New manual page for setns(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-10-03 08:36:41 +02:00