mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
privilege dropping: actually set group, default to "nogroup"
This commit is contained in:
parent
6f30d05453
commit
02ba4ec922
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ impl Default for PrivilegeConfig {
|
|||
drop_privileges: false,
|
||||
chroot_path: ".".into(),
|
||||
user: "nobody".to_string(),
|
||||
group: "nobody".to_string(),
|
||||
group: "nogroup".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -51,7 +51,7 @@ impl PrivilegeDropper {
|
|||
if self.barrier.wait().is_leader() {
|
||||
PrivDrop::default()
|
||||
.chroot(self.config.chroot_path.clone())
|
||||
.user(self.config.user.clone())
|
||||
.group(self.config.group.clone())
|
||||
.user(self.config.user.clone())
|
||||
.apply()
|
||||
.expect("drop privileges");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue