Skip to content

With systemd-logind: journald reading logind session files denied #1048

Description

@dtmuller

Hi.

I'm using refpolicy 2.20250213 and systemd 257.4 from Yocto Walnascar.

When running systemd-logind I get denials for journald reading logind session files:

type=AVC msg=audit(1764847985.438:60): avc:  denied  { read } for  pid=728 comm="systemd-journal" name="sessions" dev="tmpfs" ino=816 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:systemd_sessions_runtime_t:s0 tclass=dir permissive=0
type=AVC msg=audit(1764847989.924:68): avc:  denied  { read } for  pid=728 comm="systemd-journal" name="sessions" dev="tmpfs" ino=816 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:systemd_sessions_runtime_t:s0 tclass=dir permissive=0

I can fix those by adding to logging.te:

systemd_read_logind_sessions_files(syslogd_t)

Could you please verify and if applicable add this rule?

Thanks,
Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions