# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2009 Novell/SUSE
#    Copyright (C) 2009 Canonical Ltd.
#    Copyright (C) 2025 Christian Boltz
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of version 2 of the GNU General Public
#    License published by the Free Software Foundation.
#
# ------------------------------------------------------------------

  abi <abi/4.0>,

  # some services update wtmp, utmp, and lastlog with per-user
  # connection information
  /var/lib/lastlog/lastlog2.db{,-journal} rwlk,
  /var/lib/wtmpdb/    r,
  /var/lib/wtmpdb/wtmp.db{,-journal} rwlk,
  /var/log/lastlog    rwk,
  /var/log/wtmp{,.db} rwk,
  /var/log/btmp       rwk,
  @{run}/utmp         rwk,

  # Some read the list of sessions from systemd
  /run/systemd/sessions/ r,

  # Include additions to the abstraction
  include if exists <abstractions/wutmp.d>
