From 4650fbc7c7bc8d184b4b6cb3c8a5d1fa1f0bc908 Mon Sep 17 00:00:00 2001 From: afonso Date: Sun, 12 May 2024 17:48:55 +0100 Subject: [PATCH] fix group permissions on send_fifo --- src/djumbai_enqueue/djumbai_enqueue.c | 2 ++ src/djumbai_send/djumbai_send.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/djumbai_enqueue/djumbai_enqueue.c b/src/djumbai_enqueue/djumbai_enqueue.c index f3ee482..2a6b653 100644 --- a/src/djumbai_enqueue/djumbai_enqueue.c +++ b/src/djumbai_enqueue/djumbai_enqueue.c @@ -1,6 +1,8 @@ #include "djumbai_enqueue.h" int main() { + + printf("RUNNING AS UID: %d, EUID %d, GID %d, and EGID %d\n",getuid(),geteuid(),getgid(),getegid()); const char *message_queue_path = "/djumbai/fifos/message_queue"; diff --git a/src/djumbai_send/djumbai_send.c b/src/djumbai_send/djumbai_send.c index 303b55d..b943a04 100644 --- a/src/djumbai_send/djumbai_send.c +++ b/src/djumbai_send/djumbai_send.c @@ -26,7 +26,7 @@ int main() { } // Open the FIFO for reading - if (mkfifo(send_fifo_path, 0600) == -1) { + if (mkfifo(send_fifo_path, 0620) == -1) { perror("mkfifo"); exit(EXIT_FAILURE); }