]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add LUOSession= unit setting 42530/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 14 Apr 2026 14:22:34 +0000 (15:22 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 17 Jun 2026 12:11:15 +0000 (13:11 +0100)
commit82b8615463c306f8f7eeaec13600c89a7bbef151
tree93bbc9c734da182a0b528f4737f7dffae895367b
parent9404fa70df5afb747ee4610506a49ae4401069c4
core: add LUOSession= unit setting

Acquiring a LUO session from /dev/liveupdate requires privileges,
and also the device is a single-owner driver so only a single
process can open it at any given time.

Add a LUOSession= service settings that allows units running
without privileges to get a session assigned to them.

The kernel imposes a 64 chars limit on session names, which is
too short to avoid clashes, so derive a hash from joining the
unit name with the parameter name, that way two units using
the same setting don't clash.
13 files changed:
man/org.freedesktop.systemd1.xml
man/systemd.service.xml
src/core/dbus-service.c
src/core/load-fragment-gperf.gperf.in
src/core/load-fragment.c
src/core/load-fragment.h
src/core/service.c
src/core/service.h
src/shared/bus-unit-util.c
src/shared/luo-util.c
src/shared/luo-util.h
src/test/test-luo.c
test/units/TEST-91-LIVEUPDATE.sh