]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 years agommap.2: srcfix: note kernel commit that caused MAP_POPULATE | MAP_NONBLOCK to be...
Kirill Smelkov [Fri, 17 Apr 2020 11:24:48 +0000 (13:24 +0200)] 
mmap.2: srcfix: note kernel commit that caused MAP_POPULATE | MAP_NONBLOCK to be noop

Signed-off-by: Kirill Smelkov <kirr@nexedi.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonetlink.7: Note that NETLINK_SOCK_DIAG is preferred over NETLINK_INET_DIAG
Michael Kerrisk [Fri, 17 Apr 2020 11:09:59 +0000 (13:09 +0200)] 
netlink.7: Note that NETLINK_SOCK_DIAG is preferred over NETLINK_INET_DIAG

Reported-by: Fabien Siron <fabien.siron@epita.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoposix_spawn.3: ffix
Michael Kerrisk [Fri, 17 Apr 2020 10:29:16 +0000 (12:29 +0200)] 
posix_spawn.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoposix_spawn.3: Document the POSIX_SPAWN_SETSID attribute
Olivier Gayot [Tue, 16 Oct 2018 19:37:51 +0000 (21:37 +0200)] 
posix_spawn.3: Document the POSIX_SPAWN_SETSID attribute

Since glibc 2.26, posix_spawn (2) function accepts the
POSIX_SPAWN_SETSID flag. This flag has been accepted by POSIX and
should be added to the next major revision. The current support
can be enabled with _GNU_SOURCE.

Upstream commit in glibc.git:

  daeb1fa2e1 [BZ 21340] add support for POSIX_SPAWN_SETSID

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoposix_spawn.3: Clarify by using name of steps rather than syscalls
Olivier Gayot [Tue, 16 Oct 2018 19:37:50 +0000 (21:37 +0200)] 
posix_spawn.3: Clarify by using name of steps rather than syscalls

The implementation of the fork() step in posix_spawn(2) relies on
either fork(2), vfork(2) or clone(2) depending on the version of
the glibc and the arguments passed to posix_spawn(2).

It is sometimes ambiguous whether, when we are mentioning
"fork(2)", we are referring to the fork() step or the actual
fork(2) syscall.

This patch hopefully avoids the ambiguity by replacing confusing
occurrences by "the xxx() step" where appropriate.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoposix_spawn.3: Document POSIX_SPAWN_USEVFORK
Olivier Gayot [Tue, 16 Oct 2018 19:37:49 +0000 (21:37 +0200)] 
posix_spawn.3: Document POSIX_SPAWN_USEVFORK

Added a few lines about POSIX_SPAWN_USEVFORK so that it appears
clearly that since glibc 2.24, the flag has no effect.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoposix_spawn.3: Document implementation using clone() since glibc 2.24
Olivier Gayot [Tue, 16 Oct 2018 19:37:48 +0000 (21:37 +0200)] 
posix_spawn.3: Document implementation using clone() since glibc 2.24

Since glibc 2.24, the use of posix_spawn (2) makes an
unconditional call to clone(CLONE_VM | CLONE_VFORK ...) rather
than relying on fork (2) or vfork (2).

As a consequence, the statements regarding the use of the flag
POSIX_SPAWN_USEVFORK and how the function decides whether it
should use fork (2) or vfork (2) are obsolete since glibc 2.24.

This patch makes a distinction in the manual page between glibc
2.24 and older versions.

Upstream commit in glibc.git:

  9ff72da471 posix: New Linux posix_spawn{p} implementation

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf.2: Update enum bpf_map_type and enum bpf_prog_type
Peter Wu [Sun, 4 Aug 2019 20:53:53 +0000 (21:53 +0100)] 
bpf.2: Update enum bpf_map_type and enum bpf_prog_type

Taken from Linux v5.3-rc2. Add a reference to the header file to
save the future reader some time figuring out whether more entries
exist.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf.2: srcfix: Add a note on check for unprivileged BPF_PROG_TYPE_SOCKET_FILTER programs
Michael Kerrisk [Fri, 17 Apr 2020 09:55:13 +0000 (11:55 +0200)] 
bpf.2: srcfix: Add a note on check for unprivileged BPF_PROG_TYPE_SOCKET_FILTER programs

