core: add SetCredentials{,Encrypted} to varlink Unit.StartTransient

This commit adds support to set `SetCredentials` and
`SetCredentialsEncrypted` in the `io.systemd.Unit.StartTransient`
varlink call.
This commit is contained in:
Michael Vogt
2026-05-13 19:28:35 +02:00
parent 045d08e417
commit de2ad965c2
3 changed files with 141 additions and 6 deletions
+4 -3
View File
@@ -1184,9 +1184,10 @@ static SD_VARLINK_DEFINE_STRUCT_TYPE(
SD_VARLINK_DEFINE_FIELD(parameter, SD_VARLINK_STRING, SD_VARLINK_NULLABLE));
/* UnitContext is used both as input to StartTransient (subset settable at creation time: ID,
* Description, Service, and the Exec subset {WorkingDirectory, Environment}) and as output from
* List/StartTransient (full unit configuration). Fields that are not settable at creation time are
* rejected with PropertyNotSupported when supplied as input. */
* Description, Service, and the Exec subset {WorkingDirectory, Environment, SetCredential,
* SetCredentialEncrypted}) and as output from List/StartTransient (full unit configuration). Fields
* that are not settable at creation time are rejected with PropertyNotSupported when supplied as
* input. */
static SD_VARLINK_DEFINE_STRUCT_TYPE(
UnitContext,
SD_VARLINK_FIELD_COMMENT("The unit type"),