projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
init: fix /tmp permissions on zram
[project/procd.git]
/
initd
/
zram.c
diff --git
a/initd/zram.c
b/initd/zram.c
index
49480af
..
9fab794
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;
}