diff options
| author | Hans Dedecker | 2018-11-23 11:02:45 +0000 |
|---|---|---|
| committer | Hans Dedecker | 2018-11-23 12:31:08 +0000 |
| commit | d6673547adc3768ce674799fa35952351866c9d0 (patch) | |
| tree | c1dab48be034682447c900093d8fdd1275ff5b11 | |
| parent | 20192e47619861285fe66f1c72c8f1c2583fc0e6 (diff) | |
| download | procd-d6673547adc3768ce674799fa35952351866c9d0.tar.gz | |
early: set /tmp permissions explicitly
In case ramfs is used as tmpfs it creates /tmp with permissions 755
which are the the default permissions.
Therefore when mounting tmp set permissions explicitly to 1777
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Acked-by: John Crispin <john@phrozen.org>
| -rw-r--r-- | initd/early.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/initd/early.c b/initd/early.c index 00fd946..2e15112 100644 --- a/initd/early.c +++ b/initd/early.c @@ -67,7 +67,7 @@ early_mounts(void) early_console("/dev/console"); if (mount_zram_on_tmp()) { - mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_NODEV | MS_NOATIME, 0); + mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_NODEV | MS_NOATIME, "mode=01777"); mkdir("/tmp/shm", 01777); } else { mkdir("/tmp/shm", 01777); |