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)
Sun, Oct 12, 6:01 AM
Unknown Object (File)
Sun, Oct 5, 8:23 PM
Unknown Object (File)
Sun, Oct 5, 1:50 PM
Unknown Object (File)
Sun, Oct 5, 12:56 PM
Unknown Object (File)
Fri, Sep 26, 2:32 PM
Unknown Object (File)
Thu, Sep 25, 8:35 PM
Unknown Object (File)
Thu, Sep 25, 11:45 AM
Unknown Object (File)
Tue, Sep 23, 1:01 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