aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/paths.h
Commit message (Collapse)AuthorAgeFilesLines
* rtld-elf/paths.h: Make it usable outside rtldKonstantin Belousov2021-10-211-78/+0
| | | | | | | | | | | | | but still for tightly coupled things like ldd(1) Rename paths.h to rtld_paths.h. Add guard for rtld-specific externs declarations. Add _COMPAT32_BASENAME_RTLD and _COMPAT32_PATH_RTLD. Reviewed by: arichardson, jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32464
* rtld-elf: compile with WANRS=4 warnings other than -Wcast-alignAlex Richardson2018-10-291-5/+5
| | | | | | | | | Reviewed By: kib Approved By: brooks (mentor) Differential Revision: https://reviews.freebsd.org/D17153 Notes: svn path=/head/; revision=339878
* Make sure the rtld(1) error messages go to stderr, not stdout.Edward Tomasz Napierala2018-08-021-2/+6
| | | | | | | | | | | | | | While here fix capitalization of a few nearby strings, add the rtld's file name prefix so it's obvious where the message come from, and return zero when "-h" is used. Reviewed by: kib MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16530 Notes: svn path=/head/; revision=337067
* Convert casperd(8) daemon to the libcasper.Mariusz Zaborski2016-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | After calling the cap_init(3) function Casper will fork from it's original process, using pdfork(2). Forking from a process has a lot of advantages: 1. We have the same cwd as the original process. 2. The same uid, gid and groups. 3. The same MAC labels. 4. The same descriptor table. 5. The same routing table. 6. The same umask. 7. The same cpuset(1). From now services are also in form of libraries. We also removed libcapsicum at all and converts existing program using Casper to new architecture. Discussed with: pjd, jonathan, ed, drysdale@google.com, emaste Partially reviewed by: drysdale@google.com, bdrewery Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D4277 Notes: svn path=/head/; revision=296047
* Restore ABI variants now that ldconfig groks -soft. In addition, as aWarner Losh2016-01-181-1/+1
| | | | | | | | | | transition mechanism, if we don't have /usr/libsoft, assume that soft float ABI binaries are the default, so treat them as default binaries. When we've fully transitioned, it will make no sense to do this stat, and it will be removed. Notes: svn path=/head/; revision=294296
* Create a generalized exec hook that different architectures can hookWarner Losh2016-01-031-3/+7
| | | | | | | | | into if they need to, but default to no action. Differential Review: https://reviews.freebsd.org/D2718 Notes: svn path=/head/; revision=293066
* Rather than using the #define for path names, indirect through a char *Warner Losh2015-10-311-0/+6
| | | | | | | variable that could change for different executable types detected. Notes: svn path=/head/; revision=290223
* Move all the paths into a new path.h to centralize them.Warner Losh2015-10-311-0/+64
Notes: svn path=/head/; revision=290222