Hardcode storage path as /var/lib/fprint

--localstatedir (and --prefix) will now be ignored in favour of this
hardcoded path.  This is in preparation for a change to use systemd's
StateDirectory feature.
This commit is contained in:
Will Thompson
2019-03-15 10:52:48 +00:00
committed by Will Thompson
parent 8ae7abc6c2
commit 9ed8767cb3
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ if HAVE_SYSTEMD
systemdservicedir = $(systemdsystemunitdir)
systemdservice_DATA = $(systemdservice_in_files:.service.in=.service)
$(systemdservice_DATA): $(systemdservice_in_files) Makefile
@sed -e "s|\@libexecdir\@|$(libexecdir)|" -e "s|\@localstatedir\@|$(localstatedir)|" $< > $@
@sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
endif
polkitdir = $(datadir)/polkit-1/actions

View File

@ -11,7 +11,7 @@ ExecStart=@libexecdir@/fprintd
ProtectSystem=strict
ProtectKernelTunables=true
ProtectControlGroups=true
ReadWritePaths=@localstatedir@/lib/fprint
ReadWritePaths=/var/lib/fprint
ProtectHome=true
PrivateTmp=true