use bind-dirs to handle crontab persistence

This commit is contained in:
unman 2016-10-16 01:14:02 +01:00
parent a493b7c121
commit da82d93780
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
7 changed files with 19 additions and 1 deletions

View File

@ -260,6 +260,10 @@ endif
install -D -m 0644 misc/xorg-preload-apps.conf $(DESTDIR)/etc/X11/xorg-preload-apps.conf
install -d $(DESTDIR)/usr/lib/qubes-bind-dirs.d
install -D -m 0644 misc/30_cron.conf $(DESTDIR)/usr/lib/qubes-bind-dirs.d/30_cron.conf
install -d $(DESTDIR)/var/run/qubes
install -d $(DESTDIR)/home_volatile/user
install -d $(DESTDIR)/rw

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
qubes-core-agent (3.2.12-1) wheezy; urgency=medium
[ Unman ]
* cron: set up bind-dirs for /var/spool/cron
-- unman <unman@thirdeyesecurity.org> Sat, 16 Oct 2016 21:53:40 +0000
qubes-core-agent (3.2.11-1) wheezy; urgency=medium
[ HW42 ]

1
misc/30_cron.conf Normal file
View File

@ -0,0 +1 @@
binds+=( '/var/spool/cron' )

View File

@ -425,6 +425,8 @@ rm -f %{name}-%{version}
/usr/lib/yum-plugins/yum-qubes-hooks.py*
/usr/lib/dracut/dracut.conf.d/30-qubes.conf
/usr/lib/NetworkManager/conf.d/30-qubes.conf
%dir /usr/lib/qubes-bind-dirs.d
/usr/lib/qubes-bind-dirs.d/30_cron.conf
/usr/lib64/python2.7/site-packages/qubes/xdg.py*
/usr/sbin/qubes-firewall
/usr/sbin/qubes-netwatcher

View File

@ -1 +1 @@
3.2.11
3.2.12

View File

@ -1,3 +1,5 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/crond
[Service]
After=qubes-sysinit.service

View File

@ -1,3 +1,5 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/crond
[Service]
After=qubes-sysinit.service