From a2e826ba6006a0aeff1424d2e34e1b0f9999a74710ddd131ce84362e78385e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 01:46:57 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main virtiofsd revision 7975def47b14cfc69d9b551df1e7d56b --- .gitattributes | 23 ++++++++++++++++ _service | 31 +++++++++++++++++++++ cargo_config | 5 ++++ vendor.tar.xz | 3 ++ virtiofsd-1.10.1.tar.xz | 3 ++ virtiofsd.changes | 43 +++++++++++++++++++++++++++++ virtiofsd.spec | 61 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 169 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 cargo_config create mode 100644 vendor.tar.xz create mode 100644 virtiofsd-1.10.1.tar.xz create mode 100644 virtiofsd.changes create mode 100644 virtiofsd.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..48f1ca1 --- /dev/null +++ b/_service @@ -0,0 +1,31 @@ + + + https://gitlab.com/virtio-fs/virtiofsd.git + git + virtiofsd + v1.10.1 + @PARENT_TAG@ + [v]?([^\+]+)(.*) + \1 + enable + + + + + + + + *.tar + xz + + + + virtiofsd + + + + virtiofsd + xz + true + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..20fa4e9 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa57f009ab7ede4768ac53646917e49bb831decb78a3a050de34063dc02f7ea0 +size 12339184 diff --git a/virtiofsd-1.10.1.tar.xz b/virtiofsd-1.10.1.tar.xz new file mode 100644 index 0000000..5925667 --- /dev/null +++ b/virtiofsd-1.10.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b52b3d59f43140dca7d56e6dc8d88a0f894eeb0de69d0003b72115be71627154 +size 97376 diff --git a/virtiofsd.changes b/virtiofsd.changes new file mode 100644 index 0000000..b3da64c --- /dev/null +++ b/virtiofsd.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Tue Jan 30 17:09:25 UTC 2024 - caleb.crane@suse.com + +- Fix CVE-2023-50711: vmm-sys-util: out of bounds memory accesses (bsc#1218502, bsc#1218500) +- Update to version 1.10.1: + * Bump version to v1.10.1 + * Fix mandatory user namespaces + * Don't drop supplemental groups in unprivileged user namespace + * Bump version to v1.10.0 + * Update rust-vmm dependencies (bsc#1218500) + * Bump version to v1.9.0 +- Spec: switch to using the upstream virtio-fs config file for qemu +- Spec: switch back to greedy cargo updates of vendored dependencies + +------------------------------------------------------------------- +Thu Aug 31 20:28:08 UTC 2023 - Caleb Crane + +- Update to upstream version v1.7.2 (jsc#4980) + - Add supplementary group extension support + - Prevent EPERM failures with O_NOATIME + - Fix cache timeouts + - seccomp: Allow SYS_sched_yield + - Allow to provide the same argument multiple times + - Add the -V/--version options +- Upgrade vendored dependencies + +------------------------------------------------------------------- +Fri Jun 2 15:40:06 UTC 2023 - Caleb Crane + +- Add qemu config file to ensure qemu is aware of the virtiofsd executable +- https://www.reddit.com/r/suse/comments/13xmote/vm_with_virtiofs_does_not_start_unable_to_find_a/ + +------------------------------------------------------------------- +Thu May 25 02:33:51 UTC 2023 - Caleb Crane + +- Remove exclusive arch, only disable for 32-bit archs (i586 and armv7l) +- Add package conflict with the previous implementation of virtiofsd inside + older versions of the qemu-tools package (qemu-tools < 8) + +------------------------------------------------------------------- +Tue May 23 13:30:11 UTC 2023 - Caleb Crane + +- Initial release of virtiofsd v1.6.1 diff --git a/virtiofsd.spec b/virtiofsd.spec new file mode 100644 index 0000000..bae6214 --- /dev/null +++ b/virtiofsd.spec @@ -0,0 +1,61 @@ +# +# spec file for package virtiofsd +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: virtiofsd +Version: 1.10.1 +Release: 0 +Summary: vhost-user virtio-fs device backend written in Rust +Group: Development/Libraries/Rust +License: Apache-2.0 +URL: https://gitlab.com/virtio-fs/virtiofsd +Source0: %{name}-%{version}.tar.xz +Source1: vendor.tar.xz +Source2: cargo_config +BuildRequires: cargo-packaging +BuildRequires: libcap-ng-devel +BuildRequires: libseccomp-devel +Conflicts: qemu-tools < 8 +ExcludeArch: %ix86 %arm + +%description +vhost-user virtio-fs device backend written in Rust + +%prep +%autosetup -a1 +mkdir .cargo +cp %{SOURCE2} .cargo/config + +%build +%{cargo_build} + +%install +mkdir -p %{buildroot}%{_libexecdir} +install -D -p -m 0755 %{_builddir}/%{name}-%{version}/target/release/virtiofsd %{buildroot}%{_libexecdir}/virtiofsd +install -D -p -m 0644 %{_builddir}/%{name}-%{version}/50-virtiofsd.json %{buildroot}%{_datadir}/qemu/vhost-user/50-virtiofsd.json + +%check +%{cargo_test} + +%files +%doc README.md +%{_libexecdir}/virtiofsd +%dir %{_datadir}/qemu +%dir %{_datadir}/qemu/vhost-user +%{_datadir}/qemu/vhost-user/50-virtiofsd.json + +%changelog