mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 22:01:33 -06:00
bug: /home/user is mounted with noexec when --private is used #6921
This commit is contained in:
parent
e478e576ba
commit
06fe85f4b7
1 changed files with 2 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ void fs_private_homedir(void) {
|
|||
|
||||
if (!arg_keep_shell_rc)
|
||||
skel(homedir);
|
||||
if (xflag)
|
||||
if (xflag)
|
||||
copy_xauthority();
|
||||
if (aflag)
|
||||
copy_asoundrc();
|
||||
|
|
@ -395,7 +395,7 @@ void fs_private(void) {
|
|||
if (!arg_allusers) {
|
||||
if (arg_debug)
|
||||
printf("Mounting a new /home directory\n");
|
||||
if (mount("tmpfs", "/home", "tmpfs", MS_NOSUID | MS_NODEV | MS_NOEXEC | MS_STRICTATIME, "mode=755,gid=0") < 0)
|
||||
if (mount("tmpfs", "/home", "tmpfs", MS_NOSUID | MS_NODEV | MS_STRICTATIME, "mode=755,gid=0") < 0)
|
||||
errExit("mounting /home directory");
|
||||
selinux_relabel_path("/home", "/home");
|
||||
fs_logger("tmpfs /home");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue