]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
9 years agoldconfig.8: srcfix: FIXME
Michael Kerrisk [Mon, 16 Feb 2015 04:49:44 +0000 (05:49 +0100)] 
ldconfig.8: srcfix: FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoldconfig.8: srcfix: FIXME
Michael Kerrisk [Mon, 16 Feb 2015 04:38:16 +0000 (05:38 +0100)] 
ldconfig.8: srcfix: FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agozic.8: ffix
Michael Kerrisk [Mon, 16 Feb 2015 04:25:25 +0000 (05:25 +0100)] 
zic.8: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agotzset.3: Add offset format
JWP [Sat, 14 Feb 2015 02:08:52 +0000 (21:08 -0500)] 
tzset.3: Add offset format

tzset.3 does not illustrate the POSIX offset format.
Specifically, there is no indication in the manual
what the optional components of it are.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: tfix
Michael Kerrisk [Thu, 12 Feb 2015 14:18:02 +0000 (15:18 +0100)] 
proc.5: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: tfix
Michael Kerrisk [Thu, 12 Feb 2015 14:09:40 +0000 (15:09 +0100)] 
proc.5: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoptrace.2: Minor tweaks to Denys Vlasenko's patch
Michael Kerrisk [Wed, 11 Feb 2015 13:48:03 +0000 (14:48 +0100)] 
ptrace.2: Minor tweaks to Denys Vlasenko's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoptrace.2: Add information on PTRACE_SEIZE versus PTRACE_ATTACH differences
Denys Vlasenko [Wed, 11 Feb 2015 13:20:35 +0000 (14:20 +0100)] 
ptrace.2: Add information on PTRACE_SEIZE versus PTRACE_ATTACH differences

Extend description of PTRACE_SEIZE with the short summary of its
differences from PTRACE_ATTACH.

The following paragraph:

PTRACE_EVENT_STOP
       Stop induced by PTRACE_INTERRUPT command, or group-stop, or ini-
       tial  ptrace-stop when a new child is attached (only if attached
       using PTRACE_SEIZE), or PTRACE_EVENT_STOP if PTRACE_SEIZE was used.

has an editing error (the part after last comma makes no sense).
Removing it.

Mention that legacy post-execve SIGTRAP is disabled by PTRACE_SEIZE.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogetxattr.2: Add pointer to example in listxattr(2)
Michael Kerrisk [Wed, 11 Feb 2015 11:13:15 +0000 (12:13 +0100)] 
getxattr.2: Add pointer to example in listxattr(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agolistxattr.2: Add note on handling increases in sizes of keys or values
Michael Kerrisk [Wed, 11 Feb 2015 11:11:10 +0000 (12:11 +0100)] 
listxattr.2: Add note on handling increases in sizes of keys or values

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agolistxattr.2: Minor fixups
Michael Kerrisk [Wed, 11 Feb 2015 11:08:09 +0000 (12:08 +0100)] 
listxattr.2: Minor fixups

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agolistxattr.2: Provide example program
Heinrich Schuchardt [Tue, 10 Feb 2015 21:06:51 +0000 (22:06 +0100)] 
listxattr.2: Provide example program

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocapabilities.7: Mention SECBIT_KEEP_CAPS as an alternative to prctl() PR_SET_KEEPCAPS
Michael Kerrisk [Sat, 7 Feb 2015 20:09:09 +0000 (21:09 +0100)] 
capabilities.7: Mention SECBIT_KEEP_CAPS as an alternative to prctl() PR_SET_KEEPCAPS

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocapget.2: Rewrite discussion of kernel versions that support file capabilities
Michael Kerrisk [Sat, 7 Feb 2015 20:06:26 +0000 (21:06 +0100)] 
capget.2: Rewrite discussion of kernel versions that support file capabilities

File capabilities ceased to be optional in Linux 2.6.33.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocapget.2: tfix
Michael Kerrisk [Sat, 7 Feb 2015 19:58:57 +0000 (20:58 +0100)] 
capget.2: tfix

9 years agocapget.2: wfix
Michael Kerrisk [Sat, 7 Feb 2015 19:54:48 +0000 (20:54 +0100)] 
capget.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocapget.2: Document V3 capabilities constants
Michael Kerrisk [Sat, 7 Feb 2015 19:53:50 +0000 (20:53 +0100)] 
capget.2: Document V3 capabilities constants

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agommap.2: grfix
Michael Kerrisk [Sat, 7 Feb 2015 07:52:59 +0000 (08:52 +0100)] 
mmap.2: grfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosyslog.3: Remove unneeded <stdarg.h>
Michael Kerrisk [Sat, 7 Feb 2015 07:37:13 +0000 (08:37 +0100)] 
syslog.3: Remove unneeded <stdarg.h>

vsyslog() does not need this.

Reported-by: Doug Goldstein <cardoe@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agold.so.8: (Briefly) document LD_TRACE_PRELINKING
Michael Kerrisk [Fri, 6 Feb 2015 10:14:43 +0000 (11:14 +0100)] 
ld.so.8: (Briefly) document LD_TRACE_PRELINKING

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agold.so.8: Remove duplicate description of LD_BIND_NOT
Michael Kerrisk [Fri, 6 Feb 2015 08:30:49 +0000 (09:30 +0100)] 
ld.so.8: Remove duplicate description of LD_BIND_NOT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agold.so.8: Relocate "Hardware capabilities" to be a subsection under notes
Michael Kerrisk [Fri, 6 Feb 2015 06:03:26 +0000 (07:03 +0100)] 
ld.so.8: Relocate "Hardware capabilities" to be a subsection under notes

This is more consistent with standard man-pages headings
and layout.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocapabilities.7: srcfix
Michael Kerrisk [Thu, 5 Feb 2015 14:17:07 +0000 (15:17 +0100)] 
capabilities.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocapabilities.7: Minor tweaks
Michael Kerrisk [Thu, 5 Feb 2015 14:15:56 +0000 (15:15 +0100)] 
capabilities.7: Minor tweaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocapabilities.7: NOTES: add last kernel versions for obsolete options
Chris Mayo [Sun, 16 Nov 2014 17:03:38 +0000 (17:03 +0000)] 
capabilities.7: NOTES: add last kernel versions for obsolete options

The CONFIG_SECURITY_CAPABILITIES option was removed by
commit 5915eb53861c5776cfec33ca4fcc1fd20d66dd27

The CONFIG_SECURITY_FILE_CAPABILITIES option removed in
Linux 2.6.33 as already mentioned in DESCRIPTION.

Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosocket.7: Add some details for SO_REUSEPORT
Michael Kerrisk [Thu, 5 Feb 2015 14:06:17 +0000 (15:06 +0100)] 
socket.7: Add some details for SO_REUSEPORT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosocket.7: Minor fixes
Michael Kerrisk [Thu, 5 Feb 2015 13:48:47 +0000 (14:48 +0100)] 
socket.7: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosocket.7: Document SO_REUSEPORT socket option
David Wilson [Sat, 20 Dec 2014 05:14:29 +0000 (05:14 +0000)] 
socket.7: Document SO_REUSEPORT socket option

Signed-off-by: David Wilson <dw@botanicus.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoptrace.2: Explain behaviour should ptrace tracer call execve(2)
James Hunt [Thu, 5 Feb 2015 13:23:17 +0000 (14:23 +0100)] 
ptrace.2: Explain behaviour should ptrace tracer call execve(2)

This behaviour was verified by reading the kernel source and
confirming the behaviour using a test program.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopthread_attr_setschedparam.3: tfix
Michael Kerrisk [Thu, 5 Feb 2015 13:21:32 +0000 (14:21 +0100)] 
pthread_attr_setschedparam.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopthread_attr_setschedparam.3: Describe EINVAL in ERRORS
Tobias Herzke [Sat, 11 Oct 2014 19:04:12 +0000 (21:04 +0200)] 
pthread_attr_setschedparam.3: Describe EINVAL in ERRORS

The following example proves that the man page
pthread_attr_setschedparam.3 is incorrect when it claims that the
pthread_attr_setschedparam function always succeeds on linux:

int main() {
   pthread_attr_t attr;
   struct sched_param p = {-1}; /* invalid priority */
   if (pthread_attr_init(&attr) == 0)
     if (pthread_attr_setschedpolicy(&attr, SCHED_OTHER) == 0)
       if (pthread_attr_setschedparam(&attr, &p) == EINVAL)
return 1;
   return 0;
}

The program exits with exit code 1, therefore
pthread_attr_setschedparam() has returned error code EINVAL.

I could evoke this error on ubuntu 14.04, and verify it by
examining the eglibc-2.19 source code. The function is
implemented in file fbtl/pthread_attr_setschedparam.c. For
error checking, it calls the helper function
check_sched_priority_attr which is implemented inline in
file ./fbtl/pthreadP.h. This function returns EINVAL if a
range check fails.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosendfile.2: Caution against modifying sent pages
Eric Wong [Wed, 16 Jul 2014 22:50:50 +0000 (22:50 +0000)] 
sendfile.2: Caution against modifying sent pages

The following program illustrates the difference between TCP
and Unix stream sockets doing sendfile.  Since TCP implements
zero-copy, the new modifications to the file transferred is
seen upon reading despite the modifications happening after
sendfile was last called.

Unix stream sockets do not implement zero-copy (as of
Linux 3.15), so readers continue to see the contents of the
file at the time it was sent, not as they are at the time of
reading.

----------------- sendfile-mod.c ---------------
#define _GNU_SOURCE
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/sendfile.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <fcntl.h>

static void tcp_socketpair(int sv[2])
{
struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr);
int l = socket(PF_INET, SOCK_STREAM, 0);
int c = socket(PF_INET, SOCK_STREAM, 0);
int a;
int val = 1;

addr.sin_family = AF_INET;
addr.sin_addr.s_addr = INADDR_ANY;
addr.sin_port = 0;
assert(0 == bind(l, (struct sockaddr*)&addr, addrlen));
assert(0 == listen(l, 1024));
assert(0 == getsockname(l, (struct sockaddr *)&addr, &addrlen));
assert(0 == connect(c, (struct sockaddr *)&addr, addrlen));
a = accept4(l, NULL, NULL, SOCK_NONBLOCK);
assert(a >= 0);
close(l);
assert(0 == ioctl(c, FIONBIO, &val));
sv[0] = a;
sv[1] = c;
}

int main(int argc, char *argv[])
{
int pair[2];
FILE *tmp = tmpfile();
int tfd;
char buf[16384];
ssize_t w, r;
size_t i;
const size_t n = 2048;
off_t off = 0;
char expect[4096];
int flags = SOCK_STREAM|SOCK_NONBLOCK;

tfd = fileno(tmp);
assert(tfd >= 0);

/* prepare the tempfile */
memset(buf, 'a', sizeof(buf));
for (i = 0; i < n; i++)
assert(sizeof(buf) == write(tfd, buf, sizeof(buf)));

if (argc == 2 && strcmp(argv[1], "unix") == 0)
assert(0 == socketpair(AF_UNIX, flags, 0, pair));
else if (argc == 2 && strcmp(argv[1], "pipe") == 0)
assert(0 == pipe2(pair, O_NONBLOCK));
else
tcp_socketpair(pair);

/* fill up the socket buffer */
for (;;) {
w = sendfile(pair[1], tfd, &off, n);
if (w > 0)
continue;
if (w < 0 && errno == EAGAIN)
break;
assert(0 && "unhandled error" && w && errno);
}
printf("wrote off=%lld\n", (long long)off);

/* rewrite the tempfile */
memset(buf, 'A', sizeof(buf));
assert(0 == lseek(tfd, 0, SEEK_SET));
for (i = 0; i < n; i++)
assert(sizeof(buf) == write(tfd, buf, sizeof(buf)));

/* we should be reading 'a's, not 'A's */
memset(expect, 'a', sizeof(expect));
do {
r = read(pair[0], buf, sizeof(expect));

/* TCP fails here since it is zero copy (on Linux 3.15.5) */
if (r > 0)
assert(memcmp(buf, expect, r) == 0);
} while (r > 0);

return 0;
}

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoclone.2: Fix description of CLONE_PARENT_SETTID
Peng Haitao [Fri, 8 Nov 2013 09:41:19 +0000 (17:41 +0800)] 
clone.2: Fix description of CLONE_PARENT_SETTID

CLONE_PARENT_SETTID only stores child thread ID in parent memory.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoclone.2, execve.2: Document interaction of execve(2) with CLONE_FILES
Kevin Easton [Mon, 6 May 2013 06:14:41 +0000 (16:14 +1000)] 
clone.2, execve.2: Document interaction of execve(2) with CLONE_FILES

This patch the fact that a successful execve(2) in a process that
is sharing a file descriptor table results in unsharing the table.

I discovered this through testing and verified it by source
inspection - there is a call to unshare_files() early in
do_execve_common().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agomigrate_pages.2: Document EFAULT and EINVAL errors
Jan Stancek [Thu, 5 Feb 2015 12:24:50 +0000 (13:24 +0100)] 
migrate_pages.2: Document EFAULT and EINVAL errors

I encountered these errors while writing testcase for migrate_pages
syscall for LTP (Linux test project).

I checked stable kernel tree 3.5 to see which paths return these.
Both can be returned from get_nodes(), which is called from:
SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
                const unsigned long __user *, old_nodes,
                const unsigned long __user *, new_nodes)

The testcase does following:
EFAULT
a) old_nodes/new_nodes is area mmaped with PROT_NONE
b) old_nodes/new_nodes is area not mmapped in process address
   space, -1 or area that has been just munmmaped

EINVAL
a) maxnodes overflows kernel limit
b) new_nodes contain node, which has no memory or does not exist
   or is not returned for get_mempolicy(MPOL_F_MEMS_ALLOWED).

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoencrypt.3: Improve code example
Rob Somers [Thu, 5 Feb 2015 12:14:28 +0000 (13:14 +0100)] 
encrypt.3: Improve code example

I (and some others) found that the original example code
did not seem to work as advertised.  The new code (used by
permission of the original author, Jens Thoms Toerring)
was found on comp.os.linux.development.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocacheflush.2: Refer reader to BUGS in discussion of EINVAL error
Michael Kerrisk [Thu, 5 Feb 2015 12:04:53 +0000 (13:04 +0100)] 
cacheflush.2: Refer reader to BUGS in discussion of EINVAL error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocacheflush.2: Update some portability details and bugs
Ralf Baechle [Thu, 5 Feb 2015 12:02:56 +0000 (13:02 +0100)] 
cacheflush.2: Update some portability details and bugs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agomprotect.2: mention effect of READ_IMPLIES_EXEC personality flag
Mark Seaborn [Fri, 23 Apr 2010 16:31:01 +0000 (17:31 +0100)] 
mprotect.2: mention effect of READ_IMPLIES_EXEC personality flag

I puzzled over mprotect()'s effect on /proc/*/maps for a while
yesterday -- it was setting "x" without PROT_EXEC being specified.
Here is a patch to add some explanation.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoaccess.2: Tweaks to Denys Vlasenko's patch
Michael Kerrisk [Thu, 5 Feb 2015 10:25:33 +0000 (11:25 +0100)] 
access.2: Tweaks to Denys Vlasenko's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoaccess.2: Explain how access() check treats capabilities
Denys Vlasenko [Wed, 10 Sep 2014 13:01:08 +0000 (15:01 +0200)] 
access.2: Explain how access() check treats capabilities

We have users who are terribly confused why their binaries
with CAP_DAC_OVERRIDE capability see EACCESS from access() calls,
but are able to read the file.