In Linux 4.4, the allowed BPF helper functions that could
be called was governed by a check in sk_filter_func_proto().
Nowadays (Linux 5.6), it is I think governed by the check in
sk_filter_func_proto().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf.2: Minor tweaks to Richard Palethorpe's patch
Michael Kerrisk [Fri, 17 Apr 2020 09:49:30 +0000 (11:49 +0200)] 
bpf.2: Minor tweaks to Richard Palethorpe's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf.2: Change note on unprivileged access
Richard Palethorpe [Mon, 29 Jul 2019 12:58:43 +0000 (14:58 +0200)] 
bpf.2: Change note on unprivileged access

This notes that the kernel now allows calls to bpf() without CAP_SYS_ADMIN
under some circumstances.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: wfix
Michael Kerrisk [Fri, 17 Apr 2020 07:06:20 +0000 (09:06 +0200)] 
clone.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocgroups.7: Mention cgroup.sane_behavior file
Marcus Gelderie [Fri, 25 Jan 2019 21:21:23 +0000 (22:21 +0100)] 
cgroups.7: Mention cgroup.sane_behavior file

The cgroup.sane_behavior file returns the hard-coded value "0" and
is kept for legacy purposes. Mention this in the man-page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf-helpers.7: Sync against Linux 5.7-rc1
Michael Kerrisk [Thu, 16 Apr 2020 11:45:41 +0000 (13:45 +0200)] 
bpf-helpers.7: Sync against Linux 5.7-rc1

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomove_pages.2: Minor tweaks to Yang Shi's patch
Michael Kerrisk [Thu, 16 Apr 2020 11:34:39 +0000 (13:34 +0200)] 
move_pages.2: Minor tweaks to Yang Shi's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomove_pages.2: Returning positive value is a new error case
Yang Shi [Mon, 3 Feb 2020 19:18:27 +0000 (03:18 +0800)] 
move_pages.2: Returning positive value is a new error case

Since commit a49bd4d71637 ("mm, numa: rework do_pages_move"), the
semantic of move_pages() has changed to return the number of
non-migrated pages if they were result of a non-fatal reasons
(usually a busy page).  This was an unintentional change that
hasn't been noticed except for LTP tests which checked for the
documented behavior.

There are two ways to go around this change.  We can even get back
to the original behavior and return -EAGAIN whenever migrate_pages
is not able to migrate pages due to non-fatal reasons.  Another
option would be to simply continue with the changed semantic and
extend move_pages documentation to clarify that -errno is returned
on an invalid input or when migration simply cannot succeed (e.g.
-ENOMEM, -EBUSY) or the number of pages that couldn't have been
migrated due to ephemeral reasons (e.g. page is pinned or locked
for other reasons).

We decided to keep the second option in kernel because this
behavior is in place for some time without anybody complaining and
possibly new users depending on it.  Also it allows to have a
slightly easier error handling as the caller knows that it is
worth to retry when err > 0.

Update man pages to reflect the new semantic.

Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonamespaces.7: Document /proc/sys/user/max_time_namespaces
Michael Kerrisk [Thu, 16 Apr 2020 11:25:02 +0000 (13:25 +0200)] 
namespaces.7: Document /proc/sys/user/max_time_namespaces

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonamespaces.7: tfix
Michael Kerrisk [Thu, 16 Apr 2020 11:23:44 +0000 (13:23 +0200)] 
namespaces.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetauxval.3: Minor tweaks to YunQiang Su's patch
Michael Kerrisk [Thu, 16 Apr 2020 11:13:12 +0000 (13:13 +0200)] 
getauxval.3: Minor tweaks to YunQiang Su's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetauxval.3: MIPS, AT_BASE_PLATFORM passes ISA level
YunQiang Su [Sun, 22 Mar 2020 09:55:27 +0000 (17:55 +0800)] 
getauxval.3: MIPS, AT_BASE_PLATFORM passes ISA level

Since Linux 5.7, on MIPS, we use AT_BASE_PLATFORM to pass ISA level.
The values may be:
  mips2, mips3, mips4, mips5,
  mips32, mips32r2, mips32r6,
  mips64, mips64r2, mips64r6.

This behavior is different with PowerPC.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e585b768da111f2c2d413de6214e83bbdfee8f22
Signed-off-by: YunQiang Su <syq@debian.org>
----
v1 -> v2: fix typo

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agos390_runtime_instr.2: Various reworking of Heiko Carstens's patch
Michael Kerrisk [Thu, 16 Apr 2020 10:30:00 +0000 (12:30 +0200)] 
s390_runtime_instr.2: Various reworking of Heiko Carstens's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agos390_runtime_instr.2: srcfix: rewrap long source lines
Michael Kerrisk [Thu, 16 Apr 2020 10:18:19 +0000 (12:18 +0200)] 
s390_runtime_instr.2: srcfix: rewrap long source lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agos390_runtime_instr.2: Document signum argument behavior change
Heiko Carstens [Thu, 16 Apr 2020 10:10:07 +0000 (12:10 +0200)] 
s390_runtime_instr.2: Document signum argument behavior change

Document that the signum argument is ignored in newer kernels, but
that user space should pass a valid real-time signal number for
backwards compatibility.

Cowritten-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomsgctl.2: Correct description of 'msg_ctime' field
Michael Kerrisk [Thu, 16 Apr 2020 09:48:08 +0000 (11:48 +0200)] 
msgctl.2: Correct description of 'msg_ctime' field

Verified by inspecting kernel source.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshmctl.2: f
Michael Kerrisk [Thu, 16 Apr 2020 09:47:16 +0000 (11:47 +0200)] 
shmctl.2: f

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshmctl.2: Correct 'shm_ctime' description
Michael Kerrisk [Thu, 16 Apr 2020 09:41:47 +0000 (11:41 +0200)] 
shmctl.2: Correct 'shm_ctime' description

Verified from kernel sources.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosemctl.2: Correct description of sem_ctime field
Michael Kerrisk [Thu, 16 Apr 2020 09:33:17 +0000 (11:33 +0200)] 
semctl.2: Correct description of sem_ctime field

Verified from inspection of kernel source code.

Reported-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosemctl.2: tfix
Michael Kerrisk [Thu, 16 Apr 2020 09:27:19 +0000 (11:27 +0200)] 
semctl.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Remove mention of "Segmentation fault" in EFAULT text
Michael Kerrisk [Thu, 16 Apr 2020 06:23:09 +0000 (08:23 +0200)] 
mremap.2: Remove mention of "Segmentation fault" in EFAULT text

"Segmentation fault" (SIGSEGV) is not exactly the same thing as
EFAULT.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Move a paragraph on MREMAP_DONTUNMAP from NOTES to DESCRIPTION
Michael Kerrisk [Thu, 16 Apr 2020 06:21:30 +0000 (08:21 +0200)] 
mremap.2: Move a paragraph on MREMAP_DONTUNMAP from NOTES to DESCRIPTION

I think things read slightly easier, if all of the info on
MREMAP_DONTUNMAP is in one place.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Move a paragraph from DESCRIPTION to NOTES
Michael Kerrisk [Thu, 16 Apr 2020 06:16:01 +0000 (08:16 +0200)] 
mremap.2: Move a paragraph from DESCRIPTION to NOTES

The paragraph on Linux VM is rather generic, and does not belong
in DESCRIPTION. In fact, I'm not sure it even belongs in this
page.  At the least, let's move it to NOTES.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Move a paragraph from DESCRIPTION to NOTES
Michael Kerrisk [Thu, 16 Apr 2020 06:10:46 +0000 (08:10 +0200)] 
mremap.2: Move a paragraph from DESCRIPTION to NOTES

And while we are at it, remove a sentence that makes an obvious
point (that mremap() uses the Linux page table scheme).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: wfix
Michael Kerrisk [Thu, 16 Apr 2020 06:03:34 +0000 (08:03 +0200)] 
mremap.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Reorder some paragraphs in NOTES
Michael Kerrisk [Thu, 16 Apr 2020 05:50:35 +0000 (07:50 +0200)] 
mremap.2: Reorder some paragraphs in NOTES

Details of glibc 2.4, which is by now fairly old, would be
better at the end of NOTES than at the start.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Some more improvements to Brian Geffon's patch
Michael Kerrisk [Thu, 16 Apr 2020 05:49:04 +0000 (07:49 +0200)] 
mremap.2: Some more improvements to Brian Geffon's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Minor tweaks to Brian Geffon's patch
Michael Kerrisk [Thu, 16 Apr 2020 05:25:32 +0000 (07:25 +0200)] 
mremap.2: Minor tweaks to Brian Geffon's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: Document MREMAP_DONTUNMAP
Brian Geffon [Wed, 15 Apr 2020 16:49:49 +0000 (09:49 -0700)] 
mremap.2: Document MREMAP_DONTUNMAP

Signed-off-by: Brian Geffon <bgeffon@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomremap.2: ffix (Add a paragraph break)
Michael Kerrisk [Thu, 16 Apr 2020 05:29:15 +0000 (07:29 +0200)] 
mremap.2: ffix (Add a paragraph break)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopenat2.2: A few more fixes after feedback from Aleksa Sarai
Michael Kerrisk [Tue, 14 Apr 2020 20:07:39 +0000 (22:07 +0200)] 
openat2.2: A few more fixes after feedback from Aleksa Sarai

Reported-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agommap.2: Don't mark MAP_ANON as deprecated
Michael Kerrisk [Tue, 14 Apr 2020 11:21:26 +0000 (13:21 +0200)] 
mmap.2: Don't mark MAP_ANON as deprecated

From a mailing list conversation:

On 5/24/18 9:03 PM, Heinrich Schuchardt wrote:
> Hello Michael,
>
> in the mmap(2) man page MAP_ANON is described as deprecated.
>
> When I look at the NetBSD manpage
> http://netbsd.gw.com/cgi-bin/man-cgi?mmap+2+NetBSD-current
> I found that MAP_ANONYMOUS is not defined.
>
> https://www.dragonflybsd.org/cgi/web-man?command=mmap&section=2
> indicates MAP_ANONYMOUS is an alias for MAP_ANON and is provided for
> compatibility.
>
> https://man.openbsd.org/mmap.2 also knows MAP_ANONYMOUS as a synonym.
>
> https://www.unix.com/man-page/osx/2/mmap/ does not know MAP_ANONYMOUS.
>
> So shouldn't the man page indicate that MAP_ANON is to be favored to
> write portable code? And correspondingly mark MAP_ANONYMOUS as synonym
> only kept for compatibility.
>
> The Open Group Base Specifications Issue 7, 2018 Edition does not
> reference either of both. So both values are not POSIX but it is not
> correct to describe them as Linux only.

The text saying that MAP_ANON is deprecated is ancient (at least
20 years old). I don't know why that text was added.

Things are not simple though: it looks like there's at least
one historical implementation (HP-US) that defines MAP_ANONYMOUS
but not MAP_ANON.

I've applied the patch below.

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_list.2: Remove hex values from constants
Michael Kerrisk [Tue, 14 Apr 2020 11:06:24 +0000 (13:06 +0200)] 
ioctl_list.2: Remove hex values from constants

As noted by Heinrich Schuchardt:

he list contains hex values of different constants. I just wonder for
which architecture (alpha, i386, mips, or sparc at that time). No
information is supplied.

Current values depend on the architecture, e.g.

On amd64
0x82307201      VFAT_IOCTL_READDIR_BOTH
0x82307202      VFAT_IOCTL_READDIR_SHORT
0x80047210      FAT_IOCTL_GET_ATTRIBUTES
0x40047211      FAT_IOCTL_SET_ATTRIBUTES
0x80047213      FAT_IOCTL_GET_VOLUME_ID

On mips
0x42187201      VFAT_IOCTL_READDIR_BOTH
0x42187202      VFAT_IOCTL_READDIR_SHORT
0x40047210      FAT_IOCTL_GET_ATTRIBUTES
0x80047211      FAT_IOCTL_SET_ATTRIBUTES
0x40047213      FAT_IOCTL_GET_VOLUME_ID

Hence hex values should be removed.

Reported-by:
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agold.so.8: ffix
Michael Kerrisk [Tue, 14 Apr 2020 09:59:14 +0000 (11:59 +0200)] 
ld.so.8: ffix

Reported-by: Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetdents.2: Tweaks to Petr Vorel's patch
Michael Kerrisk [Tue, 14 Apr 2020 09:42:21 +0000 (11:42 +0200)] 
getdents.2: Tweaks to Petr Vorel's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetdents.2: Mention glibc support for getdents64()
Petr Vorel [Mon, 7 Oct 2019 13:53:15 +0000 (15:53 +0200)] 
getdents.2: Mention glibc support for getdents64()

Support was added in glibc 2.30.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetdents.2: Correct linux_dirent definition in example code
Chris Lamb [Tue, 14 Apr 2020 09:36:51 +0000 (11:36 +0200)] 
getdents.2: Correct linux_dirent definition in example code

It is "unsigned long" earlier up in the file

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoutimensat: Immutable flag returns EPERM
Goldwyn Rodrigues [Mon, 5 Jun 2017 14:18:27 +0000 (09:18 -0500)] 
utimensat: Immutable flag returns EPERM

Linux kernel commit 337684a1746f "fs: return EPERM on immutable
inode" changed (nd unified the return value of the utimensat(2)
from -EACCES to -EPERM in case of an immutable flag. Modify the
man page to reflect the same.

The entire discussion of returning the correct return value is at:
http://lists.linux.it/pipermail/ltp/2017-January/003424.html

[mtk: The change was in Linux 4.8]

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrftime.3: ISO week number can be 52, add example
Urs Thuermann [Tue, 14 Apr 2020 07:02:07 +0000 (09:02 +0200)] 
strftime.3: ISO week number can be 52, add example

A year cannot only begin with week number 53 of the previous year but
also with week number 52.  Year 2011 is an example for this case, as
can be easily seen with GNU date:

$ date -d "jan 1 2011" "+%c %V %G"
Sat Jan  1 00:00:00 2011 52 2010

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoarch_prctl.2: wfix
Michael Kerrisk [Tue, 14 Apr 2020 06:36:07 +0000 (08:36 +0200)] 
arch_prctl.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen.2: Tweaks to Joseph Sible's patch
Michael Kerrisk [Mon, 13 Apr 2020 10:27:06 +0000 (12:27 +0200)] 
open.2: Tweaks to Joseph Sible's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen.2: Document fs.protected_fifos and fs.protected_regular
Joseph C. Sible [Sun, 29 Sep 2019 03:01:47 +0000 (23:01 -0400)] 
open.2: Document fs.protected_fifos and fs.protected_regular

The sysctls fs.protected_fifos and fs.protected_regular can cause
open(2) to fail with EACCES (see Documentation/sysctl/fs.rst for
details.)

Signed-off-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: Document /proc/sys/fs/protected_regular
Michael Kerrisk [Mon, 13 Apr 2020 10:23:19 +0000 (12:23 +0200)] 
proc.5: Document /proc/sys/fs/protected_regular

Text heavily based on Documentation/admin-guide/sysctl/fs.rst.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: Document /proc/sys/fs/protected_fifos
Michael Kerrisk [Mon, 13 Apr 2020 10:17:39 +0000 (12:17 +0200)] 
proc.5: Document /proc/sys/fs/protected_fifos

Text heavily based on Documentation/admin-guide/sysctl/fs.rst.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoio_setup.2: Tweak description of /proc/sys/fs/aio-max-nr
Michael Kerrisk [Mon, 13 Apr 2020 10:03:27 +0000 (12:03 +0200)] 
io_setup.2: Tweak description of /proc/sys/fs/aio-max-nr

As far as I can see, /proc/sys/fs/aio-max-nr is a
system-wide limit, not a per-user limit. This seems to be
confirmed by comments in fs/aio.c (Linux 5.6) sources).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: Document /proc/sys/fs/aio-max-nr and /proc/sys/fs/aio-nr
Michael Kerrisk [Mon, 13 Apr 2020 10:01:56 +0000 (12:01 +0200)] 
proc.5: Document /proc/sys/fs/aio-max-nr and /proc/sys/fs/aio-nr

Text taken nearly verbatim from
Documentation/admin-guide/sysctl/fs.rst.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosendfile.2: wfix
Michael Kerrisk [Mon, 13 Apr 2020 09:42:05 +0000 (11:42 +0200)] 
sendfile.2: wfix

Reported-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosignal.7: srcfix: note some implementation-specific details for process-directed...
Michael Kerrisk [Mon, 13 Apr 2020 09:28:10 +0000 (11:28 +0200)] 
signal.7: srcfix: note some implementation-specific details for process-directed signals

Reported-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoptrace.2: srcfix: mention strace's linux/*/set_scno.c files in relation to PTRACE_SET...
Michael Kerrisk [Mon, 13 Apr 2020 08:39:58 +0000 (10:39 +0200)] 
ptrace.2: srcfix: mention strace's linux/*/set_scno.c files in relation to PTRACE_SET_SYSCALL

Reported-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoptrace.2: Minor tweaks to Joseph Sible's patch
Michael Kerrisk [Mon, 13 Apr 2020 08:36:43 +0000 (10:36 +0200)] 
ptrace.2: Minor tweaks to Joseph Sible's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoptrace.2: Document PTRACE_SET_SYSCALL
Joseph C. Sible [Mon, 13 Apr 2020 08:29:03 +0000 (10:29 +0200)] 
ptrace.2: Document PTRACE_SET_SYSCALL

Signed-off-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: Minor tweaks to Keno Fischer's patch
Michael Kerrisk [Mon, 13 Apr 2020 07:25:02 +0000 (09:25 +0200)] 
proc.5: Minor tweaks to Keno Fischer's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: Fix an outdated note about map_files
Keno Fischer [Sun, 12 Apr 2020 08:09:30 +0000 (04:09 -0400)] 
proc.5: Fix an outdated note about map_files

The restriction to CAP_SYS_ADMIN was removed from map_files in
2015 [1].  There was a fixme that indicted this might happen, but
the main text was never updated when this commit landed. While
we're at it, add a note about the ptrace access check that is
still required.

[1] https://github.com/torvalds/linux/commit/bdb4d100afe9818aebd1d98ced575c5ef143456c

Signed-off-by: Keno Fischer <keno@juliacomputing.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopenat2.2: Various changes after feedback from Aleksa Sarai
Michael Kerrisk [Mon, 13 Apr 2020 07:21:20 +0000 (09:21 +0200)] 
openat2.2: Various changes after feedback from Aleksa Sarai

Reported-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoREADME: Remove "Man page overlap and duplication" section
Michael Kerrisk [Mon, 13 Apr 2020 07:06:45 +0000 (09:06 +0200)] 
README: Remove "Man page overlap and duplication" section

The info here is mostly ancient, certainly incomplete,
and is not consistently maintained. Best to remove it, I think.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoREADME: wfix
Michael Kerrisk [Mon, 13 Apr 2020 05:16:56 +0000 (07:16 +0200)] 
README: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoREADME: Add section on "Bug reports and contributing"
Michael Kerrisk [Sun, 12 Apr 2020 21:09:25 +0000 (23:09 +0200)] 
README: Add section on "Bug reports and contributing"

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoREADME: Move the "Home page" section to the top of the file
Michael Kerrisk [Sun, 12 Apr 2020 20:50:08 +0000 (22:50 +0200)] 
README: Move the "Home page" section to the top of the file

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agombind.2: Rework Li Xinhai's patch to note historical behavior
Michael Kerrisk [Mon, 6 Apr 2020 15:49:23 +0000 (17:49 +0200)] 
mbind.2: Rework Li Xinhai's patch to note historical behavior

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agombind.2: Remove note about MPOL_MF_STRICT been ignored
Li Xinhai [Fri, 14 Feb 2020 17:03:58 +0000 (17:03 +0000)] 
mbind.2: Remove note about MPOL_MF_STRICT been ignored

Current code ignores the MPOL_MF_STRICT when handling hugetlb
mapping, now patch([1]) handles MPOL_MF_STRICT in same semantic as
other mapping.  So, we can remove the note about 'MPOL_MF_STRICT
is ignored on huge page mappings', and no changes to other part of
man-page.

[1] https://lore.kernel.org/linux-mm/1581559627-6206-1-git-send-email-lixinhai.lxh@gmail.com/

Signed-off-by: Li Xinhai <lixinhai.lxh@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges.old: Fixes to 5.06 change log
Michael Kerrisk [Sun, 12 Apr 2020 07:34:30 +0000 (09:34 +0200)] 
Changes.old: Fixes to 5.06 change log

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrcmp.3: Add license to example programs
Michael Kerrisk [Sun, 12 Apr 2020 07:04:33 +0000 (09:04 +0200)] 
strcmp.3: Add license to example programs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshm_open.3: Add license to example programs
Michael Kerrisk [Sun, 12 Apr 2020 07:03:25 +0000 (09:03 +0200)] 
shm_open.3: Add license to example programs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshmop.2: Add license to example programs
Michael Kerrisk [Sun, 12 Apr 2020 07:02:08 +0000 (09:02 +0200)] 
shmop.2: Add license to example programs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopoll.2: Add license to example program
Michael Kerrisk [Sun, 12 Apr 2020 07:00:00 +0000 (09:00 +0200)] 
poll.2: Add license to example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosemget.2: Add license to example program
Michael Kerrisk [Sun, 12 Apr 2020 06:59:10 +0000 (08:59 +0200)] 
semget.2: Add license to example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime_namespaces.7: Minor wording fix
Michael Kerrisk [Sun, 12 Apr 2020 06:44:50 +0000 (08:44 +0200)] 
time_namespaces.7: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime_namespaces.7: tfix
Michael Kerrisk [Sun, 12 Apr 2020 06:43:56 +0000 (08:43 +0200)] 
time_namespaces.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoStart of man-pages-5.07: updating Changes and Changes.old
Michael Kerrisk [Sun, 12 Apr 2020 06:32:06 +0000 (08:32 +0200)] 
Start of man-pages-5.07: updating Changes and Changes.old

4 years agoStart of man-pages-5.07: updating .Announce and .lsm files
Michael Kerrisk [Sun, 12 Apr 2020 06:32:06 +0000 (08:32 +0200)] 
Start of man-pages-5.07: updating .Announce and .lsm files

4 years agoStart of man-pages-5.07: renaming .Announce and .lsm files
Michael Kerrisk [Sun, 12 Apr 2020 06:32:06 +0000 (08:32 +0200)] 
Start of man-pages-5.07: renaming .Announce and .lsm files

4 years agoReady for 5.06
Michael Kerrisk [Sat, 11 Apr 2020 20:08:12 +0000 (22:08 +0200)] 
Ready for 5.06

4 years agopidfd_getfd.2, select.2, exit.3, time.7, time_namespaces.7: srcfix: Trim trailing...
Michael Kerrisk [Sat, 11 Apr 2020 20:32:33 +0000 (22:32 +0200)] 
pidfd_getfd.2, select.2, exit.3, time.7, time_namespaces.7: srcfix: Trim trailing white spaces

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: whitespace cleanups
Michael Kerrisk [Sat, 11 Apr 2020 20:08:03 +0000 (22:08 +0200)] 
Changes: whitespace cleanups

4 years agogetent.1, localedef.1, accept.2, arch_prctl.2, clock_getres.2, clock_nanosleep.2...
Michael Kerrisk [Sat, 11 Apr 2020 20:07:24 +0000 (22:07 +0200)] 
getent.1, localedef.1, accept.2, arch_prctl.2, clock_getres.2, clock_nanosleep.2, connect.2, dup.2, epoll_create.2, epoll_ctl.2, epoll_wait.2, execve.2, getitimer.2, getsockopt.2, gettid.2, inotify_add_watch.2, inotify_init.2, io_submit.2, ioctl.2, lseek.2, madvise.2, mlock.2, mmap.2, mprotect.2, msgctl.2, msgop.2, open_by_handle_at.2, openat2.2, pidfd_open.2, poll.2, prctl.2, quotactl.2, s390_sthyi.2, select.2, select_tut.2, semctl.2, semget.2, semop.2, setns.2, shmctl.2, shmget.2, shmop.2, sigaction.2, stat.2, statx.2, syscalls.2, timer_create.2, timerfd_create.2, unshare.2, wait.2, CPU_SET.3, aio_init.3, atoi.3, des_crypt.3, dirfd.3, fmemopen.3, fopencookie.3, ftok.3, fts.3, getaddrinfo.3, getifaddrs.3, getrpcent.3, gsignal.3, lio_listio.3, nl_langinfo.3, posix_memalign.3, posix_openpt.3, posix_spawn.3, scanf.3, sem_init.3, sem_post.3, shm_open.3, strcmp.3, strftime.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, cgroups.7, feature_test_macros.7, keyrings.7, man-pages.7, namespaces.7, path_resolution.7, sigevent.7, signal.7, socket.7, sysvipc.7, time.7, udp.7: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: Ready for 5.06
Michael Kerrisk [Fri, 10 Apr 2020 09:07:53 +0000 (11:07 +0200)] 
Changes: Ready for 5.06

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: ffix
Michael Kerrisk [Fri, 10 Apr 2020 08:00:30 +0000 (10:00 +0200)] 
proc.5: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclock_getres.2: SEE ALSO: add time_namespaces(7)
Michael Kerrisk [Sat, 4 Apr 2020 05:04:38 +0000 (07:04 +0200)] 
clock_getres.2: SEE ALSO: add time_namespaces(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime.7: Add small subsection on clocks and time namespaces
Michael Kerrisk [Fri, 10 Apr 2020 07:38:39 +0000 (09:38 +0200)] 
time.7: Add small subsection on clocks and time namespaces

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosetns.2: Document CLONE_NEWTIME
Michael Kerrisk [Sat, 4 Apr 2020 10:29:29 +0000 (12:29 +0200)] 
setns.2: Document CLONE_NEWTIME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounshare.2: Add CLONE_NEWCGROUP and CLONE_NEWTIME to example program
Michael Kerrisk [Sat, 4 Apr 2020 10:51:33 +0000 (12:51 +0200)] 
unshare.2: Add CLONE_NEWCGROUP and CLONE_NEWTIME to example program

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounshare.2: Document CLONE_NEWTIME
Michael Kerrisk [Fri, 3 Apr 2020 18:19:30 +0000 (20:19 +0200)] 
unshare.2: Document CLONE_NEWTIME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonamespaces.7: Eliminate some superfluous info from display of /proc/PID/ns links
Michael Kerrisk [Fri, 3 Apr 2020 13:04:59 +0000 (15:04 +0200)] 
namespaces.7: Eliminate some superfluous info from display of /proc/PID/ns links

The display of the /proc/PID/ns renders very wide. Make it
narrower by eliminating some nonessential info via some
awk(1) filtering.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonamespaces.7: Add time namespaces information
Michael Kerrisk [Fri, 3 Apr 2020 12:22:30 +0000 (14:22 +0200)] 
namespaces.7: Add time namespaces information

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime_namespaces.7: Tweaks for symbolic clock-IDs in /proc/PID/timens_offsets
Michael Kerrisk [Sat, 11 Apr 2020 11:32:29 +0000 (13:32 +0200)] 
time_namespaces.7: Tweaks for symbolic clock-IDs in /proc/PID/timens_offsets

Andrei Vagin implemented a change I suggested:
clock-IDs are now be expressed in symbolic form (e.g.,
"monotonic") instead of numeric form (e.g., 1) when reading
/proc/PID/timerns_offsets, and can be expressed either
symbolically or numerically when writing to that file.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime_namespaces.7: Add an ERRORS description for writes to timens_offsets
Michael Kerrisk [Tue, 7 Apr 2020 13:07:51 +0000 (15:07 +0200)] 
time_namespaces.7: Add an ERRORS description for writes to timens_offsets

In particular, note the ERANGE restrictions reported by
Thomas Gleixner.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime_namespaces.7: Updates after feedback from Andrei Vagin
Michael Kerrisk [Tue, 7 Apr 2020 12:45:00 +0000 (14:45 +0200)] 
time_namespaces.7: Updates after feedback from Andrei Vagin

Reported-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime_namespaces.7: Minor wording tweaks
Michael Kerrisk [Mon, 6 Apr 2020 08:26:10 +0000 (10:26 +0200)] 
time_namespaces.7: Minor wording tweaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime_namespaces.7: New page documenting time namespaces
Michael Kerrisk [Sat, 4 Apr 2020 09:23:02 +0000 (11:23 +0200)] 
time_namespaces.7: New page documenting time namespaces

Reviewed-by: Dmitry Safonov <dima@arista.com>
Reviewed-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodup.2: SEE ALSO: add pidfd_getfd(2)
Michael Kerrisk [Wed, 1 Apr 2020 04:46:55 +0000 (06:46 +0200)] 
dup.2: SEE ALSO: add pidfd_getfd(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Mention pidfd_getfd(2)
Michael Kerrisk [Tue, 31 Mar 2020 12:05:24 +0000 (14:05 +0200)] 
pidfd_open.2: Mention pidfd_getfd(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_getfd.2: Additions and fixes after review by Christian Brauner
Michael Kerrisk [Wed, 8 Apr 2020 08:27:32 +0000 (10:27 +0200)] 
pidfd_getfd.2: Additions and fixes after review by Christian Brauner

Reported-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>