From d604ff6fd3d78e42f09cc25aa4b09387f08fe786 Mon Sep 17 00:00:00 2001 From: Dylan Mikus Date: Wed, 6 Jan 2016 21:26:52 +0000 Subject: [PATCH] Set more permissive permissions in spool directory In the rtpengine spool directory, when we create the "pcaps" and "metadata" inner directories, we now give all users read and write privileges to them, instead of just the owner and the group having those permissions. --- daemon/recording.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/recording.c b/daemon/recording.c index 2e797887b..8e6efa325 100644 --- a/daemon/recording.c +++ b/daemon/recording.c @@ -75,7 +75,7 @@ int maybe_create_spool_dir(char *spoolpath) { if (stat(meta_path, &info) != 0) { fprintf(stdout, "Creating metadata directory \"%s\".\n", meta_path); - mkdir(meta_path, 0660); + mkdir(meta_path, 0777); } else if(!S_ISDIR(info.st_mode)) { fprintf(stderr, "metadata file exists, but \"%s\" is not a directory.\n", meta_path); spool_good = FALSE; @@ -83,7 +83,7 @@ int maybe_create_spool_dir(char *spoolpath) { if (stat(rec_path, &info) != 0) { fprintf(stdout, "Creating pcaps directory \"%s\".\n", rec_path); - mkdir(rec_path, 0660); + mkdir(rec_path, 0777); } else if(!S_ISDIR(info.st_mode)) { fprintf(stderr, "pcaps file exists, but \"%s\" is not a directory.\n", rec_path); spool_good = FALSE;