Compare commits

...

8 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
7458893b8f
version 3.2.5 2017-09-24 21:54:29 +02:00
Marek Marczykowski-Górecki
dd2fce0e1b
travis: add fc25 and fc26 build targets 2017-09-24 21:24:28 +02:00
Paras Chetal
d81acf81d4
Fix include header syntax
(cherry picked from commit e9b8e5a4d1)
2017-09-24 21:18:12 +02:00
Marek Marczykowski-Górecki
5428ce06ee
initramfs: move qubes_cow_setup hook to pre-trigger
This hook require new device nodes to appear in /dev. If devtmpfs is
used, it's not a problem ("simple" initramfs case), but otherwise udevd
is needed - and it isn't running in pre-udev hook yet.

QubesOS/qubes-issues#2577

(cherry picked from commit 5c7c54adab)
2017-09-24 21:16:23 +02:00
Olivier MEDOC
ea0c714139 Fix gcc Werror because of a typo in a switch/case explicit fallthrough comment
GCC crash because of -Werror=implicit-fallthrough. However the fallthrough exists but has a typo.

Thanks for omac777 analysis (7d0b8155a3)

However the fallthrough exists but has a typo
2017-09-12 21:05:40 +02:00
Rusty Bird
0677fce533
Fall back to sync() if syncfs() is unavailable
It seems better to err on the side of safety (vs. performance).

(cherry picked from commit 90a1e6abbd)
2017-07-04 13:30:18 +02:00
Marek Marczykowski-Górecki
7e42fb5efd
rpm: add missing build requires
(cherry picked from commit ae56d597f3)
2017-04-21 16:55:41 +02:00
unman
d359d63fd6
Improve error message when file exists
(cherry picked from commit 1db0daea9c)
Notes from origin:
    Fixes QubesOS/qubes-issues#1240
2017-04-21 16:15:31 +02:00
10 changed files with 39 additions and 8 deletions

View File

@ -7,5 +7,7 @@ env:
- DIST_DOM0=fc23 USE_QUBES_REPO_VERSION=3.2 USE_QUBES_REPO_TESTING=1
- DISTS_VM=fc23 USE_QUBES_REPO_VERSION=3.2 USE_QUBES_REPO_TESTING=1
- DISTS_VM=fc24 USE_QUBES_REPO_VERSION=3.2 USE_QUBES_REPO_TESTING=1
- DISTS_VM=fc25 USE_QUBES_REPO_VERSION=3.2 USE_QUBES_REPO_TESTING=1
- DISTS_VM=fc26 USE_QUBES_REPO_VERSION=3.2 USE_QUBES_REPO_TESTING=1
- DISTS_VM=jessie USE_QUBES_REPO_VERSION=3.2 USE_QUBES_REPO_TESTING=1
- DISTS_VM=stretch USE_QUBES_REPO_VERSION=3.2 USE_QUBES_REPO_TESTING=1

26
debian/changelog vendored
View File

@ -1,3 +1,29 @@
qubes-utils (3.2.5) unstable; urgency=medium
[ unman ]
* Improve error message when file exists
[ Marek Marczykowski-Górecki ]
* rpm: add missing build requires
[ Rusty Bird ]
* Fall back to sync() if syncfs() is unavailable
[ Olivier MEDOC ]
* Fix gcc Werror because of a typo in a switch/case explicit
fallthrough comment
[ Marek Marczykowski-Górecki ]
* initramfs: move qubes_cow_setup hook to pre-trigger
[ Paras Chetal ]
* Fix include header syntax
[ Marek Marczykowski-Górecki ]
* travis: add fc25 and fc26 build targets
-- Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Sun, 24 Sep 2017 21:54:29 +0200
qubes-utils (3.2.4) unstable; urgency=medium
[ Johanna A ]

View File

@ -14,7 +14,7 @@ depends() {
}
install() {
inst_hook pre-udev 90 $moddir/qubes_cow_setup.sh
inst_hook pre-trigger 90 $moddir/qubes_cow_setup.sh
inst_multiple \
sfdisk \
mkswap

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# This file should be placed in pre-mount directory in dracut's initramfs, or
# This file should be placed in pre-trigger directory in dracut's initramfs, or
# scripts/local-top in case of initramfs-tools
#

View File

@ -83,7 +83,6 @@ if ! [ -d "$NEWROOT/lib/modules/$kver/kernel" ]; then
rmdir /tmp/modules
fi
umount /dev /sys /proc
exec switch_root $NEWROOT /sbin/init

View File

@ -1,5 +1,5 @@
#include <unistd.h>
#include <ioall.h>
#include "ioall.h"
#include "libqubes-rpc-filecopy.h"
#include "crc32.h"

View File

@ -89,7 +89,7 @@ void wait_for_result(void)
if (hdr.error_code != 0) {
switch (hdr.error_code) {
case EEXIST:
call_error_handler("File copy: not overwriting existing file. Clean QubesIncoming dir, and retry copy%s%s", last_filename_prefix, last_filename);
call_error_handler("A file named %s already exists in QubesIncoming dir", last_filename);
break;
case EINVAL:
call_error_handler("File copy: Corrupted data from packer%s%s", last_filename_prefix, last_filename);
@ -100,7 +100,7 @@ void wait_for_result(void)
* desynchronized in this case */
return;
}
/* fall though */
/* fallthrough */
default:
call_error_handler("File copy: %s%s%s",
strerror(hdr.error_code), last_filename_prefix, last_filename);

View File

@ -1,6 +1,5 @@
#define _GNU_SOURCE /* For O_NOFOLLOW. */
#include <errno.h>
#include <ioall.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/stat.h>
@ -10,6 +9,7 @@
#include <stdio.h>
#include <limits.h>
#include "libqubes-rpc-filecopy.h"
#include "ioall.h"
#include "crc32.h"
char untrusted_namebuf[MAX_PATH_LENGTH];
@ -237,6 +237,8 @@ int do_unpack(void)
cwd_fd = open(".", O_RDONLY);
if (cwd_fd >= 0 && syncfs(cwd_fd) == 0 && close(cwd_fd) == 0)
errno = saved_errno;
#else
sync();
#endif
send_status_and_crc(errno, untrusted_namebuf);

View File

@ -19,6 +19,8 @@ Requires: %{name}-libs
Requires: ImageMagick
Requires: pycairo
BuildRequires: qubes-libvchan-devel
# for meminfo-writer
BuildRequires: xen-devel
%description
Common Linux files for Qubes Dom0 and VM

View File

@ -1 +1 @@
3.2.4
3.2.5