diff options
author | Mostafa <32613517+idleroamer@users.noreply.github.com> | 2021-01-19 00:29:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 08:29:44 +0900 |
commit | b0a21ecb5e02be2556b186e1cb5bf85beaf79d7d (patch) | |
tree | 9f3f293e0e27ea522f11a80f302b7385d4ed316d /src/daemon | |
parent | 17d1aeda18046f2b7225075d121ed54605a5adb9 (diff) | |
download | DLT-daemon-b0a21ecb5e02be2556b186e1cb5bf85beaf79d7d.tar.gz |
Make dlt pipe only readable by user (#285)
security-wise dlt pip(FIFO) should be exclusively readable only by owner not the dlt group
to prevent eavesdropping by clients
Signed-off-by: Mostafa Emami <mustafaemami@gmail.com>
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/dlt-daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index 86b88e0..d26de79 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -1316,7 +1316,7 @@ static int dlt_daemon_init_fifo(DltDaemonLocal *daemon_local) const char *tmpFifo = daemon_local->flags.daemonFifoName; unlink(tmpFifo); - ret = mkfifo(tmpFifo, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); + ret = mkfifo(tmpFifo, S_IRUSR | S_IWUSR | S_IWGRP); if (ret == -1) { dlt_vlog(LOG_WARNING, "FIFO user %s cannot be created (%s)!\n", |