mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
libsys: Don't create or expose __realpathat
Previously, __realpathat was in libc and libsys (as is currently
standard), but not exported from libc which meant the stub in libc was
not filtered and thus libc's copy of the syscall was used. This broke
an upcoming change to CheriBSD limiting syscalls to libsys.
The realpath(3) implementation now uses __sys___realpathat so there are no
consumers of __realpathat. Switch it to PSEUDO (only _foo and __sys_foo
symbols) and remove __realpathat from Symbol.map.
This is a corrected version of 58d43a3cd7.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D49049
This commit is contained in:
parent
7f8a5c5a15
commit
cdb24fbb0a
3 changed files with 2 additions and 2 deletions
|
|
@ -50,6 +50,7 @@ STATICOBJS+= interposing_table.o
|
|||
.endif
|
||||
|
||||
PSEUDO= \
|
||||
__realpathat \
|
||||
clock_gettime \
|
||||
exit \
|
||||
getlogin \
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ FBSDprivate_1.0 {
|
|||
__libsys_errno;
|
||||
__getosreldate;
|
||||
__libsys_interposing_slot;
|
||||
__realpathat;
|
||||
_elf_aux_info;
|
||||
freebsd11_fstat;
|
||||
freebsd11_fstatat;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ _libc_other_objects= sigsetjmp lstat stat fstat fstatat fstatfs syscall \
|
|||
sysarch __sysctl issetugid __getcwd utrace getpid \
|
||||
thr_self thr_kill pread mmap lseek _exit \
|
||||
getdirentries _close _fcntl _open _openat _read \
|
||||
_sigprocmask _write readlink __realpathat _setjmp setjmp setjmperr
|
||||
_sigprocmask _write readlink ___realpathat _setjmp setjmp setjmperr
|
||||
|
||||
|
||||
# Finally add additional architecture-dependent libc dependencies
|
||||
|
|
|
|||
Loading…
Reference in a new issue