tmpfiles: clean up hardlinks_vulnerable a bit
authorMike Yuan <me@yhndnzj.com>
Fri, 10 May 2024 09:53:44 +0000 (17:53 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 10 May 2024 10:50:05 +0000 (18:50 +0800)
commit570c940d422a8fcad3e23cf20ad8d28b9c20ee0f
treeaf9f84c29ac0e769e77369e6dfc7907d8b7421b7
parent1df2c9a59742d9d044cedd5c4814ce0426f6d389
tmpfiles: clean up hardlinks_vulnerable a bit

dangerous_hardlinks() -> hardlinks_protected(),
and the meaning of the function is now in line
with fs.protected_hardlinks value.

Plus, We ship 50-default.conf where the sysctl
is enabled. Mention it in the comment.
src/tmpfiles/tmpfiles.c