Commit Graph

1550 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
c087bca40c
Implement dnf hooks for post-update actions
Similar to previous yum hooks:
 - notify dom0 about installed updates (possibly clear "updates pending"
   marker)
 - trigger appmenus synchronization

QubesOS/qubes-issues#1282

(cherry picked from commit b6cfcdcc6f)

Conflicts:
	rpm_spec/core-vm.spec
2015-11-13 05:47:55 +01:00
Marek Marczykowski-Górecki
9afc93dbc8
dom0-updates: use yum-deprecated instead of dnf in all calls
Fix for d44c8ac "dom0-updates: prefer yum-deprecated over dnf"
Because of slightly different options and config syntax, it needs to be
used in call calls, not only the one with --downloaddir option.

QubesOS/qubes-issues#1282

(cherry picked from commit 85793fa31f)
2015-11-13 05:47:19 +01:00
Marek Marczykowski-Górecki
11d424bf49
fedora: Add skip_if_unavailable=False to Qubes repositories
DNF defaults to skip_if_unavailable=True, so make sure that Qubes
repositories are treated as vital one. Otherwise it would allow an
attacker to cut the user from updates without visible error (when using
PackageKit for example).

Do not set it for unstable repository, as it isn't critical one.

Fixes QubesOS/qubes-issues#1387

(cherry picked from commit 5102e4f7aa)
2015-11-13 03:30:59 +01:00
Olivier MEDOC
ca64d4d496
add DROPINS for org.cups.cupsd systemd files.
(cherry picked from commit 4b5332081e)
2015-11-13 03:30:49 +01:00
Marek Marczykowski-Górecki
cdcab08477
dom0-updates: prefer yum-deprecated over dnf
Some of the reasons:
 - dnf doesn't support --downloaddir option
 - dnf doesn't support `copy_local` repo option (used in automated tests
   only)
 - dnf is horribly slow, especially without cache fetched
 (https://bugzilla.redhat.com/show_bug.cgi?id=1227014)

This is all needed (instead of simply using `yum` command), because
Fedora >= 22 have an command redirection `yum`->`dnf`.

QubesOS/qubes-issues#1282

(cherry picked from commit d44c8acdeb)
2015-11-13 03:29:47 +01:00
Marek Marczykowski-Górecki
569bdeffdd
No longer disable auditd
On Fedora 22 console is trashed with a lot of messages without auditd
running.

QubesOS/qubes-issues#1282

(cherry picked from commit 6752be9196)
2015-11-13 03:29:20 +01:00
Marek Marczykowski-Górecki
36fb030314
appmenus: ignore entries with NoDisplay=true
According to Desktop Entry Specification:
NoDisplay means "this application exists, but don't display it in the
menus". This can be useful to e.g. associate this application with MIME
types, so that it gets launched from a file manager (or other apps),
without having a menu entry for it (there are tons of good reasons
for this, including e.g. the netscape -remote, or kfmclient openURL kind
of stuff).

Apparently over half of desktop files in default Fedora template have
NoDisplay=true...

Fixes QubesOS/qubes-issues#1348

(cherry picked from commit 7bc6422f53)
2015-11-13 03:28:45 +01:00
Marek Marczykowski-Górecki
a9f30f36bf
backup: improve exit code reporting
Return some meaningful error code. Unfortunately the more meaningful
option (retrieving process exit code) can lead to false errors
(described in comment), but at least report exit code of tar2qfile.

(cherry picked from commit b38ea60f00)
2015-11-13 03:20:28 +01:00
Marek Marczykowski-Górecki
105b62f5ac
backup: fix handling backup filename with spaces
Fixes QubesOS/qubes-issues#1371

(cherry picked from commit c704c35cd8)
2015-11-13 03:18:24 +01:00
Marek Marczykowski-Górecki
85d2f1722f
updates-proxy-setup: use temporary file for config snippet
Don't use ${CONF_PATH}.qubes, because it may override some existing
file, and is racy approach (even if not against user, but another script
instance).

QubesOS/qubes-issues#1282

(cherry picked from commit f9c7394c2f)
2015-11-13 03:18:11 +01:00
Marek Marczykowski-Górecki
5924cfa3b7
Setup updates proxy in dnf and PackageKit
DNF doesn't support even including another config file, so all the
settings needs to go into `/etc/dnf/dnf.conf`. The same about
PackageKit, which is needed because it doesn't use `dnf.conf`:
http://lists.freedesktop.org/archives/packagekit/2015-September/026389.html

Because that proxy settings goes to so many places now, create a
separate script for that.

QubesOS/qubes-issues#1282
QubesOS/qubes-issues#1197

(cherry picked from commit c2596a0435)

Conflicts:
	Makefile
	rpm_spec/core-vm.spec
2015-11-13 03:17:50 +01:00
Rusty Bird
989adf4dab
qfile-unpacker: Avoid data loss by checking for child errors
When qfile-unpacker's child encountered an error, it would display an
error message and exit(1), but the parent didn't inspect its status and
exited successfully.

That was unfortunate for qvm-move-to-vm: Even if the destination VM e.g.
didn't have enough free disk space, the RPC call would claim to succeed
anyway, so the file would be deleted from the source VM.

(cherry picked from commit 4027decbaa)
2015-11-13 03:15:09 +01:00
Marek Marczykowski-Górecki
45d9f78ebc
version 3.0.19 2015-10-30 15:40:09 +01:00
Marek Marczykowski-Górecki
0f236a8192
debian: install locales-all instead of custom locales generation
The custom way proved to be unreliable - for example does not survive
`locales` package upgrade. So settle on much more reliable way.

Fixes QubesOS/qubes-issues#1195

(cherry picked from commit 9d52b7d178)
2015-10-30 15:31:37 +01:00
Marek Marczykowski-Górecki
aaff61921b
Require new enough qubes-utils package for updated libqrexec-utils
Required by 97a3793 "qrexec: implement buffered write to a child stdin"
2015-10-30 15:31:12 +01:00
Patrick Schleizer
0fc6c73068
cleanup /etc/apt/apt.conf.d/00notiy-hook on existing systems
00notiy-hook was renamed to 00notify-hook in
'debian: Renamed incorrect filename: 00notiy-hook -> 00notify-hook'
15f1df4947
but the old file was not removed.
(Files in /etc do not automatically get removed on Debian systems when these are removed from the package.)

This is an independent, but supporting fix for:
'Improved upgrade notifications sent to QVMM.'
- https://github.com/marmarek/qubes-core-agent-linux/pull/39
- https://github.com/QubesOS/qubes-issues/issues/1066#issuecomment-150044906

Added debian/qubes-core-agent.maintscript.

(cherry picked from commit f2e6dc9391)
2015-10-30 15:28:45 +01:00
Marek Marczykowski-Górecki
d0bba59f86
rpm: remove duplicated entry
(cherry picked from commit 457578280b)
2015-10-30 15:28:38 +01:00
Marek Marczykowski-Górecki
c7713810fb
qrexec: implement buffered write to a child stdin
Implement one of TODOs left in the code. Without this buffering, it may
happen that qrexec-agent will hang waiting on write(2) to the child
process, while that child will do the same (try to write something to
the qrexec-agent), without reading its stdin. This would end up in a
deadlock.

Fixes QubesOS/qubes-issues#1347

(cherry picked from commit 97a3793345)
2015-10-30 15:27:27 +01:00
erihe251
68f514ce0a
Update qubes.sudoers
(cherry picked from commit de293f12d5)
2015-10-30 15:27:14 +01:00
erihe251
297dec2c72
Small language fixes
(cherry picked from commit 0f410ed2de)
2015-10-30 15:26:59 +01:00
Patrick Schleizer
62fca99fde
removed trailing spaces
(cherry picked from commit 2eb0ed2be1)

Conflicts:
	network/qubes-iptables
2015-10-30 15:23:59 +01:00
Marek Marczykowski-Górecki
41502281ab
network: forward TCP DNS queries
Fixes QubesOS/qubes-issues#1325

(cherry picked from commit ce443b2e18)
2015-10-30 15:22:35 +01:00
Marek Marczykowski-Górecki
f7fa61e0b3
version 3.0.18 2015-10-11 03:13:55 +02:00
Marek Marczykowski-Górecki
e2e19d6851
dom0-updates: fix hostname in error message
(cherry picked from commit 801c5c62f1)
2015-10-11 03:06:29 +02:00
Marek Marczykowski-Górecki
eb243ec8c5
dom0-updates: check "yum check-update" exit code, not only its output
QubesOS/qubes-issues#1168

(cherry picked from commit 520178d5dc)
2015-10-11 03:06:29 +02:00
Marek Marczykowski-Górecki
ec38a0c4bc
dom0-updates: Fix showing package list when --check-only option was used
Fixes QubesOS/qubes-issues#1294

(cherry picked from commit 397f6fdc52)
2015-10-11 03:06:29 +02:00
Marek Marczykowski-Górecki
949b79650f
Add missing R: dconf to hide nm-applet when not used
Without dconf, gsettings uses "memory" backend which isn't saved
anywhere and isn't shared across applications. This makes gsettings
pretty useless.

Fixes QubesOS/qubes-issues#1299

(cherry picked from commit afb70cf040)
2015-10-11 03:06:29 +02:00
Marek Marczykowski-Górecki
8fcc7f7e05
Use 'type' instead of 'which' to prevent unnecessary dependency
QubesOS/qubes-issues#1299

(cherry picked from commit 7e321ba63c)
2015-10-11 03:06:29 +02:00
Marek Marczykowski-Górecki
44fcaf4870
sysvinit: load random seed from dom0 provided data
QubesOS/qubes-issues#1311

(cherry picked from commit 13fb6e2fc3)
2015-10-11 03:06:29 +02:00
Marek Marczykowski-Górecki
e0a5b709c5
systemd: actually enable qubes-random-seed service
QubesOS/qubes-issues#1311

(cherry picked from commit 7963fb91c7)

Conflicts:
	rpm_spec/core-vm.spec
	vm-systemd/75-qubes-vm.preset
2015-10-11 03:06:26 +02:00
HW42
be9fdeb258
reload qubes-random-seed when restoring DispVM
(cherry picked from commit 05292c0ac5)
2015-10-11 03:05:30 +02:00
HW42
e52716d9b9
qubes-random-seed: feed kernel rng with randomness from dom0
(cherry picked from commit 0ffa746678)
2015-10-11 03:05:30 +02:00
Patrick Schleizer
0fae2e9ebb
minor
(cherry picked from commit 9664c97e55)
2015-10-11 03:05:30 +02:00
Marek Marczykowski-Górecki
4ac04e4c2b
network: fix 'qubes-uplink-eth0' NetworkManager connection (#1280)
According to the specification[1], the setting name is 'addresses', not
'address'.  The later apparently worked on some NetworkManager versions,
but for example not on the one in Debian wheezy. Also fix value
format (IP;netmask;gateway).

[1] htts://developer.gnome.org/NetworkManager/unstable/ref-settings.html

Fixes QubesOS/qubes-issues#1280

(cherry picked from commit 580d21acdc)
2015-10-11 03:05:30 +02:00
Marek Marczykowski-Górecki
b51aceb949
Adjust progress message on file move operation
Fixes QubesOS/qubes-issues#1269

(cherry picked from commit 03f6ddc41a)
2015-10-11 03:05:30 +02:00
Marek Marczykowski-Górecki
9b05c42577
Enlarge /tmp and /dev/shm
Initial size of those tmpfs-mounted directories is calculated as 50% of
RAM at VM startup time. Which happen to be quite small number, like
150M. Having such small /tmp and/or /dev/shm apparently isn't enough for
some applications like Google chrome. So set the size statically at 1GB,
which would be the case for baremetal system with 2GB of RAM.

Fixes QubesOS/qubes-issues#1003

(cherry picked from commit 2a39adfe0f)
2015-10-11 03:05:29 +02:00
Marek Marczykowski-Górecki
dc7ff69dae
version 3.0.17 2015-09-29 16:45:05 +02:00
Marek Marczykowski-Górecki
b836bc1cfa
rpm: add dbus-python dependency
This package is required by lots of stuff in Fedora anyway, but this
doesn't mean that we can have broken dependencies.

(cherry picked from commit 3552bc7e41)
2015-09-29 16:44:57 +02:00
Patrick Schleizer
567a0a60c8
fix typo
(cherry picked from commit cf55fa54c9)
2015-09-29 16:44:57 +02:00
Patrick Schleizer
b980ccf8e0
added missing dependency xserver-xorg-dev
(cherry picked from commit 3f19b581cd)
2015-09-29 16:44:56 +02:00
Patrick Schleizer
4881ab4112
fixed 'Debian 8 apt.config.d misconfiguration'
prevent the Acquire::http::Proxy setting ending up multiple times inside /etc/apt/apt.conf.d/01qubes-proxy
(reported by @Scinawa)
https://github.com/QubesOS/qubes-issues/issues/1186
(cherry picked from commit c13e11d57e)
2015-09-29 16:44:56 +02:00
Patrick Schleizer
67f26e4e03
added missing dependency python-dbus to 'Depends:'
https://github.com/marmarek/qubes-core-agent-linux/blob/master/misc/qubes-desktop-run depends on python-dbus.
(0b7ade11b8/misc/xdg.py (L5))
(cherry picked from commit 5078b2030f)
2015-09-29 16:44:36 +02:00
qubesuser
3b669d0d54
qubes-rpc: fix broken temporary file deletion in qubes.GetImageRGBA
(cherry picked from commit 76c0f95c34)
2015-09-29 16:44:36 +02:00
Patrick Schleizer
ca539a075b
show error msg if qubes.ReceiveUpdates failed
(cherry picked from commit fc013bd480)
2015-09-29 16:44:36 +02:00
Marek Marczykowski-Górecki
e924758c54 version 3.0.16 2015-09-03 02:45:30 +02:00
Marek Marczykowski-Górecki
6d10970590 Merge remote-tracking branch 'origin/pr/19' 2015-09-03 02:30:53 +02:00
Marek Marczykowski-Górecki
a99e184e3d Fix show-hide-nm-applet.desktop - use OnlyShowIn=X-QUBES 2015-09-03 00:43:54 +02:00
Marek Marczykowski-Górecki
d491ade917 debian: depend on gawk
qubes.GetAppmenus uses "nextfile" which is gawk-specific.

Fixes qubesos/qubes-issues#1062
2015-09-02 02:36:35 +02:00
Marek Marczykowski-Górecki
c8ac55b179 Merge branch 'autostart-dropins'
Conflicts:
	misc/qubes-trigger-desktop-file-install

Fixes qubesos/qubes-issues#1151
2015-09-02 01:16:19 +02:00
Marek Marczykowski-Górecki
3da7d2c315 Merge remote-tracking branch 'qubesos/pr/3'
* qubesos/pr/3:
  Mount /dev/xvdb with fs type "auto"
2015-09-02 01:14:10 +02:00