Ray Strode 1c2a94
From 7933036127ff707718e45b805937d23d85b25c6d Mon Sep 17 00:00:00 2001
Ray Strode 1c2a94
From: Ray Strode <rstrode@redhat.com>
Ray Strode 1c2a94
Date: Tue, 31 May 2016 16:12:38 -0400
Ray Strode 1c2a94
Subject: [PATCH] systemd: disable GVFS support
Ray Strode 1c2a94
Ray Strode 1c2a94
accountsservice doesn't need support for GVFS modules,
Ray Strode 1c2a94
and those modules lead to /root/.cache getting created
Ray Strode 1c2a94
at startup.
Ray Strode 1c2a94
Ray Strode 1c2a94
accountsservice runs as root, but shouldn't be touching /root.
Ray Strode 1c2a94
Ray Strode 1c2a94
This commit disables GVFS for accountsservice
Ray Strode 1c2a94
---
Ray Strode 1c2a94
 data/accounts-daemon.service.in | 3 +++
Ray Strode 1c2a94
 1 file changed, 3 insertions(+)
Ray Strode 1c2a94
Ray Strode 1c2a94
diff --git a/data/accounts-daemon.service.in b/data/accounts-daemon.service.in
Ray Strode 1c2a94
index feedf3e..2f5fe33 100644
Ray Strode 1c2a94
--- a/data/accounts-daemon.service.in
Ray Strode 1c2a94
+++ b/data/accounts-daemon.service.in
Ray Strode 1c2a94
@@ -1,21 +1,24 @@
Ray Strode 1c2a94
 [Unit]
Ray Strode 1c2a94
 Description=Accounts Service
Ray Strode 1c2a94
 
Ray Strode 1c2a94
 # In order to avoid races with identity-providing services like SSSD or
Ray Strode 1c2a94
 # winbind, we need to ensure that Accounts Service starts after
Ray Strode 1c2a94
 # nss-user-lookup.target
Ray Strode 1c2a94
 After=nss-user-lookup.target
Ray Strode 1c2a94
 Wants=nss-user-lookup.target
Ray Strode 1c2a94
 
Ray Strode 1c2a94
 [Service]
Ray Strode 1c2a94
 Type=dbus
Ray Strode 1c2a94
 BusName=org.freedesktop.Accounts
Ray Strode 1c2a94
 ExecStart=@libexecdir@/accounts-daemon
Ray Strode 1c2a94
 StandardOutput=syslog
Ray Strode 1c2a94
+Environment=GVFS_DISABLE_FUSE=1
Ray Strode 1c2a94
+Environment=GIO_USE_VFS=local
Ray Strode 1c2a94
+Environment=GVFS_REMOTE_VOLUME_MONITOR_IGNORE=1
Ray Strode 1c2a94
 
Ray Strode 1c2a94
 [Install]
Ray Strode 1c2a94
 # We pull this in by graphical.target instead of waiting for the bus
Ray Strode 1c2a94
 # activation, to speed things up a little: gdm uses this anyway so it is nice
Ray Strode 1c2a94
 # if it is already around when gdm wants to use it and doesn't have to wait for
Ray Strode 1c2a94
 # it.
Ray Strode 1c2a94
 WantedBy=graphical.target
Ray Strode 1c2a94
-- 
Ray Strode 1c2a94
2.8.1
Ray Strode 1c2a94