projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f706903
)
init: fix /tmp permissions on zram
author
Matthias Schiffer
<mschiffer@universe-factory.net>
Thu, 26 Jan 2017 11:56:24 +0000
(12:56 +0100)
committer
Matthias Schiffer
<mschiffer@universe-factory.net>
Thu, 26 Jan 2017 15:14:14 +0000
(16:14 +0100)
mkfs.ext4 will create the filesystem with 755, we need to chmod to 1777
explicitly.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
initd/zram.c
patch
|
blob
|
history
diff --git
a/initd/zram.c
b/initd/zram.c
index 49480afad9079b64de92ab073ec28fb3d959b88b..9fab794acf54eef20b53fe87896438e732a5745a 100644
(file)
--- a/
initd/zram.c
+++ b/
initd/zram.c
@@
-124,5
+124,11
@@
mount_zram_on_tmp(void)
LOG("Using up to %ld kB of RAM as ZRAM storage on /mnt\n", zramsize);
+ ret = chmod("/tmp", 01777);
+ if (ret < 0) {
+ ERROR("Can't set /tmp mode to 1777: %s\n", strerror(errno));
+ return errno;
+ }
+
return 0;
}