We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97aca7c commit cef2016Copy full SHA for cef2016
1 file changed
bin/styrojail.rs
@@ -157,7 +157,8 @@ fn main() -> Result<()> {
157
.set_uid(uid)
158
.set_gid(gid)
159
.set_setgroups_deny(true)
160
- .set_workload_id("styrojail")
+ .set_working_directory(std::env::current_dir()?.as_os_str().to_str().unwrap_or("/"))
161
+ .set_workload_id(format!("styrojail-{}", std::process::id()).as_str())
162
.push_uid_mapping(IdMapping {
163
base_nsid: uid,
164
base_hostid: uid,
0 commit comments