Michael Kerrisk
d74d5bd369
ld.so.8: tfix
...
Reported-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-13 13:29:50 +02:00
Jakub Wilk
f4279be583
ld.so.8: tfix
...
Removed duplicated words.
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-13 13:13:29 +02:00
Michael Kerrisk
e28421e9ba
ld.so.8: Minor rework of LD_DEBUG description
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-13 13:04:54 +02:00
Michael Kerrisk
ac59a601d6
ld.so.8: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-13 12:58:31 +02:00
Michael Kerrisk
1f6bc72fde
ld.so.8: Minor fix to description of LD_DEBUG
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-13 12:56:36 +02:00
Michael Kerrisk
533358823c
ld.so.8: Minor fix to description of 'LD_DEBUG=all'
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-13 12:54:43 +02:00
Michael Kerrisk
fe689ea47c
ld.so.8: Rewrite LD_DEBUG_OUTPUT description and note that .PID is appended
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-13 11:33:10 +02:00
Michael Kerrisk
ae5686f6b5
ld.so.8: grfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-10 09:54:20 +02:00
Michael Kerrisk
122f530fe1
ld.so.8: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-10 09:52:17 +02:00
Michael Kerrisk
6eca8decc8
ld.so.8: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-10 09:51:49 +02:00
Michael Kerrisk
3337a4a3e0
ld.so.8: Greatly expand the explanation of LD_DYNAMIC_WEAK
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-09 16:07:39 +02:00
Michael Kerrisk
daad3ee975
ld.so.8: Note version where secure-execution started ignoring LD_USE_LOAD_BIAS
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 16:14:22 +02:00
Michael Kerrisk
ee955285f0
ld.so.8: Correct glibc version that ignores LD_SHOW_AUXV in secure-execution mode
...
Ignored since 2.3.4 (not 2.3.5).
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 16:14:22 +02:00
Michael Kerrisk
24dc407aed
ld.so.8: Since glibc 2.2.5, LD_PROFILE is ignored in secure-execution mode
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 16:14:22 +02:00
Michael Kerrisk
578616fa6e
ld.so.8: Make notes on secure-execute mode more prominent
...
Place each note on secure-execution mode in a separate
paragraph, to make it more obvious.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 14:41:23 +02:00
Michael Kerrisk
8dd4941bce
ld.so.8: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 11:10:37 +02:00
Michael Kerrisk
8fe4dd0885
ld.so.8: Note that libraries in standard directories are not normally set-UID
...
In secure mode, LD_PRELOAD loads only libraries from standard
directories that are marked set-UID. Note that it is unusual for
a library to be marked in this way.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 10:48:19 +02:00
Michael Kerrisk
7c577be56d
ld.so.8: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 10:48:10 +02:00
Michael Kerrisk
be1cf73925
ld.so.8: Minor wording fix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-08 10:45:44 +02:00
Michael Kerrisk
cef5dc279d
ld.so.8: SEE ALSO: add elf(5)
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-05 05:38:39 +02:00
Michael Kerrisk
734882f4c4
_exit.2, alarm.2, chmod.2, clone.2, epoll_ctl.2, fcntl.2, fork.2, fsync.2, getdents.2, getpid.2, ioctl.2, ioctl_console.2, ioctl_list.2, ioctl_ns.2, ioctl_tty.2, ioctl_userfaultfd.2, kexec_load.2, lseek.2, mincore.2, mkdir.2, mknod.2, mmap.2, open.2, poll.2, posix_fadvise.2, prctl.2, rename.2, sched_setaffinity.2, select.2, select_tut.2, sigaction.2, signalfd.2, sigprocmask.2, sigwaitinfo.2, socketcall.2, stat.2, statx.2, syscalls.2, truncate.2, umask.2, unshare.2, userfaultfd.2, utime.2, utimensat.2, wait.2, bzero.3, cfree.3, exit.3, getentropy.3, grantpt.3, insque.3, shm_open.3, syslog.3, termios.3, ttyname.3, wcsdup.3, console_codes.4, tty.4, vcs.4, elf.5, nsswitch.conf.5, proc.5, slabinfo.5, tmpfs.5, bootparam.7, environ.7, hostname.7, inotify.7, mailaddr.7, man-pages.7, namespaces.7, pid_namespaces.7, pthreads.7, pty.7, sem_overview.7, signal.7, socket.7, tcp.7, termio.7, user_namespaces.7, xattr.7, ld.so.8, zdump.8: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-03 19:27:48 +02:00
Michael Kerrisk
a110286b58
ld.so.8: Mention ldconfig(8) in discussion of /etc/ld.so.cache
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-03 07:11:36 +02:00
Michael Kerrisk
95b6bd72bd
ld.so.8: Expand description of /etc/ld.so.preload
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-03 07:09:56 +02:00
Michael Kerrisk
8b2bb70556
ld.so.8: Mention quoting when using "Rpath tokens" in LD_AUDIT and LD_PRELOAD
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-03 07:00:56 +02:00
Michael Kerrisk
99194a09af
ld.so.8: Minor wording fix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-03 05:41:44 +02:00
Michael Kerrisk
376c2e1c0f
ld.so.8: srcfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-05-03 05:37:10 +02:00
Michael Kerrisk
01078c2dec
ld.so.8: tfix: nonstandard API name in NAME section
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-04-25 16:59: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
Michael Kerrisk
31a1b45ece
add_key.2, execve.2, fork.2, fsync.2, getrandom.2, getrlimit.2, getxattr.2, inotify_add_watch.2, ioctl.2, ioctl_fat.2, kcmp.2, keyctl.2, link.2, listxattr.2, lseek.2, madvise.2, mincore.2, mlock.2, nanosleep.2, poll.2, posix_fadvise.2, read.2, readv.2, recv.2, request_key.2, select.2, send.2, setxattr.2, sigaction.2, stat.2, statfs.2, syscall.2, tkill.2, truncate.2, unlink.2, vfork.2, write.2, __ppc_set_ppr_med.3, aio_suspend.3, backtrace.3, bcmp.3, bcopy.3, bzero.3, exec.3, fopen.3, fts.3, ftw.3, getline.3, getmntent.3, getopt.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, memset.3, random.3, random_r.3, resolver.3, scandir.3, scanf.3, sem_post.3, sem_wait.3, setjmp.3, sleep.3, strerror.3, strverscmp.3, system.3, random.4, core.5, intro.5, resolv.conf.5, slabinfo.5, environ.7, ip.7, keyrings.7, man.7, persistent-keyring.7, pipe.7, process-keyring.7, random.7, session-keyring.7, signal-safety.7, signal.7, thread-keyring.7, unix.7, user-keyring.7, user-session-keyring.7, ld.so.8: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-03-13 21:14:49 +01: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
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
e613d016ad
ld.so.8: wrcfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-11-11 09:35:38 +01:00
Michael Kerrisk
b8efb41432
memusage.1, memusagestat.1, pldd.1, accept.2, adjtimex.2, arch_prctl.2, bdflush.2, bpf.2, close.2, epoll_ctl.2, epoll_wait.2, execve.2, execveat.2, fanotify_init.2, fanotify_mark.2, fcntl.2, fsync.2, get_kernel_syms.2, getdomainname.2, getgroups.2, gethostname.2, getrandom.2, getrlimit.2, getrusage.2, getsid.2, getunwind.2, io_getevents.2, ioctl_fat.2, kexec_load.2, killpg.2, listxattr.2, lseek.2, madvise.2, memfd_create.2, mknod.2, mlock.2, modify_ldt.2, msgctl.2, msgget.2, msgop.2, readlink.2, readv.2, reboot.2, recvmmsg.2, rename.2, request_key.2, restart_syscall.2, sched_setaffinity.2, sched_setattr.2, sched_setparam.2, seccomp.2, select_tut.2, semctl.2, semget.2, semop.2, set_thread_area.2, seteuid.2, setgid.2, setpgid.2, setresuid.2, setreuid.2, setsid.2, setuid.2, shmctl.2, shmget.2, shmop.2, sigaction.2, sigprocmask.2, stat.2, symlink.2, syscall.2, sysctl.2, unlink.2, bindresvport.3, byteorder.3, dlopen.3, endian.3, error.3, ffs.3, fmemopen.3, getcwd.3, getlogin.3, getnetent.3, getprotoent.3, getservent.3, getumask.3, getutent.3, glob.3, isalpha.3, lio_listio.3, login.3, mbsinit.3, mbstowcs.3, mbtowc.3, mkstemp.3, nextup.3, ntp_gettime.3, posix_fallocate.3, posix_spawn.3, pthread_join.3, pthread_rwlockattr_setkind_np.3, random.3, rcmd.3, realpath.3, resolver.3, setjmp.3, setnetgrent.3, sigvec.3, strerror.3, strverscmp.3, system.3, toupper.3, towlower.3, towupper.3, wcstombs.3, wordexp.3, cciss.4, loop.4, mouse.4, random.4, core.5, group.5, hosts.5, resolv.conf.5, ascii.7, environ.7, epoll.7, glob.7, ip.7, mq_overview.7, packet.7, pipe.7, raw.7, sched.7, signal.7, socket.7, symlink.7, ld.so.8, sln.8: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-10-08 14:08:23 +02:00
Michael Kerrisk
8e7a186ab8
ld.so.8: Clarify text describing whether secure-mode programs preload libraries
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-15 08:18:21 +02:00
Michael Kerrisk
dc4b358fe0
ld.so.8: Remove mention of "ELF only"
...
Drawing a distinction between ELF-only features versus a,out
ceased to be relevant long ago, so cluttering the page
with "ELF-only" serves no purpose.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 11:28:24 +01:00
Michael Kerrisk
9a741b5b7c
ld.so.8: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 11:27:03 +01:00
Michael Kerrisk
5a7b21d60d
ld.so.8: Remove discussion of environment variables understood by libc5
...
libc5 disappeared long ago, so cease cluttering up this page
with those ancient details. Thus, remove discussion of the
following environment variables: LD_AOUT_LIBRARY_PATH,
LD_AOUT_PRELOAD, LD_KEEPDIR, LD_NOWARN, and LDD_ARGV0.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 11:22:08 +01:00
Michael Kerrisk
d8d00ab7c8
ld.so.8: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 11:19:47 +01:00
Michael Kerrisk
c7cee03767
ld.so.8: Remove text with ancient libc4 and Linux libc details
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 11:13:33 +01:00
Michael Kerrisk
6c0a8674be
ld.so.8: Add glibc version for LD_USE_LOAD_BIAS
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 11:11:12 +01:00
Michael Kerrisk
bdf75f3e20
ld.so.8: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 11:08:05 +01:00
Michael Kerrisk
d81099fbbd
ld.so.8: Expand description of LD_DEBUG
...
Provide a list of the categories, and note that multiple
categories can be specified.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 10:58:42 +01:00
Michael Kerrisk
a3fb56962c
ld.so.8: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-09-11 10:56:42 +01:00
Michael Kerrisk
9f496381ef
clock_getres.2, getrlimit.2, ioctl_fat.2, ioprio_set.2, quotactl.2, core.5, cpuset.7, vdso.7, ld.so.8: tstamp
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-05-09 23:37:59 +02:00
Michael Kerrisk
0a8909c474
ld.so.8: Document use of $ORIGIN, $LIB, and $PLATFORM in environment variables
...
These strings are meaningful in LD_LIBRARY_PATH and LD_PRELOAD.
Reported-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-04-21 14:19:34 +02:00