]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/homed-home-bus.c
homed: add a ActivateHomeIfReferenced() bus call
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Nov 2023 16:05:54 +0000 (17:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Feb 2024 14:04:15 +0000 (15:04 +0100)
commit336b1f1936ffbc62fa2cb189d8f86fbd982dcf15
tree6a2c5959f775804cefb027482ce927fd8575b797
parent508d344e0e95667c27df2ffbf23a928d97a07bb1
homed: add a ActivateHomeIfReferenced() bus call

This is very similar to ActivateHome() but will fail if the home
directory is not referenced yet. Or in other words, this doesn't add any
new reference, but simply is the other side of RefUnrestricted(): if we
allowed a home dir to be referenced without it actually being active,
then this can catch up with things and activated what was previously
referenced already.

This also relaxes access rights to that users can always activate their
own home dirs. This is useful once we allow user code to run without the
home dir being activated.
src/home/homed-home-bus.c
src/home/homed-home.c
src/home/homed-home.h
src/home/homed-manager-bus.c
src/home/org.freedesktop.home1.conf
src/home/org.freedesktop.home1.policy
src/libsystemd/sd-bus/bus-common-errors.c
src/libsystemd/sd-bus/bus-common-errors.h