Commit Graph

14075 Commits

Author SHA1 Message Date
Stephan Mueller 3c4dfb62a5 socket.2: Update documentation reference for AF_ALG
Signed-off-by: Stephan Mueller <stephan.mueller@atsec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-16 10:07:00 +02:00
Jann Horn 614e269a80 chroot.2: chroot() is not intended for security; document attack
It is unfortunate that this discourages this use of chroot(2)
without pointing out alternative solutions - for example,
OpenSSH and vsftpd both still rely on chroot(2) for security.

Bind mounts should theoretically be usable as a replacement, but
currently, they have a similar problem (CVE-2015-2925) that hasn't
been fixed in ~6 months, so I'd rather not add it to the manpage
as a solution before a fix lands.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-16 10:00:14 +02:00
Zeng Linggang 0326cdf21e fexecve.3: ATTRIBUTES: Note function that is thread-safe
After research, We think fexecve() is thread-safe. But, there
is not marking of fexecve() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-16 08:48:41 +02:00
Michael Kerrisk 8f7977002a resolver.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:46:36 +02:00
Michael Kerrisk 78b0e70aa8 rcmd.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:45:08 +02:00
Michael Kerrisk ea48f0aaa0 getrpcent.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:44:09 +02:00
Michael Kerrisk b1c3107a47 getprotoent_r.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:42:44 +02:00
Zeng Linggang 764ae61ffd setaliasent.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* setaliasent(),
* endaliasent(),
* getaliasent_r(),
* getaliasbyname_r(),
are thread-safe. And
* getaliasent(),
* getaliasbyname(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:41:18 +02:00
Zeng Linggang 402219318b resolver.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* res_ninit(),
* res_nquery(),
* res_nsearch(),
* res_nquerydomain(),
* res_nmkquery(),
* res_nsend(),
* dn_comp(),
* dn_expand()
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:41:05 +02:00
Zeng Linggang e196c9004e rcmd.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* rresvport(),
* iruserok(),
* ruserok(),
* rresvport_af(),
* iruserok_af(),
* ruserok_af(),
are thread-safe. And
* rcmd(),
* rcmd_af(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:40:52 +02:00
Zeng Linggang 44518c2d1d profil.3: ATTRIBUTES: Note function that is not thread-safe
After research, We think profil() is not thread-safe. But,
there is not marking of profil() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:40:46 +02:00
Zeng Linggang 67e569aa71 getservent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getservent_r(),
* getservbyname_r(),
* getservbyport_r(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:40:03 +02:00
Zeng Linggang 0a167f3161 getrpcent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getrpcent_r(),
* getrpcbyname_r(),
* getrpcbynumber_r(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:39:49 +02:00
Zeng Linggang b4f1e052aa getrpcent.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* setrpcent(),
* endrpcent(),
are thread-safe. And
* getrpcent(),
* getrpcbyname(),
* getrpcbynumber(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:39:24 +02:00
Zeng Linggang 252c5d6b48 getprotoent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getprotoent_r(),
* getprotobyname_r(),
* getprotobynumber_r(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:39:08 +02:00
Zeng Linggang 9038b7f6eb getaddrinfo_a.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think
* getaddrinfo_a(),
* gai_suspend(),
* gai_error(),
* gai_cancel(),
are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:38:57 +02:00
Zeng Linggang 2e3b24fc5c fts.3: ATTRIBUTES: Note functions that are/aren't thread-safe
After research, We think
* fts_open(),
* fts_set(),
* fts_close(),
are thread-safe. And
* fts_read(),
* fts_children(),
are not thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:38:41 +02:00
Zeng Linggang 011b525117 sem_close.3: ATTRIBUTES: Note function that is thread-safe
After research, We think sem_close() is thread-safe. But, there
is not marking of sem_close() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:55 +02:00
Zeng Linggang c17fc186c2 rpmatch.3: ATTRIBUTES: Note function that is thread-safe
The marking matches glibc marking.
The marking of functions in glibc is:
- rpmatch: MT-Safe locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:49 +02:00
Zeng Linggang 0cc0b5e4eb malloc_trim.3: ATTRIBUTES: Note function that is thread-safe
After research, We think malloc_trim() is thread-safe. But, there
is not marking of malloc_trim() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:18 +02:00
Zeng Linggang 99f8b6661b malloc_get_state.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think malloc_get_state() and malloc_set_state() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:27:05 +02:00
Zeng Linggang 9927122be4 getservent.3: ATTRIBUTES: Note functions that aren't thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- getservent:    MT-Unsafe race:servent race:serventbuf locale

- getservbyname: MT-Unsafe race:servbyname locale

- getservbyport: MT-Unsafe race:servbyport locale

- setservent:    MT-Unsafe race:servent locale
- endservent:    MT-Unsafe race:servent locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:26:45 +02:00
Zeng Linggang bd1725063f getrpcport.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getrpcport() is thread-safe. But, there
is not marking of getrpcport() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:26:25 +02:00
Zeng Linggang 18813d7b52 getprotoent.3: ATTRIBUTES: Note functions that aren't thread-safe
The marking matches glibc marking.
markings of functions in glibc are:
- getprotoent:      MT-Unsafe race:protoent race:protoentbuf locale

- getprotobyname:   MT-Unsafe race:protobyname locale

- getprotobynumber: MT-Unsafe race:protobynumber locale

- setprotoent:      MT-Unsafe race:protoent locale
- endprotoent:      MT-Unsafe race:protoent locale

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:26:17 +02:00
Zeng Linggang a9e30c8c12 getnameinfo.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getnameinfo() is thread-safe. But, there
is not marking of getnameinfo() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:54 +02:00
Zeng Linggang bb89d1ef8f getaddrinfo.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think getaddrinfo(), freeaddrinfo() and
gai_strerror() are thread-safe. But, there are not markings
of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:28 +02:00
Zeng Linggang 1ee2274c39 dl_iterate_phdr.3: ATTRIBUTES: Note function that is thread-safe
After research, We think dl_iterate_phdr() is thread-safe. But, there
is not marking of dl_iterate_phdr() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:25:10 +02:00
Michael Kerrisk 332d685555 xcrypt.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:18:06 +02:00
Michael Kerrisk e2d7e8a112 key_setsecret.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:16:16 +02:00
Zeng Linggang 8d2cf26d8b xcrypt.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think passwd2des(), xencrypt() and xdecrypt() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 45932f13d9 putgrent.3: ATTRIBUTES: Note function that is thread-safe
After research, We think putgrent() is thread-safe. But, there
is not marking of putgrent() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 672a9903d3 pthread_tryjoin_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_tryjoin_np() and
pthread_timedjoin_np() are thread-safe. But, there
are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 5effafa2f6 pthread_getattr_np.3: ATTRIBUTES: Note function that is thread-safe
After research, We think pthread_getattr_np() is thread-safe. But,
there is not marking of pthread_getattr_np() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:47 +02:00
Zeng Linggang 598445e0a5 pthread_cleanup_push.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_cleanup_push() and
pthread_cleanup_pop() are thread-safe. But, there
are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:13:43 +02:00
Zeng Linggang 5b911d96f8 pthread_attr_setaffinity_np.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think pthread_attr_setaffinity_np() and
pthread_attr_getaffinity_np() are thread-safe. But, there are not
markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:12:27 +02:00
Zeng Linggang f8f22117d0 key_setsecret.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think key_decryptsession(), key_setsecret(),
key_encryptsession(), key_gendes() and key_secretkey_is_set() are
thread-safe. But, there are not markings of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:10:03 +02:00
Zeng Linggang 91a7c37560 getpw.3: ATTRIBUTES: Note function that is thread-safe
After research, We think getpw() is thread-safe. But, there
is not marking of getpw() in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:09:46 +02:00
Zeng Linggang 8eb0dd50e5 getnetent_r.3: ATTRIBUTES: Note functions that are thread-safe
After research, We think getnetent_r(), getnetbyname_r() and
getnetbyaddr_r() are thread-safe. But, there are not markings
of them in glibc document.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 21:09:02 +02:00
Andries E. Brouwer 981fffea98 fread.3: Clarify terminology
In the "RETURN VALUE" section the word item is in italics
as if it were one of the function parameters. But the word
"item" occurs here for the first time, earlier the text
uses "element". [Patch improves this.]

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 20:56:13 +02:00
Jann Horn 7353fc544c listxattr.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 20:16:16 +02:00
Michael Kerrisk c93b25f996 gettid.2: s/getpid()/gettid()/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 19:01:14 +02:00
Julian Orth c838fc75c7 capget.2: Clarify that hdrp->pid==0 is equivalent gettid() not getpid()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:58:24 +02:00
Michael Kerrisk 4a8f718576 gettid.2: Note that for a thread group leader, gettid() == getpid()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:56:24 +02:00
Marko Myllynen ca48cef151 locale.1: A minor output format clarification
A minor clarification for the locale output format which was
brought up at
https://sourceware.org/bugzilla/show_bug.cgi?id=18516.

For reference, see
https://sourceware.org/bugzilla/show_bug.cgi?id=18516
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/locale.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:47:21 +02:00
Marko Myllynen 2a9e359eda localedef.1: tfix
Hi Michael,

the subject says it all.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:46:30 +02:00
Marko Myllynen be1e94afe1 strfmon.3: Rewrite the example
I think the example is more accurate when we use the exact
locale names and also the Euro sign where appropriate.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:56 +02:00
Marko Myllynen 88b801ec78 strfmon.3: Document strfmon_l(3)
Describe strfmon_l(3).

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strfmon.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00
Marko Myllynen af1eec3c8a strfmon.3: Fix CONFORMING TO
AFAICS strfmon(3) is now defined in POSIX and the glibc
implementation is as specified there.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strfmon.html

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00
Michael Kerrisk 4839256aff locale.5: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00
Michael Kerrisk 7bc58733c5 locale.5: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-06-12 18:45:53 +02:00