summaryrefslogtreecommitdiffstats
path: root/units/systemd-creds.socket
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-11-23 22:22:27 +0100
committerLennart Poettering <lennart@poettering.net>2023-12-21 19:19:12 +0100
commit644f19c75c40e74e83e1e5f0f0b2eb5195f9d09b (patch)
treef879232f8c1bf3066ded5f636ac698c4e2200ac9 /units/systemd-creds.socket
parentvarlink: add helper varlink_error_invalid_parameter_name() (diff)
downloadsystemd-644f19c75c40e74e83e1e5f0f0b2eb5195f9d09b.tar.xz
systemd-644f19c75c40e74e83e1e5f0f0b2eb5195f9d09b.zip
creds: add varlink API for encrypting/decrypting credentials
Diffstat (limited to 'units/systemd-creds.socket')
-rw-r--r--units/systemd-creds.socket23
1 files changed, 23 insertions, 0 deletions
diff --git a/units/systemd-creds.socket b/units/systemd-creds.socket
new file mode 100644
index 0000000000..794fac19a8
--- /dev/null
+++ b/units/systemd-creds.socket
@@ -0,0 +1,23 @@
+# 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=Credential Encryption/Decryption (Varlink)
+Documentation=man:systemd-creds(1)
+DefaultDependencies=no
+Before=sockets.target
+
+[Socket]
+ListenStream=/run/systemd/io.systemd.Credentials
+FileDescriptorName=varlink
+SocketMode=0600
+Accept=yes
+
+[Install]
+WantedBy=sockets.target