summaryrefslogtreecommitdiff
path: root/src/supervision/s6-supervise.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-07 14:31:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-07 14:31:03 +0000
commitddb2bdb9268af76890d657dca80e288cc11913a0 (patch)
treef9e7e652b83b68cfea0dbdcaec95f4124e2e3b98 /src/supervision/s6-supervise.c
parent6f8c6226478c1ea46e1b215f075ce8a22867172a (diff)
downloads6-ddb2bdb9268af76890d657dca80e288cc11913a0.tar.xz
Make ./event subdir private with s6-supervise's gid instead of public by default
Diffstat (limited to 'src/supervision/s6-supervise.c')
-rw-r--r--src/supervision/s6-supervise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
index aa53e33..de9b6ea 100644
--- a/src/supervision/s6-supervise.c
+++ b/src/supervision/s6-supervise.c
@@ -448,7 +448,7 @@ int main (int argc, char const *const *argv)
PROG = progname ;
if (!fd_sanitize()) strerr_diefu1sys(111, "sanitize stdin and stdout") ;
x[1].fd = s6_supervise_lock(S6_SUPERVISE_CTLDIR) ;
- if (!ftrigw_fifodir_make(S6_SUPERVISE_EVENTDIR, -1, 0))
+ if (!ftrigw_fifodir_make(S6_SUPERVISE_EVENTDIR, getegid(), 0))
strerr_diefu2sys(111, "mkfifodir ", S6_SUPERVISE_EVENTDIR) ;
x[0].fd = selfpipe_init() ;
if (x[0].fd == -1) strerr_diefu1sys(111, "init selfpipe") ;