Commit Graph

17637 Commits

Author SHA1 Message Date
Michael Kerrisk 709f7bb642 statx.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-23 13:34:58 +02:00
Michael Kerrisk 14b5d02a46 statx.2: srcfix: rewrap source lines
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-23 13:34:58 +02:00
Michael Kerrisk 6a4667aaa3 statx.2: Minor wording and formatting fix-ups
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-23 13:34:58 +02:00
David Howells 9905e59b55 statx.2: New page describing statx(2) system call added in Linux 4.11
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-23 13:34:55 +02:00
Michael Kerrisk b3deaf0f74 stat.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-23 13:33:30 +02:00
David Howells 97ee9f3732 stat.2: ERRORS: correct description of ENOENT
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-23 13:30:35 +02:00
Michael Kerrisk fb00408109 syscalls.2: Linux 4.11 added statx()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-23 13:30:35 +02:00
Michael Kerrisk f6eae219d9 stat.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 22:01:55 +02:00
Michael Kerrisk 58441c4fc0 stat.2: Remove "Other systems" subsection
These details about other systems were added in 1999,
and were probably of limited use then, and even less today.
However, they do clutter the page, so remove them.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 22:01:40 +02:00
Michael Kerrisk 520caa5540 man-pages.7: Note preferred approach for 'duplicate' errors
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:39:23 +02:00
Michael Kerrisk 9152b8c9cf stat.2: Add some subsection headings to ease readability
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:29:28 +02:00
Michael Kerrisk 28f042cca7 stat.2: Minor list reordering
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:26:22 +02:00
Michael Kerrisk 78909f3e1d stat.2: DESCRIPTION: add list entries for 'st_uid' and 'st_gid'
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:23:55 +02:00
Michael Kerrisk d41bfb204e stat.2: DESCRIPTION: add a list entry for 'st_nlinks' field
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:20:59 +02:00
Michael Kerrisk cafa975264 stat.2: DESCRIPTION: add a list entry for 'st_ino'
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:19:33 +02:00
Michael Kerrisk c61617be60 stat.2: Add slightly expanded description oif 'st_ino' field
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:17:52 +02:00
Michael Kerrisk 53cb52e502 stat.2: Restructure filed descriptions as a hanging list
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 15:06:09 +02:00
Michael Kerrisk ba29187129 stat.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 14:44:25 +02:00
Michael Kerrisk bb0b0beecd ioctl_ns.2: Document the NS_GET_OWNER_UID operation added in Linux 4.11
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 12:32:01 +02:00
Michael Kerrisk a1a3cae896 ioctl_ns.2: ERRORS: document ENOTTY
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 12:20:05 +02:00
Michael Kerrisk 2546f8a637 ioctl_ns.2: Document the NS_GET_NSTYPE operation added in Linux 4.11
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-21 12:15:00 +02:00
Michael Kerrisk 14ecabec05 errno.3: wfix
Reported-by: 丁贵强<dingguiqiang@foxmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-20 21:21:51 +02:00
Michael Kerrisk bb67614554 socket.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-20 16:44:50 +02:00
Michael Kerrisk a99fa5fb93 socket.7: Enhance the description of SO_INCOMING_CPU
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-20 16:44:45 +02:00
Michael Kerrisk b7f97e8ea5 socket.7: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-20 16:39:51 +02:00
Francois Saint-Jacques ca1969e92b socket.7: Document SO_INCOMING_CPU
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-20 16:39:50 +02:00
Michael Kerrisk fedefd800e kexec_load.2, sched_setaffinity.2, bootparam.7: Documentation/kernel-parameters.txt is now in Documentation/admin-guide/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-20 13:22:12 +02:00
Mike Frysinger 261c7e1d15 prctl(2): PR_SET_MM: Refine CONFIG_CHECKPOINT_RESTORE requirement
The Linux 3.10 release dropped the c/r requirement and opened it
up to all users.

Signed-off-by: Mike Frysinger <vapier@chromium.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:04 +02:00
Mike Frysinger 7e3236a5a0 prctl(2): PR_SET_MM: Document new PR_SET_MM_MAP{,_SIZE} helpers
Signed-off-by: Mike Frysinger <vapier@chromium.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:04 +02:00
Mike Frysinger a87d0921a7 prctl(2): PR_SET_MM: Document arg4/arg5 zero behavior
The kernel will immediately reject calls where arg4/arg5 are not
zero.  See kernel/sys.c:prctl_set_mm().

