summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-31 15:40:06 +0000
committerintrigeri <intrigeri@boum.org>2016-05-31 15:49:22 +0000
commit637e6ed99e2f487099ef389bf94f464c6bc43706 (patch)
treea320a0e3636c37f60f4cca1612039397a2f67f2e /config
parentfedfa8d95d1b09b7bf80e9d1f1c32ed6fd46b7eb (diff)
Torify the org.fedoraproject.Config.Printing D-Bus service.
Otherwise, it segfaults when our firewall blocks its connections to openprinting.org, which breaks installation of some USB printers. Note that we use torsocks' absolute path here, otherwise D-Bus doesn't manage to spawn the service. Not sure why there wasn't the same problem with org.gnome.seahorse.Application, but anyway, making things more explicit cannot hurt :) Also, note that I don't know if torifying scp-dbus-service is enough to make it do anything useful, but at least it prevents it from segfaulting, and allows me to configure one printer (known in the local database) that I could not configure otherwise, so it's already progress. refs: #10965
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/09-torsocks-apps4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/chroot_local-hooks/09-torsocks-apps b/config/chroot_local-hooks/09-torsocks-apps
index de62521..4ff58c0 100755
--- a/config/chroot_local-hooks/09-torsocks-apps
+++ b/config/chroot_local-hooks/09-torsocks-apps
@@ -5,7 +5,7 @@ set -e
echo "Wrapping some applications with torsocks"
APPS="gobby-0.5 liferea seahorse"
-DBUS_SERVICES="org.gnome.seahorse.Application"
+DBUS_SERVICES="org.gnome.seahorse.Application org.fedoraproject.Config.Printing"
for app in $APPS; do
sed -i'' --regexp-extended 's,^Exec=(.*),Exec=torsocks \1,' \
@@ -13,7 +13,7 @@ for app in $APPS; do
done
for dbus_service in $DBUS_SERVICES; do
- sed -i'' --regexp-extended 's,^Exec=(.*),Exec=torsocks \1,' \
+ sed -i'' --regexp-extended 's,^Exec=(.*),Exec=/usr/bin/torsocks \1,' \
"/usr/share/dbus-1/services/${dbus_service}.service"
done