Age | Commit message (Collapse) | Author |
|
- copy #define workaround from mips64 to avoid dangling __CERROR symbol
- remove trap DL_SYSCALL2_NOERR() macro with comment explanation
- make DL_SYSCALL2() self-contained
- add END() and ENTRY() macros to make the symbol table shine
ok miod@
|
|
ok aoyama@
|
|
probably works: this ASM pattern is already used for _dl_dtors
|
|
changes - map the previous configuration to the equivalent in the new
groups. This will be revisited post release.
Discussed with beck@
|
|
for our development process.
ok kettenis@ deraadt@
|
|
ok guenther@, deraadt@
|
|
mprotect it to RW when filling in the references from the PLT
in snaps for a week, ok deraadt@
|
|
ok millert@
|
|
possible EXEC permission for the section, because the proper permission
is set late, and there are no thread concerns here. Avoids W^X issues
in oddball cases.
ok guenther kettenis
|
|
ok kettenis guenther
|
|
if DT_TEXTREL was set on the object. If that's needed, only set the mapping
to READ+WRITE to avoid W^X violation.
ok kettenis@
|
|
ok kettenis@
|
|
avoid W^X violations, initially map such segments as writable and
non-executable, and change the mapping to non-writable and executable
after initial relocation processing. As a side-benefit this means we no
longer depend on the __plt_start and __plt_end to make the PLT read-only
after relocation processing.
This will break binaries linked with ld -Z, most notably emacs, on some
of our architectures.
ok deraadt@, guenther@
|
|
ok deraadt@
|
|
Ignore the listed protection (which may contain X) when making page
writeable temporary.
|
|
writeable temporary.
As pointed out by kettenis, discussed with guenther
|
|
ok guenther
|
|
or doing non-lazy relocation processing.
ok guenther@
|
|
the TIB for a new thread
ok jca@ millert@ deraadt@
|
|
so do locking in ld.so's malloc subsystem, (re)using the existing
_dl_thread_kern_{stop,go}() callbacks.
problem diagnosed by jsing@ in the 'go' port; fix tested there and by
semarie@ in the 'rust' port
|
|
ok guenther
|
|
|
|
|
|
hppa reverse-stack gives us a valuable test case, but most developers don't
have a 2nd one to proceed further with this.
ok kettenis
|
|
ok deraadt@
|
|
This stores errno, the cancelation flags, and related bits for each thread
and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!
Make libpthread dlopen'able by moving the cancelation wrappers into libc
and doing locking and fork/errno handling via callbacks that libpthread
registers when it first initializes. 'errno' *must* be declared via
<errno.h> now!
Clean up libpthread's symbol exports like libc.
On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.
Testing by various, particularly sthen@ and patrick@
ok kettenis@
|
|
Prompted by and ok millert@
(tcpdump and libpcap left untouched, the #ifdef force is too strong with
those)
|
|
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still
kept.
OK semarie@ "it is time now"
|
|
This is needed since getpass(3) calls readpassphrase(3) which in turn tries
to open(2) a tty in O_RDWR mode
Problem reported by Kevin Chadwick <m8il1ists ! gmail.com>
Cluebat stick provided by deraadt@, OK millert@
|
|
ids, it clarifies these are full revocation situations.
ok millert
|
|
From fritjof () alokat ! org, thanks!
ok semarie@
|
|
|
|
from fritjof ! alokat.org
ok ratchov@ natano@
|
|
keep stdio from opening with O_CREAT which would require pledge cpath.
|
|
Bug reported by Christian Heckendorf <mbie at ulmus dot me>, patch by me.
OK jmc@ bentley@
|
|
correctly - logically complete that now by removing MLINKS from base;
authors need only to ensure there is an entry in NAME for any function/
util being added. MLINKS will still work, and remain for perl to ease
upgrades;
ok nicm (curses) bcook (ssl)
ok schwarze, who provided a lot of feedback and assistance
ok tb natano jung
|
|
the program
- Add error message to syslog if privdrop didn't succeed and then exit
- Remove lint comments
OK beck@ after his suggestion and also looks good to jca@
|
|
with strong symbols in ld.so don't do what we need, so put definitions back
in crt0 and make ld.so update __progname like it does environ.
report and testing patrick@ jsg@
|
|
as osendsyslog for a while. The three argument variant is the only
one that will stay.
input kettenis@; OK deraadt@
|
|
namespace, for use by libpthread
ok deraadt@
|
|
and pass the LOG_CONS flag like libc's handler.
ok deraadt@ bluhm@ (who had a similar diff)
|
|
portion like crt0 does. This is prep for eliminating _dl_fixup_user_env()
Mark almost everything in resolve.h as hidden, to improve code generation.
ok kettenis@ mpi@ "good time" deraadt@
|
|
Feedback millert@ kettenis@
|
|
program early
- #define SPAMD_USER "_spamd" and use it on getpwnam(3) call
- Set usage() as __dead void
- Remove lint-style comments
OK beck@
|
|
- check for root privileges, otherwise exit early with an appropriate
status code and a formatted string;
- be more specific with chroot()/chdir() checks.
OK beck@
|
|
|
|
|
|
rpath: fopen(3) _PATH_UTMP in read mode
wpath/cpath: fopen(3) full_tty in write mode (w), which implies O_CREAT
inet/dns: the intervening hosts in the conversation may be remote, or not, but
since we will never know beforehand then it'll always need inet and dns to
resolve the hostnames
ok jca@ and also discussed with tb@
|
|
OK tb@
|
|
load time only nwo. Rename _dl_searchnum and lastlookup to _dl_grpsym_gen
and grpsym_gen as they are generation numbers. Merge _dl_newsymsearch()
into _dl_cache_grpsym_list_setup().
ok millert@
|