This is supposed to be useful to mark an interactive user login as a "break glass" event in the measurement logs, i.e. as in many typically headless scenerios this indicates debug access or similar.
25 lines
791 B
Plaintext
25 lines
791 B
Plaintext
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=TPM NvPCR Measurement of User Record for UID %i
|
|
Documentation=man:systemd-pcrlogin@.service(8)
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
After=tpm2.target systemd-pcrnvdone.service
|
|
Before=shutdown.target
|
|
RequiresMountsFor=/var/lib/systemd/nvpcr
|
|
ConditionPathExists=!/etc/initrd-release
|
|
ConditionSecurity=measured-os
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart={{LIBEXECDIR}}/systemd-pcrextend --graceful --login=%i
|