Signed-off-by: Mike Frysinger <vapier@chromium.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:04 +02:00
Michael Kerrisk d983a4c854 rename.2: Note that there is no glibc wrapper for renameat2()
Reported-by: Georg Sauthoff <mail@georg.so>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:04 +02:00
Michael Kerrisk 42cfcef15e proc.5: Refer to namespaces(7) for discussion of /proc/sys/user/* files
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:04 +02:00
Michael Kerrisk 5046cb7268 namespaces.7: Document the /proc/sys/user/* files added in Linux 4.9
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:04 +02:00
Michael Kerrisk 2f7a331e53 clone.2, unshare.2: Exceeding one of the limits in /proc/sys/user/* can cause ENOSPC
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:03 +02:00
Michael Kerrisk b5742eccf1 clone.2, unshare.2: Exceeding the maximum nested user namespace limit now gives ENOSPC
Formerly, if the limit of 32 nested user namespaces was exceeded,
the error EUSERS resulted. Starting with Linux 4.9, the error
is ENOSPC.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:03 +02:00
Michael Kerrisk b20e22aeb7 clone.2, unshare.2: CLONE_NEWPID yields ENOSPC if nesting limit of PID namespaces is reached
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:03 +02:00
Michael Kerrisk aa825b59ec clone.2: CLONE_NEWCGROUP by an unprivileged process also causes an EPERM error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-19 15:52:03 +02:00
Michael Kerrisk fb509133db pid_namespaces.7: The maximum nesting depth for PID namespaces is 32
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-17 21:00:55 +02:00
Michael Kerrisk 96580790f7 sigprocmask.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-16 20:57:52 +02:00
Michael Kerrisk b9ad845d01 sigprocmask.2: 'set' and 'oldset' can both be NULL
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-16 20:56:20 +02:00
Michael Kerrisk 59e6b4c6be ld.so.8: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-14 09:49:28 +02:00
Marcin Ślusarz b78969acbb stat.2: Tweak description of AT_EMPTY_PATH
Currently it says when dirfd is AT_FDCWD it can be something
other than directory, which doesn't make much sense. Just swap
the order of sentences.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 16:19:15 +02:00
Cyril Hrubis 108e40cccb ioctl_list.2: BLKRASET/BLKRAGET take unsigned long
The BLKRASET/BLKRAGET ioctls() take unsigned long, if I pass int * to
the BLKRAGET ioctl on x86_64 (or on any other arch where sizeof(int) !=
sizeof(long)) the BLKRAGET ioctl will rewrite four bytes on the stack.

If you look at block/ioctl.c in kernel sources you can clearly see that
BLKRAGET ioctl calls put_long().

Compile following reproducer and run it as ./a.out /dev/sda, you can see
that the second member of the array will be zeroed. If you change the
array to have only one member you will see stack smashing trace.

I also wonder if it's OK to pass int value to ioctl() at all, the arg
value seems to be unsigned long in the syscall definition in fs/ioctl.c
and there does not seem to be any glibc magic around the syscall.

-------------------------8<----------------------------

static int fd;

int main(int argc, char *argv[])
{
	int ra[] = {100, 100};

	fd = open(argv[1], O_RDONLY);
	if (fd < 0) {
		perror("open");
		return 1;
	}

	ioctl(fd, BLKRAGET, ra);

	fprintf(stderr, "%i %i\n", ra[0], ra[1]);

	return 0;
}

-------------------------8<----------------------------

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 16:16:04 +02:00
Michael Kerrisk f0ed97100f getentropy.3: Some improvements to Nikos Mavrogiannopoulos's patch
Reported-by: Florian Weimer <fw@deneb.enyo.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 14:10:11 +02:00
Michael Kerrisk 419ba7b3c5 getentropy.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 14:02:54 +02:00
Nikos Mavrogiannopoulos 9cf011f94b getentropy.3: Correct header file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 14:00:22 +02:00
Florian Weimer 6c1f939f08 nsswitch.conf.5: Mention sudoers
It turns out that sudo drops things into nsswitch.conf, too.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 13:47:50 +02:00
Michael Kerrisk 61428042e2 bzero.3: Add correct header file for exlicit_bzero()
Reported-by: Zack Weinberg <zackw@panix.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 13:47:50 +02:00
Michael Kerrisk e6af0066c8 bzero.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 13:47:50 +02:00
Jakub Wilk 725399bba7 zdump.8: Add OPTIONS section heading
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-10 13:47:50 +02:00