Commit Graph

4134 Commits

Author SHA1 Message Date
Michael Kerrisk e449654fdb flock.2: Add more details on NFS, including Linux 2.6.37 changes
Also: move NOTES text describing interaction of fcntl()
and flock() locks.

Reviewed-by: NeilBrown <neilb@suse.de>
Reported-by: NeilBrown <neilb@suse.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-09 21:30:37 +02:00
Yuri Kozlov f2f50fed25 fanotify_mark.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-08 21:16:39 +02:00
Yuri Kozlov d1c05d0b78 send.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-08 21:16:06 +02:00
Rasmus Villemoes f41d7fb3de sendmmsg.2: Add reference to feature_test_macros(7)
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-04 20:45:30 +02:00
Rasmus Villemoes 9c57aa4847 recvmmsg.2: Add reference to feature_test_macros(7)
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-04 20:45:11 +02:00
Rasmus Villemoes cdcdcf71c3 open_by_handle_at.2: Add reference to feature_test_macros(7)
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-06-04 20:44:39 +02:00
Michael Kerrisk adab861a92 execve.2: RLIMIT_NPROC is checked only if preceded by set*uid()
Reported-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk 8349023145 execve.2: Before kernel 2.6.0, RLIMIT_NPROC had no effect for set*uid()
Reported-by: NeilBrown <neilb@suse.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk ebd381ba7b execve.2: Document EAGAIN error
See also https://bugzilla.kernel.org/show_bug.cgi?id=42704

Reviewed-by: Vasiliy Kulikov <segoon@openwall.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk 27cbe70472 setreuid.2: Error checking should always be performed, even when caller is UID 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk f673b78321 setresuid.2: Error checking should always be performed, even when caller is UID 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk b57db62bf0 seteuid.2: Error checking should always be performed, even when caller is UID 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk 7d8d165a4b setuid.2: Error checking should always be performed, even when caller is UID 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk c4fe0edf5c setuid.2: Since Linux 3.1, the EAGAIN case for RLIMIT_NPROC no longer occurs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk c2cb87b649 setreuid.2: Since Linux 3.1, the EAGAIN case for RLIMIT_NPROC no longer occurs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk 19d889b39a setresuid.2: Since Linux 3.1, the EAGAIN case for RLIMIT_NPROC no longer occurs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk 25b2ea5fd6 setuid.2: Document EAGAIN error that can occur after kernel alloc_uid() failure
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:56 +02:00
Michael Kerrisk 27bb77b0c7 setreuid.2: Document EAGAIN error that can occur after kernel alloc_uid() failure
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:51 +02:00
Michael Kerrisk 199f1e1572 setresuid.2: Document EAGAIN error that can occur after kernel alloc_uid() failure
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:10:41 +02:00
Michael Kerrisk 4b3beb4932 setreuid.2: Add EAGAIN error for hitting RLIMIT_NPROC limit
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:05:43 +02:00
Michael Kerrisk 7a42bf02f7 setuid.2: Correct the description of the EAGAIN error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:05:43 +02:00
Michael Kerrisk c5e8af4dc2 setresuid.2: Correct the description of the EAGAIN error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:05:43 +02:00
Michael Kerrisk a36b2bb0ec seteuid.2: seteuid() and setegid() are implemented as library functions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 17:05:43 +02:00
Michael Kerrisk 8660ef9f1d locale.1, adjtimex.2, clone.2, fork.2, getrlimit.2, remap_file_pages.2, set_mempolicy.2, swapon.2, a64l.3, adjtime.3, argz_add.3, bstring.3, envz_add.3, fpathconf.3, fseek.3, gcvt.3, getaddrinfo_a.3, getauxval.3, getnameinfo.3, getrpcent.3, getrpcport.3, getspnam.3, getutent.3, inet.3, inet_net_pton.3, key_setsecret.3, makecontext.3, makedev.3, malloc_trim.3, mq_getattr.3, newlocale.3, nl_langinfo.3, perror.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_setschedprio.3, pthread_sigqueue.3, rcmd.3, re_comp.3, resolver.3, rexec.3, rtime.3, scandir.3, setlocale.3, setnetgrent.3, sigvec.3, tsearch.3, core.5, proc.5, charsets.7, locale.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-28 15:42:25 +02:00
Simon Paillard 11bae399cf shmget.2: wfix
The section is about failures, no need to recall this for that
specific error code.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-23 15:50:53 +02:00
Rasmus Villemoes 236899f0ab swapon.2: Remove header from synopsis
The <asm/page.h> header is not readily available, and the comment
seems to indicate that it is for getting PAGE_SIZE. But it is
never mentioned why one would need to know that, and it is in any
case better obtained using sysconf(), provided by <unistd.h>.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-22 08:23:27 +02:00
Michael Kerrisk 5918743bc8 adjtimex.2: Add featute test macro requirements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-22 08:23:27 +02:00
Rasmus Villemoes aff9c3077a remap_file_pages.2: Fix prototype
The pgoff argument has type size_t, not ssize_t (and in the kernel it
is unsigned long).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-22 08:23:26 +02:00
Rasmus Villemoes 2cbf26f13e set_mempolicy.2: Fix prototype for set_mempolicy(2)
The nodemask argument is const. The return type in numaif.h is long.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-22 08:23:26 +02:00
Michael Kerrisk 41dfc98f96 fork.2: ERRORS: add pid_max and threads-max to EAGAIN
And rewrite text to be the same as pthread_create(3).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-22 08:23:26 +02:00
Michael Kerrisk e1b6e18657 clone.2: ERRORS: add cross-reference to fork(2) for explanation of EAGAIN
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-22 08:23:26 +02:00
Michael Kerrisk f703b9e10b getrlimit.2: RLIMIT_NPROC is not enforced if CAP_SYS_ADMIN or CAP_SYS_RESOURCE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-22 08:23:26 +02:00
Michael Kerrisk 0da5e58ad2 Removed trailing white space at end of lines 2014-05-21 13:16:14 +02:00
Michael Kerrisk 3d15531307 chown.2, fcntl.2, futex.2, recvmmsg.2, sched_setscheduler.2, semget.2, shmget.2, malloc.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_setaffinity_np.3, strcpy.3, capabilities.7, cpuset.7, credentials.7, pthreads.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-21 13:15:30 +02:00
Michael Kerrisk 0acc5c6d66 renameat2.2: New link to rename.2
When documentation of the renameat2() system calls was added to
rename(2), I overlooked to create the corresponding link file.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-21 08:58:38 +02:00
Michael Kerrisk c73dc4fe14 connect.2: Remove mention of ip_local_port_range under EAGAIN error
Man-pages commit ac7477eb7a added EADDRNOTAVAIL as the correct
error for ephemeral port range exhaustion.  However, that error
was also incorrectly described under the EAGAIN entry. So,
remove that text under EAGAIN.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 13:34:53 +02:00
Michael Kerrisk a568e16408 dup.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 11:30:07 +02:00
Michael Kerrisk 103ea4f6b3 open.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 11:25:57 +02:00
Michael Kerrisk 2feae60283 open.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 11:23:13 +02:00
Michael Kerrisk d6a74b9559 open.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 11:06:18 +02:00
Michael Kerrisk caf2083a46 socket.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 10:51:31 +02:00
Michael Kerrisk 9af6b11576 open.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 10:39:47 +02:00
Michael Kerrisk 177660fae0 ptrace.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 10:10:03 +02:00
Michael Kerrisk cb8a928f3a perf_event_open.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 09:37:03 +02:00
Michael Kerrisk 0c892e5b60 sigaltstack.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 09:21:30 +02:00
Simon Paillard 18c9919b48 fallocate.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-19 08:16:04 +02:00
Michael Kerrisk be5c465e9f fanotify_init.2: Tweak's to Heinrich Schuchardt's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-18 09:47:39 +02:00
Heinrich Schuchardt 1caffed4af fanotify_init.2: Document range of permitted flags for event_f_flags
With a new patch included in the mm tree, event_f_flags is
checked for allowable values.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-18 09:47:08 +02:00
Simon Paillard 3fcc7a7afd semget.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-18 08:49:06 +02:00
Michael Kerrisk db122bbd33 ioctl.2: tfix
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-16 20:10:58 +02:00