From: noxiouz Date: Mon, 2 Mar 2026 10:04:48 +0000 (+0000) Subject: login: add missing NoSessionPIDFD error to io.systemd.Login IDL X-Git-Tag: v260-rc2~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d54a40daec6e5bcfbf12c9d0ef2e3cf947d9f07;p=thirdparty%2Fsystemd.git 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: 3180c4d46151673a9c985e60f205d4c76a81573f --- diff --git a/src/shared/varlink-io.systemd.Login.c b/src/shared/varlink-io.systemd.Login.c index cf09d182866..9a07155ef20 100644 --- a/src/shared/varlink-io.systemd.Login.c +++ b/src/shared/varlink-io.systemd.Login.c @@ -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);