[neither systemd or procps maintainer here]

* Daniel Feuchtinger <[email protected]> [211221 11:14]:
> The packages procps contains the file /usr/lib/sysctl.d/protect-links.conf 
> with the line
> "fs.protected_regular = 2" that is loaded after /etc/sysctl.conf and breaks 
> the fix.
> 
> If I remove / alter the file in /usr/lib/sysctl.d, it may be overwritten with 
> the next update.
> 
> I don't know who's to blaim, systemd not loading the files in a sensible 
> order or
> procps for putting the file in the wrong place? I suspect it's systemd, 
> /etc/* should
> override /usr/* ?

systemd-sysctl uses the common logic for systemd-related config
files: if you want to override /usr/lib/sysctl.d/protect-links.conf,
you must do so in a file named /etc/sysctl.d/protect-links.conf .

You can then verify this will work by checking the output of
  /lib/systemd/systemd-sysctl --cat-config

HTH,
Chris

Reply via email to