summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2021-08-20 02:32:59 -1000
committerMarc Schiffbauer <mschiff@gentoo.org>2021-08-20 02:32:59 -1000
commit2957a300fdebd1ecba8e7041ba4cf71f56729dbc (patch)
treeb9084d691ce94460e5030e6c44efee27393ef158 /app-backup
parentdev-python/bareos: bump 20.0.1 -> 20.0.2 (diff)
downloadgentoo-2957a300fdebd1ecba8e7041ba4cf71f56729dbc.tar.gz
gentoo-2957a300fdebd1ecba8e7041ba4cf71f56729dbc.tar.bz2
gentoo-2957a300fdebd1ecba8e7041ba4cf71f56729dbc.zip
app-bareos: harden pid directory
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/bareos/files/bareos-dir.initd2
-rw-r--r--app-backup/bareos/files/bareos-fd.initd2
-rw-r--r--app-backup/bareos/files/bareos-sd.initd2
-rw-r--r--app-backup/bareos/files/tmpfiles.d-bareos.conf2
4 files changed, 4 insertions, 4 deletions
diff --git a/app-backup/bareos/files/bareos-dir.initd b/app-backup/bareos/files/bareos-dir.initd
index 826d27a829c9..9f17f212e4a4 100644
--- a/app-backup/bareos/files/bareos-dir.initd
+++ b/app-backup/bareos/files/bareos-dir.initd
@@ -8,7 +8,7 @@ depend() {
start() {
ebegin "Starting bareos director"
- checkpath -d -m 0750 -o bareos:bareos /run/bareos
+ checkpath -d -m 0750 -o root:bareos /run/bareos
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-dir \
-- ${DIR_OPTIONS}
eend $?
diff --git a/app-backup/bareos/files/bareos-fd.initd b/app-backup/bareos/files/bareos-fd.initd
index e272daa88ecd..e65e6c80f32b 100644
--- a/app-backup/bareos/files/bareos-fd.initd
+++ b/app-backup/bareos/files/bareos-fd.initd
@@ -8,7 +8,7 @@ depend() {
start() {
ebegin "Starting bareos file daemon"
- checkpath -d -m 0750 /run/bareos
+ checkpath -d -m 0750 -o root:bareos /run/bareos
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-fd \
-- ${FD_OPTIONS}
eend $?
diff --git a/app-backup/bareos/files/bareos-sd.initd b/app-backup/bareos/files/bareos-sd.initd
index f20be4ecf56e..4f7fbcb52bf2 100644
--- a/app-backup/bareos/files/bareos-sd.initd
+++ b/app-backup/bareos/files/bareos-sd.initd
@@ -8,7 +8,7 @@ depend() {
start() {
ebegin "Starting bareos storage daemon"
- checkpath -d -m 0750 -o bareos:bareos /run/bareos
+ checkpath -d -m 0750 -o root:bareos /run/bareos
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-sd \
-- ${SD_OPTIONS}
eend $?
diff --git a/app-backup/bareos/files/tmpfiles.d-bareos.conf b/app-backup/bareos/files/tmpfiles.d-bareos.conf
index 6e2dacc41ad3..81c57569c455 100644
--- a/app-backup/bareos/files/tmpfiles.d-bareos.conf
+++ b/app-backup/bareos/files/tmpfiles.d-bareos.conf
@@ -1 +1 @@
-d /run/bareos 0770 bareos bareos -
+d /run/bareos 0750 root bareos -