|
@ -115,12 +115,8 @@ impl<D: Clone> ImplementationBuilder<Cert<D>> for DefaultBuilder { |
|
|
)
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
type Implementation = CertSymbol<
|
|
|
|
|
|
SetuidCommandRunner<'static, String, StdCommandRunner>,
|
|
|
|
|
|
SetuidCommandRunner<'static, String, StdCommandRunner>,
|
|
|
|
|
|
D,
|
|
|
|
|
|
PathBuf,
|
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
type Implementation =
|
|
|
|
|
|
CertSymbol<SetuidCommandRunner<String>, SetuidCommandRunner<String>, D, PathBuf>;
|
|
|
fn create(
|
|
|
fn create(
|
|
|
resource: &Cert<D>,
|
|
|
resource: &Cert<D>,
|
|
|
target: &<Cert<D> as Resource>::Artifact,
|
|
|
target: &<Cert<D> as Resource>::Artifact,
|
|
@ -128,7 +124,7 @@ impl<D: Clone> ImplementationBuilder<Cert<D>> for DefaultBuilder { |
|
|
) -> Self::Implementation {
|
|
|
) -> Self::Implementation {
|
|
|
CertSymbol::new(
|
|
|
CertSymbol::new(
|
|
|
resource.0.clone(),
|
|
|
resource.0.clone(),
|
|
|
SetuidCommandRunner::new(user_name.0, &StdCommandRunner),
|
|
|
|
|
|
|
|
|
SetuidCommandRunner::new(user_name.0),
|
|
|
root_cert.into(),
|
|
|
root_cert.into(),
|
|
|
account_key.into(),
|
|
|
account_key.into(),
|
|
|
challenges_dir.into(),
|
|
|
challenges_dir.into(),
|
|
@ -448,7 +444,7 @@ impl<D, P: AsRef<Path>> ImplementationBuilder<SystemdSocketService<D, P>> for De |
|
|
FileSymbol<PathBuf, String>,
|
|
|
FileSymbol<PathBuf, String>,
|
|
|
SystemdUserSessionSymbol<'static, String, StdCommandRunner>,
|
|
|
SystemdUserSessionSymbol<'static, String, StdCommandRunner>,
|
|
|
OwnerSymbol<StdCommandRunner, StdCommandRunner, PathBuf, String>,
|
|
|
OwnerSymbol<StdCommandRunner, StdCommandRunner, PathBuf, String>,
|
|
|
UserServiceSymbol<'static, PathBuf, String, StdCommandRunner>,
|
|
|
|
|
|
|
|
|
UserServiceSymbol<'static, PathBuf, String>,
|
|
|
);
|
|
|
);
|
|
|
fn create(
|
|
|
fn create(
|
|
|
resource: &SystemdSocketService<D, P>,
|
|
|
resource: &SystemdSocketService<D, P>,
|
|
@ -475,12 +471,7 @@ impl<D, P: AsRef<Path>> ImplementationBuilder<SystemdSocketService<D, P>> for De |
|
|
user_name.0.clone(),
|
|
|
user_name.0.clone(),
|
|
|
StdCommandRunner,
|
|
|
StdCommandRunner,
|
|
|
),
|
|
|
),
|
|
|
UserServiceSymbol::new(
|
|
|
|
|
|
socket_path.clone().into(),
|
|
|
|
|
|
user_name.0.clone(),
|
|
|
|
|
|
resource.1,
|
|
|
|
|
|
&StdCommandRunner,
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
UserServiceSymbol::new(socket_path.clone().into(), user_name.0.clone(), resource.1),
|
|
|
)
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|