Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 725508

Summary: app-backup/bareos-19.2.7 missing /run/bareos permissions with systemd (PATCH)
Product: Gentoo Linux Reporter: Andrej Filipcic <andrej.filipcic>
Component: Current packagesAssignee: Marc Schiffbauer <mschiff>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrej Filipcic 2020-05-26 14:48:21 UTC
Some daemons running as bareos user need permission on /run/bareos. 

The following fixes make it work:

# cat files/tmpfiles.d-bareos.conf 
d /run/bareos 0770 bareos bareos -

# diff -ur a/bareos-19.2.7.ebuild bareos-19.2.7.ebuild 
--- b/bareos/bareos-19.2.7.ebuild  2020-05-19 18:00:05.314956000 +0200
+++ bareos-19.2.7.ebuild        2020-05-26 16:44:08.921292000 +0200
@@ -326,6 +326,9 @@
 
        # make sure bareos group can execute bareos libexec scripts
        fowners -R root:bareos /usr/libexec/bareos
+
+       insinto /usr/lib/tmpfiles.d
+       newins "${FILESDIR}"/tmpfiles.d-bareos.conf bareos.conf
 }
 
 pkg_postinst() {


Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-08-01 14:21:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bf3093a13fb7235350edb96406ba8750968032b

commit 1bf3093a13fb7235350edb96406ba8750968032b
Author:     Marc Schiffbauer <mschiff@gentoo.org>
AuthorDate: 2020-08-01 14:20:44 +0000
Commit:     Marc Schiffbauer <mschiff@gentoo.org>
CommitDate: 2020-08-01 14:20:44 +0000

    app-backup/bareos: fix bug #725508
    
    Closes: https://bugs.gentoo.org/725508
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>

 app-backup/bareos/bareos-19.2.8.ebuild | 3 +++
 1 file changed, 3 insertions(+)