In NixOS, we need to canonicalize symlinks all the time before we transition from the initrd to userspace. We currently chroot and then call realpath. It would be awesome if we could use this library instead.
Is something like root.realpath (similar to root.readlink) feasible or is it inherently insecure?