Page MenuHomeFreeBSD

libsys: Don't create or expose __realpathat
ClosedPublic

Authored by brooks on Feb 18 2025, 6:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 8, 12:35 PM
Unknown Object (File)
Sat, Apr 5, 1:23 PM
Unknown Object (File)
Mar 15 2025, 8:39 AM
Unknown Object (File)
Mar 12 2025, 11:24 AM
Unknown Object (File)
Mar 2 2025, 7:03 PM
Unknown Object (File)
Mar 2 2025, 12:25 PM
Unknown Object (File)
Feb 28 2025, 4:02 PM
Unknown Object (File)
Feb 27 2025, 11:26 AM
Subscribers

Details

Summary

Previously, __realpathat was in libsys, 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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable