[Pkg-systemd-maintainers] Bug#722524: Bug#722524: bug script for systemd fails if it doesn't have root permissions

Michael Stapelberg stapelberg at debian.org
Thu Sep 12 06:08:17 BST 2013


control: tags -1 + pending

Hi Michael,

Michael Biebl <biebl at debian.org> writes:
> On second though, I'd say this is a bug in init-system-helpers. It
> should create those files as readable to unpriviledged users. Those
> files don't have confidential information which aren't readable anyway
> by looking at /etc/systemd/, so I think making those files 644 instead
> of 600 is a safe thing to do.
>
> Interestingly enough, looking at
> /var/lib/systemd/deb-systemd-helper-enabled, some older files are 644,
> newer ones are 600. So this seems to be a recent change.
>
> Thus reassigning to i-s-h.
Good catch! Our switch to using File::Temp for making the
modifications atomic has caused this — the File::Temp module explicitly
chmods the files to 0600.

This is fixed in commit
http://anonscm.debian.org/gitweb/?p=collab-maint/init-system-helpers.git;a=commitdiff;h=6e2b55bf26be1c22cec367c42099c5cee4d58325

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list