read privateUsers from the closure record at start, and move the data owner option under hive-controller
This commit is contained in:
parent
1fd591d28b
commit
f5a609911c
1 changed files with 208 additions and 97 deletions
|
|
@ -306,21 +306,24 @@ pub async fn write_nspawn_flags(
|
|||
isolation: NetworkIsolation,
|
||||
load_credentials: &[CredentialMount],
|
||||
hive_facts: HiveFacts,
|
||||
private_users: Option<bool>,
|
||||
) -> Result<()> {
|
||||
ok(call(&PrivRequest::WriteNspawnFlags {
|
||||
container: container.to_owned(),
|
||||
binds: binds.to_vec(),
|
||||
isolation,
|
||||
load_credentials: load_credentials.to_vec(),
|
||||
hive_facts,
|
||||
hive_facts: Box::new(hive_facts),
|
||||
private_users,
|
||||
})
|
||||
.await?)
|
||||
}
|
||||
|
||||
/// See [`PrivRequest::EnsureAgentSocketDir`].
|
||||
pub async fn ensure_agent_socket_dir(name: &str) -> Result<()> {
|
||||
pub async fn ensure_agent_socket_dir(name: &str, private_users: Option<bool>) -> Result<()> {
|
||||
ok(call(&PrivRequest::EnsureAgentSocketDir {
|
||||
name: name.to_owned(),
|
||||
private_users,
|
||||
})
|
||||
.await?)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue