Zucca wrote:Since you dug this topic up let's talk about this again with today's perspective.
K_Brown wrote:If the gentoo user is choosing to avoid systemd because of any reason, any systemd mandatory compatibility is an issue. Specially with flawed insecure designs like systemd's tmpfiles.
hadened-tmpfiles is deliberately not compatible with systemd-tmpfiles because of bad security design, It's a not fully compatible replacement.
I'd try it but If I need to manually edit many tmpfiles config files, I'll pass.
You don't need to manually edit many tmpfiles, hopefully none. Only the ones doing risky things could be broken, but in such case, it should be worh looking into it to understand why such specific tmpfiles is generating insecure conditions.
Zucca wrote:But what's the flawed design part you talk about? Is it still here today?
It's still there. It allows for any package maintainer to to set wrong rules potentially damaging the system or creating unnecessary risk.
I am not thinking on package maintainers sabotaging on purpose, but trojaned pipelines have already happened in the past and wull continue happening. Nothing prevents an undetected trojaned pipeline to use tmpfiles' power to weaken the security or even provoke big damage on the system. Some checks on haredenedtmpfiles so prevent some kinds of security weakening or unwanted deletion, without breaking existing tmpfiles entries that only mess with their own files and paths.
Zucca wrote:I've been happily living with systemd-utils. Those utils are separate from systemd (the init system), so I haven't bothered to even try to change. Same appllies to udev (also comes from systemd-utils). I used eudev at some point, but my custom udev rules failed with eudev and it was impossible for me to get working with eudev.
You have been happily living in a comfort zone. I don't care about your live neither about your particular comfort cases.
What I care about is for the users who are a little more security concious and «better fail than corrupting», to have a choice. The choice to use a different tmpfiles other than systemd's.
Choice is already there, two years in UPSTREAM. There's no reason to keep refusing it, regardless of any comfort use cases where people are happily living in Candyland.
Zucca wrote:Personally I'm fine using systemd-utils, but if there's a serious security hole somewhere there and maintainers aren't willing to fix it or I cannot simply avoid it... I start to look for alternatives.