The reason is access() isn't the "can I read/write/execute this
file?" question, it is the "(assuming that I'm a setuid binary,)
can *the user who invoked me* read/write/execute this file?"
question.

That's why it uses real UIDs as documented, and why it ignores
capabilities when capability-endorsed binaries are run by non-root
(this patch adds this information).

To make users more likely to notice this less-known detail,
the patch expands the explanation with rationale for this logic
into a separate paragraph.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: linux-man@vger.kernel.org
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agounix.7: Mention SOCK_STREAM socket for ioctl_type of ioctl()
Jan Chaloupka [Sat, 18 Oct 2014 15:36:00 +0000 (17:36 +0200)] 
unix.7: Mention SOCK_STREAM socket for ioctl_type of ioctl()

from https://bugzilla.redhat.com/show_bug.cgi?id=1110401.

unix.7 is not clear about socket type of ioctl_type argument of
ioctl() function. The description of SIOCINQ is applicable only
for SOCK_STREAM socket. For SOCK_DGRAM, udp(7) man page gives
correct description of SIOCINQ

Signed-off-by: Jan Chaloupka <jchaloup@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosched_setattr.2: SYNOPSIS: remove 'const' from 'attr' sched_getattr() argument
Michael Kerrisk [Wed, 4 Feb 2015 20:23:46 +0000 (21:23 +0100)] 
sched_setattr.2: SYNOPSIS: remove 'const' from 'attr' sched_getattr() argument

Reported-by: Christophe Blaess <Christophe@blaess.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogetnameinfo.3: tfix
Michael Kerrisk [Wed, 4 Feb 2015 09:37:34 +0000 (10:37 +0100)] 
getnameinfo.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogetutent.3: tfix
Michael Kerrisk [Wed, 4 Feb 2015 09:37:22 +0000 (10:37 +0100)] 
getutent.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agomlock.2: tfix
Michael Kerrisk [Wed, 4 Feb 2015 09:37:07 +0000 (10:37 +0100)] 
mlock.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agopciconfig_read.2: tfix
Michael Kerrisk [Wed, 4 Feb 2015 09:35:50 +0000 (10:35 +0100)] 
pciconfig_read.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorandom.4: Note maximum number of bytes returned by read(2) on /dev/random
Michael Kerrisk [Wed, 4 Feb 2015 09:25:33 +0000 (10:25 +0100)] 
random.4: Note maximum number of bytes returned by read(2) on /dev/random

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorandom.4: Since Linux 3.16, reads from /dev/urandom return at most 32 MB
Michael Kerrisk [Wed, 4 Feb 2015 09:16:43 +0000 (10:16 +0100)] 
random.4: Since Linux 3.16, reads from /dev/urandom return at most 32 MB

See https://bugs.debian.org/775328 and
https://bugzilla.kernel.org/show_bug.cgi?id=80981#c9

Reported-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agorandom.4: Minor fixes
Michael Kerrisk [Wed, 4 Feb 2015 08:48:39 +0000 (09:48 +0100)] 
random.4: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agofork.2: EAGAIN is not reported when task allocation fails
Michal Hocko [Tue, 3 Feb 2015 15:48:37 +0000 (16:48 +0100)] 
fork.2: EAGAIN is not reported when task allocation fails

I am not sure why we have:

   "EAGAIN fork() cannot allocate sufficient memory to copy
    the parent's page tables and allocate a task structure
    or the child."

The text seems to be there from the time when man-pages
were moved to git so there is no history for it.

And it doesn't reflect reality: the kernel reports both
dup_task_struct and dup_mm failures as ENOMEM to the
userspace. This seems to be the case from early 2.x times
so let's simply remove this part.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: (Briefly) document /proc/PID/attr/socketcreate
Michael Kerrisk [Mon, 2 Feb 2015 11:35:33 +0000 (12:35 +0100)] 
proc.5: (Briefly) document /proc/PID/attr/socketcreate

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: (Briefly) document /proc/PID/attr/keycreate
Michael Kerrisk [Mon, 2 Feb 2015 11:35:04 +0000 (12:35 +0100)] 
proc.5: (Briefly) document /proc/PID/attr/keycreate

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: Document /proc/PID/attr/{current,exec,fscreate,prev}
Michael Kerrisk [Mon, 2 Feb 2015 11:17:27 +0000 (12:17 +0100)] 
proc.5: Document /proc/PID/attr/{current,exec,fscreate,prev}

Heavily based on Stephen Smalley's text in
    https://lwn.net/Articles/28222/
    From:    Stephen Smalley <sds@epoch.ncsc.mil>
    To:      LKML and others
    Subject: [RFC][PATCH] Process Attribute API for Security Modules
    Date:    08 Apr 2003 16:17:52 -0400

Cowritten-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: Document /proc/sys/kernel/auto_msgmni
Michael Kerrisk [Sat, 20 Dec 2014 09:05:00 +0000 (10:05 +0100)] 
proc.5: Document /proc/sys/kernel/auto_msgmni

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agointro.5: Remove words "and protocols"
Michael Kerrisk [Mon, 2 Feb 2015 07:40:01 +0000 (08:40 +0100)] 
intro.5: Remove words "and protocols"

There are no protocol descriptions in Section 5. Protocols are
in Section 7.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosemop.2: Note defaults for SEMOPM and warn against increasing > 1000
Michael Kerrisk [Thu, 29 Jan 2015 11:50:11 +0000 (12:50 +0100)] 
semop.2: Note defaults for SEMOPM and warn against increasing > 1000

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosemget.2: Note default value for SEMMNI and SEMMSL
Michael Kerrisk [Thu, 29 Jan 2015 11:42:32 +0000 (12:42 +0100)] 
semget.2: Note default value for SEMMNI and SEMMSL

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agomsgget.2: Add details of MSGMNI default value
Michael Kerrisk [Thu, 29 Jan 2015 11:18:53 +0000 (12:18 +0100)] 
msgget.2: Add details of MSGMNI default value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agomsgop.2: Clarify wording of MSGMAX and MSGMNB limits
Michael Kerrisk [Thu, 29 Jan 2015 11:11:15 +0000 (12:11 +0100)] 
msgop.2: Clarify wording of MSGMAX and MSGMNB limits

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosignal.7: srcfix: note commit hash for futex() restart behavior change
Michael Kerrisk [Tue, 27 Jan 2015 06:12:03 +0000 (07:12 +0100)] 
signal.7: srcfix: note commit hash for futex() restart behavior change

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: Note that CAP_SYS_ADMIN is required to list /proc/PID/map_files
Michael Kerrisk [Mon, 26 Jan 2015 13:46:04 +0000 (14:46 +0100)] 
proc.5: Note that CAP_SYS_ADMIN is required to list /proc/PID/map_files

This might however change in the future; see the Jan 2015 LKML thread:

        Re: [RFC][PATCH v2] procfs: Always expose /proc/<pid>/map_files/
                            and make it readable

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetxattr.2: ERRORS: add ENOTSUP for invalid namespace prefix
Michael Kerrisk [Mon, 26 Jan 2015 09:13:17 +0000 (10:13 +0100)] 
setxattr.2: ERRORS: add ENOTSUP for invalid namespace prefix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetxattr.2: Remove redundant text under ENOTSUP error
Michael Kerrisk [Mon, 26 Jan 2015 08:54:19 +0000 (09:54 +0100)] 
setxattr.2: Remove redundant text under ENOTSUP error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetxattr.2: Rework text describing 'flags' argument
Michael Kerrisk [Mon, 26 Jan 2015 08:40:01 +0000 (09:40 +0100)] 
setxattr.2: Rework text describing 'flags' argument

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetxattr.2: Note that zero-length attribute values are permitted
Michael Kerrisk [Sat, 24 Jan 2015 09:33:44 +0000 (10:33 +0100)] 
setxattr.2: Note that zero-length attribute values are permitted

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetxattr.2: Minor rewordings
Michael Kerrisk [Sat, 24 Jan 2015 09:33:25 +0000 (10:33 +0100)] 
setxattr.2: Minor rewordings

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agosetxattr.2: wfix
Michael Kerrisk [Sat, 24 Jan 2015 09:31:45 +0000 (10:31 +0100)] 
setxattr.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoremovexattr.2: wfix
Michael Kerrisk [Sat, 24 Jan 2015 09:31:29 +0000 (10:31 +0100)] 
removexattr.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoremovexattr.2: ffix
Michael Kerrisk [Sat, 24 Jan 2015 09:31:02 +0000 (10:31 +0100)] 
removexattr.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agolistxattr.2: Reword discussion of size==0 case
Michael Kerrisk [Sat, 24 Jan 2015 09:43:40 +0000 (10:43 +0100)] 
listxattr.2: Reword discussion of size==0 case

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogetxattr.2: Various rewordings plus one or two details clarified
Michael Kerrisk [Sat, 24 Jan 2015 09:27:54 +0000 (10:27 +0100)] 
getxattr.2: Various rewordings plus one or two details clarified

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agolistxattr.2: Remove mention of which filesystems implement ACLs
Michael Kerrisk [Sat, 24 Jan 2015 07:40:01 +0000 (08:40 +0100)] 
listxattr.2: Remove mention of which filesystems implement ACLs

Such a list will only become outdated (as it already was).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agolistxattr.2: ffix
Michael Kerrisk [Sat, 24 Jan 2015 07:39:01 +0000 (08:39 +0100)] 
listxattr.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agofcntl.2: Clarify cases of conflict between traditional record and OFD locks
Michael Kerrisk [Wed, 21 Jan 2015 17:42:53 +0000 (18:42 +0100)] 
fcntl.2: Clarify cases of conflict between traditional record and OFD locks

Verified by experiment on Linux 3.15 and 3.19rc4.

Acked-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoproc.5: Add reference to prctl(2) in discussion of /proc/sys/fs/suid_dumpable
Michael Kerrisk [Mon, 19 Jan 2015 13:50:36 +0000 (14:50 +0100)] 
proc.5: Add reference to prctl(2) in discussion of /proc/sys/fs/suid_dumpable

And note that /proc/sys/fs/suid_dumpable defines the
value assigned to the process "dumpable" flag in certain
circumstances.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: Greatly expand discussion of "dumpable" flag
Michael Kerrisk [Mon, 19 Jan 2015 13:36:59 +0000 (14:36 +0100)] 
prctl.2: Greatly expand discussion of "dumpable" flag

In particular, detail the interactions with
/proc/sys/fs/suid_dumpable.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: Reorder paragraphs describing PR_SET_DUMPABLE
Michael Kerrisk [Mon, 19 Jan 2015 12:52:27 +0000 (13:52 +0100)] 
prctl.2: Reorder paragraphs describing PR_SET_DUMPABLE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: srcfix
Michael Kerrisk [Mon, 19 Jan 2015 12:23:46 +0000 (13:23 +0100)] 
prctl.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: Mention SUID_DUMP_DISABLE and SUID_DUMP_USER under PR_SET_DUMPABLE
Michael Kerrisk [Mon, 19 Jan 2015 11:40:21 +0000 (12:40 +0100)] 
prctl.2: Mention SUID_DUMP_DISABLE and SUID_DUMP_USER under PR_SET_DUMPABLE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: Executing a file with capabilities also resets the parent death signal
Michael Kerrisk [Mon, 19 Jan 2015 11:36:52 +0000 (12:36 +0100)] 
prctl.2: Executing a file with capabilities also resets the parent death signal

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: Minor restructuring of text for PR_SET_DUMPABLE
Michael Kerrisk [Mon, 19 Jan 2015 11:35:21 +0000 (12:35 +0100)] 
prctl.2: Minor restructuring of text for PR_SET_DUMPABLE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoprctl.2: Mention file capabilities in discussion of PR_SET_DUMPABLE
Michael Kerrisk [Mon, 19 Jan 2015 11:24:43 +0000 (12:24 +0100)] 
prctl.2: Mention file capabilities in discussion of PR_SET_DUMPABLE

Reported-by: Bill McConnaughey <mcconnau@biochem.wustl.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocore.5: Executing a file that has capabilities also prevents core dumps
Michael Kerrisk [Mon, 19 Jan 2015 11:19:45 +0000 (12:19 +0100)] 
core.5: Executing a file that has capabilities also prevents core dumps

Reported-by: Bill McConnaughey <mcconnau@biochem.wustl.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agocore.5: Document "%i" and "%I" core_pattern specifiers
Michael Kerrisk [Mon, 19 Jan 2015 10:57:56 +0000 (11:57 +0100)] 
core.5: Document "%i" and "%I" core_pattern specifiers

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogetcpu.2: tfix
Michael Kerrisk [Wed, 4 Feb 2015 19:26:19 +0000 (20:26 +0100)] 
getcpu.2: tfix

Reported-by: Zbigniew BrzeziƄski <zbigniew.brzezinski@student.put.poznan.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agogetrandom.2: tfix
Heinrich Schuchardt [Mon, 2 Feb 2015 18:18:10 +0000 (19:18 +0100)] 
getrandom.2: tfix

Let's assume Michael's email address did not change.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoChanges.old: tfix in 3.79 changelog
Michael Kerrisk [Mon, 2 Feb 2015 08:58:34 +0000 (09:58 +0100)] 
Changes.old: tfix in 3.79 changelog

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agotzset.3: ffix
Michael Kerrisk [Mon, 2 Feb 2015 06:37:31 +0000 (07:37 +0100)] 
tzset.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agotzset.3: ffix
J William Piggott [Sun, 1 Feb 2015 20:25:22 +0000 (15:25 -0500)] 
tzset.3: ffix

Fix tzset.3 regression, dst is optional.

$ date
Sun Feb  1 15:14:33 EST 2015
$ TZ=NZST-12 date
Mon Feb  2 08:14:38 NZST 2015
$ TZ=EST5 date
Sun Feb  1 15:15:02 EST 2015

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoStart of man-pages-3.80: updating Changes and Changes.old
Michael Kerrisk [Sun, 1 Feb 2015 16:18:34 +0000 (17:18 +0100)] 
Start of man-pages-3.80: updating Changes and Changes.old

9 years agoStart of man-pages-3.80: updating .Announce and .lsm files
Michael Kerrisk [Sun, 1 Feb 2015 16:18:34 +0000 (17:18 +0100)] 
Start of man-pages-3.80: updating .Announce and .lsm files

9 years agoStart of man-pages-3.80: renaming .Announce and .lsm files
Michael Kerrisk [Sun, 1 Feb 2015 16:18:34 +0000 (17:18 +0100)] 
Start of man-pages-3.80: renaming .Announce and .lsm files

9 years agoReady for 3.79 man-pages-3.79
Michael Kerrisk [Sun, 1 Feb 2015 16:15:07 +0000 (17:15 +0100)] 
Ready for 3.79

9 years agoRemoved trailing white space at end of lines
Michael Kerrisk [Sun, 1 Feb 2015 16:14:59 +0000 (17:14 +0100)] 
Removed trailing white space at end of lines

9 years agoChanges: Expanded tabs
Michael Kerrisk [Sun, 1 Feb 2015 16:14:59 +0000 (17:14 +0100)] 
Changes: Expanded tabs

9 years agokexec_load.2, personality.2, prctl.2, reboot.2, socket.2, fflush.3, getopt.3, random...
Michael Kerrisk [Sun, 1 Feb 2015 16:14:12 +0000 (17:14 +0100)] 
kexec_load.2, personality.2, prctl.2, reboot.2, socket.2, fflush.3, getopt.3, random.3, termios.3, random.4, passwd.5, capabilities.7, signal.7: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agoChanges: Ready for 3.79
Michael Kerrisk [Sun, 1 Feb 2015 16:07:56 +0000 (17:07 +0100)] 
Changes: Ready for 3.79

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agotzset.3: ffix
Michael Kerrisk [Sun, 1 Feb 2015 16:04:21 +0000 (17:04 +0100)] 
tzset.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
9 years agotzset.3: typos and version bump
J William Piggott [Sun, 1 Feb 2015 13:18:02 +0000 (08:18 -0500)] 
tzset.3: typos and version bump

Signed-off-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>