News for hackers. Stuff that matters.
Re:When you deleted /lib on Linux while still connected via SSH by ryao on Saturday March 22, 2025 @01:30PM (#43447288)
It is more nuanced than that. First, the Solaris 11.4 documentation says that this is not allowed:

https://docs.oracle.com/cd/E88353_01/html/E72487/link-8.html

The illumos man page is less clear:

https://illumos.org/man/8/link

The illumos ZFS driver makes it very clear that this is not allowed under POSIX in a comment and explicitly disallows it in zfs_link():

https://github.com/illumos/illumos-gate/blob/master/usr/src/...

However, It appears that the illumos UFS driver supports this:

https://github.com/illumos/illumos-gate/blob/master/usr/src/...

Presumably, the Solaris 10 UFS driver also supports it (or supported it in older versions of Solaris 10). Given that someone at Oracle likely modified the Solaris man page to differ from the older OpenSolaris man page in illumos, I would expect recent versions of Solaris to disallow this on UFS, but someone would need to check.

That said, I have to recant my previous comment. smw likely linked the directory, which is insane, but would have worked on older Solaris versions if we assume the modern illumos UFS driver is unchanged in this regard.

There are no comments on this comment yet.