RPM

Comment 19 for bug 634183

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

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.