Doing chattr +i prevents hardlink creation. That is intrinsically a better
approach than having applications like rpm(8) and rm(1) and ... attempt
to detect and remove hardlinks.
As you have seen with linkat and /proc/self/fd testing st->st_nlink is not
enough.
Doing chattr +i prevents hardlink creation. That is intrinsically a better
approach than having applications like rpm(8) and rm(1) and ... attempt
to detect and remove hardlinks.
As you have seen with linkat and /proc/self/fd testing st->st_nlink is not
enough.