Commit Graph

17309 Commits

Author SHA1 Message Date
Michael Kerrisk 663c13027a unlink.2: ERRORS: add EPERM error for immutable/read-only files
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:23 +13:00
Michael Kerrisk 5fae754f7f link.2: ERRORS: add EPERM for immutable/append-only files
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:23 +13:00
Michael Kerrisk 937a7c8747 setxattr.2: ERRORS: add EPERM for immutable/append-only files
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:23 +13:00
Michael Kerrisk 459091008d ioctl.2: SEE ALSO: add ioctl_iflags(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:23 +13:00
Michael Kerrisk c7fc938f2c ioctl_iflags.2: srcfix: FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:23 +13:00
Michael Kerrisk cfb3e18732 ioctl_iflags.2: New page describing inode flags and ioctl() operations
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:23 +13:00
Michael Kerrisk 156d8c8480 capabilities.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:23 +13:00
Michael Kerrisk e39561aac8 netlink.7: Add NETLINK_RDMA to list
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk 4338604d01 netlink.7: Add NETLINK_SCSITRANSPORT to list
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk 1fcf200311 netlink.7: NETLINK_IP6_FW went away in Linux 3.5
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk d7fd538cd0 netlink.7: NETLINK_NFLOG was removed in Linux 3.17
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk 326ccb6cf6 netlink.7: NETLINK_W1 went away in Linux 2.6.18
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk fddeaabaa0 netlink.7: NETLINK_FIREWALL was removed in Linux 3.5
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk b435e1e160 signalfd.2: signalfd can't be used to receive synchronously generated signals
Signals such as the SIGSEGV that results from an invalid
memory access can be caught only with a handler.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk 9a95dcb6a6 vfork.2: Another reason to use vfork() is to avoid overcommitting memory
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:22 +13:00
Michael Kerrisk 2d25ceeb17 proc.5: Minor addition to /proc/sys/vm/overcommit_memory description
Refer to recently added  descriptions of
/proc/sys/vm/admin_reserve_kbytes and
/proc/sys/vm/user_reserve_kbytes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-25 00:01:17 +13:00
Michael Kerrisk 01b63c3412 proc.5: Document /proc/sys/vm/user_reserve_kbytes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 22:07:14 +13:00
Michael Kerrisk 4fb6ed947d proc.5: Document /proc/sys/vm/admin_reserve_kbytes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 22:07:14 +13:00
Michael Kerrisk b017f51b94 proc.5: Add some detail on overcommit_memory value 1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 16:36:19 +13:00
Michael Kerrisk ae8962dc54 proc.5: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 16:36:19 +13:00
Michael Kerrisk c594f67ad0 vfork.2: Note some caveats re the use of vfork()
Inspired by Rich Felker's post at http://ewontfix.com/7/.
See also https://sourceware.org/bugzilla/show_bug.cgi?id=14749 and
See also https://sourceware.org/bugzilla/show_bug.cgi?id=14750.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 16:35:35 +13:00
Michael Kerrisk f416bfde5a ld.so.8: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 11:40:46 +13:00
Michael Kerrisk 61c5564c39 ld.so.8: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 11:35:12 +13:00
Michael Kerrisk 879de6e749 ld.so.8: LD_AUDIT understands $ORIGIN, $LIB, and $PLATFORM
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 11:32:41 +13:00
Michael Kerrisk e9a133817c ld.so.8: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 11:24:02 +13:00
Michael Kerrisk 50994c10bc ld.so.8: In secure mode, LD_AUDIT restricts the libraries that it will load
This change was introduced in glibc 2.13

See http://seclists.org/fulldisclosure/2010/Oct/344 and
https://lwn.net/Articles/412048/.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 11:00:52 +13:00
Michael Kerrisk c9a39feadc unix.7: Since Linux 3.4, UNIX domain sockets support MSG_TRUNC
This was correctly noted in recv(2), but the unix(7) page
was not correspondingly updated for the Linux 3.4 change.

Reported-by: Sergey Polovko <sergey@polovko.me>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 09:57:12 +13:00
Michael Kerrisk afded6dfa1 recv.2: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 09:50:52 +13:00
Michael Kerrisk e5e9497f35 ld.so.8: Describe use of LD_DEBUG with LD_BIND_NOT
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 09:43:01 +13:00
Michael Kerrisk a3a72ad210 ld.so.8: LD_BIND_NOT has effect only for function symbols
As far as I can tell from testing and a short read of the glibc
source code, LD_BIND_NOT has an effect only for function symbols.
This is consistent also with the Solaris documentation, which
says:

    When the runtime linker performs a function relocation, it
    rewrites data associated with the functions .plt so that any
    subsequent calls will go directly to the function. The
    environment variable LD_BIND_NOT can be set to any value to
    prevent this data update. By using this variable together
    with the debugging request for detailed bindings, you can
    get a complete runtime account of all function binding.

Test case:

$ cat prog.c

int
main(int argc, char *argv[])
{
    for (;;) {
	sleep(1);
	optind = 0;
    }

    exit(EXIT_SUCCESS);
}
$ cc prog.c

And then in the run below, in each loop, we see repeated resolutions
only for the function symbol, sleep() (and not for optind).

$ LD_BIND_NOT=1 LD_DEBUG=symbols,bindings ./a.out
...
     30481:	transferring control: ./t
     30481:
     30481:	symbol=sleep;  lookup in file=./t [0]
     30481:	symbol=sleep;  lookup in file=/lib64/libc.so.6 [0]
     30481:	binding file ./t [0] to /lib64/libc.so.6 [0]: normal symbol `sleep' [GLIBC_2.2.5]
     30481:	symbol=sleep;  lookup in file=./t [0]
     30481:	symbol=sleep;  lookup in file=/lib64/libc.so.6 [0]
     30481:	binding file ./t [0] to /lib64/libc.so.6 [0]: normal symbol `sleep' [GLIBC_2.2.5]
     30481:	symbol=sleep;  lookup in file=./t [0]
     30481:	symbol=sleep;  lookup in file=/lib64/libc.so.6 [0]
     30481:	binding file ./t [0] to /lib64/libc.so.6 [0]: normal symbol `sleep' [GLIBC_2.2.5]
     30481:	symbol=sleep;  lookup in file=./t [0]
     30481:	symbol=sleep;  lookup in file=/lib64/libc.so.6 [0]
     30481:	binding file ./t [0] to /lib64/libc.so.6 [0]: normal symbol `sleep' [GLIBC_2.2.5]
     30481:	symbol=sleep;  lookup in file=./t [0]
     30481:	symbol=sleep;  lookup in file=/lib64/libc.so.6 [0]
     30481:	binding file ./t [0] to /lib64/libc.so.6 [0]: normal symbol `sleep' [GLIBC_2.2.5]
     30481:	symbol=sleep;  lookup in file=./t [0]
     30481:	symbol=sleep;  lookup in file=/lib64/libc.so.6 [0]
     30481:	binding file ./t [0] to /lib64/libc.so.6 [0]: normal symbol `sleep' [GLIBC_2.2.5]

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-16 09:42:53 +13:00
Michael Kerrisk 534267c408 resolv.conf.5: The 'inet6' option is deprecated since glibc 2.25
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 08:00:17 +13:00
Michael Kerrisk b557e5650b resolver.3: RES_USE_INET6 is deprecated since glibc 2.25
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 08:00:17 +13:00
Michael Kerrisk 414c75f0dd resolver.3: Note that RES_BLAST was unimplemented and is now deprecated
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 08:00:17 +13:00
Michael Kerrisk 023ef92770 resolver.3: RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME, RES_KEEPTSIG are deprecated
These options were never implemented; since glibc 2.25, they
are deprecated.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 08:00:07 +13:00
Michael Kerrisk 043ace1ba3 resolv.conf.5: ip6-bytestring was removed in glibc 2.25
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 07:02:52 +13:00
Michael Kerrisk ee5fa04005 resolver.3: RES_USEBSTRING was removed in glibc 2.25
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 07:02:52 +13:00
Michael Kerrisk 17d9e0033f resolver.3, resolv.conf.5: Note that RES_USEBSTRING defaults to off
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 06:57:30 +13:00
Michael Kerrisk 81784f6138 resolv.conf.5: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 06:50:16 +13:00
Michael Kerrisk 177b2f4090 resolv.conf.5: The ipc-dotint and no-ip6-dotint options were removed in glibc 2.25
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 06:37:07 +13:00
Michael Kerrisk dfbd4e66c2 resolv.conf.5: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 06:32:45 +13:00
Michael Kerrisk 10863e5f54 resolver.3: The RES_NOIP6DOTINT is removed in glibc 2.25
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-14 06:27:27 +13:00
Michael Kerrisk 28ab42e4ea getrlimit.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-09 15:52:09 +13:00
Michael Kerrisk 0dfc1b0119 getrlimit.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-09 15:49:03 +13:00
Michael Kerrisk 09860f3162 pid_namespaces.7, user_namespaces.7: Adjust references to namespaces(7) to ioctl_ns(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-09 15:48:57 +13:00
Michael Kerrisk 2ea8ee2cf0 ioctl.2: SEE ALSO: add ioctl_ns(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-09 15:48:57 +13:00
Michael Kerrisk e0ab72cb98 namespaces.7: Remove content split out into ioctl_ns(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-09 15:48:57 +13:00
Michael Kerrisk 008f58d5e8 ioctl_ns.2: New page created by splitting ioctl(2) operations out of namespaces(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-09 15:48:51 +13:00
Michael Kerrisk 94d76e41e9 remap_file_pages.2: remap_file_pages() has been replaced by a slower in-kernel emulation
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-06 09:48:33 +13:00
Jakub Wilk 48dd0abcd0 ioctl_fideduperange.2: ffix
Add empty line between "struct file_dedupe_range" definition and the
following paragraph.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-06 05:57:05 +13:00
Michael Kerrisk ad56cef4b2 getmntent.3: Prefer '\\' as the escape to get a backslash
See https://bugzilla.kernel.org/show_bug.cgi?id=191611

Reported-by: Anders Thulin <anders@thulin.name>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-01-05 17:17:41 +13:00