Bug#834228: systemd: /run/utmp is created with the wrong SE Linux context

Felipe Sateler fsateler at debian.org
Sun Aug 14 16:45:46 BST 2016

Control: tags -1 moreinfo

On 13 August 2016 at 09:37, Russell Coker <russell at coker.com.au> wrote:
> Package: systemd
> Version: 231-1
> Severity: normal
> Tags: upstream
> The file /run/utmp is created with the wrong type on SE Linux systems.  The
> program that creates is should either run restorecon or have internal code
> to set the correct context (as most of systemd does).
> I think it's being created by /lib/systemd/systemd-update-utmp but I'm not
> certain.

It is created by tmpfiles.d. Could you test if adding the following
line to /usr/lib/tmpfiles.d/systemd.conf fixes the issue?

z /run/utmp 0664 root utmp - -

Add this after the line that creates the file.

> I can provide access to a virtual machine for testing this if you wish.

I have no idea on how to tell if the fix was successful or not.


Felipe Sateler

More information about the Pkg-systemd-maintainers mailing list