HomeFreeBSD

libsys: Don't create or expose __realpathat

Description

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 58d43a3cd72a4a85ab8489313672c7eab367495e.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D49049

Details

Provenance
brooksAuthored on Feb 19 2025, 4:53 PM
Reviewer
kib
Differential Revision
D49049: libsys: Don't create or expose __realpathat
Parents
rG7f8a5c5a1585: upgt: Deprecate ancient 802.11b/g driver
Branches
Unknown
Tags
Unknown