Page MenuHomeFreeBSD

libsys: Don't create or expose __realpathat
ClosedPublic

Authored by brooks on Tue, Feb 18, 6:38 PM.
Tags
None
Referenced Files
F110713034: D49049.diff
Sat, Feb 22, 5:28 AM
Unknown Object (File)
Wed, Feb 19, 11:13 PM
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