commit:     6ace5b9410d153c03933a39338690f98dffbfdf0
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun May 19 21:08:04 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun May 19 21:08:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ace5b94

net-wireless/bluez: fixup permissions

Set 0555 mode on /etc/bluetooth directory only. It makes no sense to
apply this recursively.

keepdir /var/lib/bluetooth when systemd is disabled. Set mode to 0700.
See upstream: 
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=7665fb5d943c3910465123fc7b08922e44adb7a2

Bug: https://bugs.gentoo.org/929017
Closes: https://bugs.gentoo.org/932172
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 net-wireless/bluez/{bluez-5.76.ebuild => bluez-5.76-r1.ebuild} | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net-wireless/bluez/bluez-5.76.ebuild 
b/net-wireless/bluez/bluez-5.76-r1.ebuild
similarity index 98%
rename from net-wireless/bluez/bluez-5.76.ebuild
rename to net-wireless/bluez/bluez-5.76-r1.ebuild
index 61da183bfe45..1eb708c49c04 100644
--- a/net-wireless/bluez/bluez-5.76.ebuild
+++ b/net-wireless/bluez/bluez-5.76-r1.ebuild
@@ -258,7 +258,13 @@ multilib_src_install_all() {
        use doc && dodoc doc/*.txt
 
        # https://bugs.gentoo.org/929017
-       fperms -R 0555 /etc/bluetooth
+       fperms 0555 /etc/bluetooth
+
+       # https://bugs.gentoo.org/932172
+       if ! use systemd; then
+               keepdir /var/lib/bluetooth
+               fperms 0700 /var/lib/bluetooth
+       fi
 }
 
 pkg_postinst() {

Reply via email to