mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
private-home: create directories as the user
This commit is contained in:
parent
1a69bb3156
commit
6c4c3ffeca
1 changed files with 1 additions and 1 deletions
|
|
@ -518,7 +518,7 @@ static void duplicate(char *name) {
|
|||
ptr++;
|
||||
if (asprintf(&path, "%s/%s", RUN_HOME_DIR, ptr) == -1)
|
||||
errExit("asprintf");
|
||||
mkdir_attr(path, 0755, getuid(), getgid());
|
||||
create_empty_dir_as_user(path, 0755);
|
||||
sbox_run(SBOX_USER| SBOX_CAPS_NONE | SBOX_SECCOMP, 3, PATH_FCOPY, fname, path);
|
||||
free(path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue