login: add missing NoSessionPIDFD error to io.systemd.Login IDL

The error is emitted by vl_method_create_session() when the session leader
process does not have a pidfd available, but was never declared in the IDL.

Fixes: 3180c4d461
This commit is contained in:
noxiouz
2026-03-02 10:08:57 +00:00
parent 3eacf0d321
commit 3d54a40dae
+4 -1
View File
@@ -94,6 +94,7 @@ static SD_VARLINK_DEFINE_ERROR(AlreadySessionMember);
static SD_VARLINK_DEFINE_ERROR(VirtualTerminalAlreadyTaken);
static SD_VARLINK_DEFINE_ERROR(TooManySessions);
static SD_VARLINK_DEFINE_ERROR(UnitAllocationFailed);
static SD_VARLINK_DEFINE_ERROR(NoSessionPIDFD);
SD_VARLINK_DEFINE_INTERFACE(
io_systemd_Login,
@@ -120,4 +121,6 @@ SD_VARLINK_DEFINE_INTERFACE(
SD_VARLINK_SYMBOL_COMMENT("Maximum number of sessions reached"),
&vl_error_TooManySessions,
SD_VARLINK_SYMBOL_COMMENT("Failed to allocate a unit for the session"),
&vl_error_UnitAllocationFailed);
&vl_error_UnitAllocationFailed,
SD_VARLINK_SYMBOL_COMMENT("The session leader process does not have a pidfd"),
&vl_error_NoSessionPIDFD);