Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
865e403fcc | ||
|
|
9b8257a911 | ||
|
|
09d664dabe | ||
|
|
fce8afc0b3 |
4 changed files with 20 additions and 50 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -20,3 +20,7 @@
|
|||
/udisks-2.10.0.tar.bz2
|
||||
/udisks-2.10.1.tar.bz2
|
||||
/udisks-2.10.90.tar.bz2
|
||||
/udisks-2.10.91.tar.bz2
|
||||
/udisks-2.11.0.tar.bz2
|
||||
/udisks-2.11.1.tar.bz2
|
||||
/udisks-2.11.2.tar.bz2
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (udisks-2.10.90.tar.bz2) = 7e2507ee9b235925af6d367a0d55608f7a2780a07efba9db3c4bc06a3d42728ce74fc9edc42255fc9259aa3426c83eb164e1e99740a2d2c1b80ec2265b51df90
|
||||
SHA512 (udisks-2.11.2.tar.bz2) = 3996ac935cb330eb7f286f25a716da52ca374b14cc7b4f2e60a7e4b0b0745559607fa8c6d1e96e777b44eb8e07eb16e1ad6bc00b3051adea14e865df3efa2662
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
From 5e7277debea926370e587408517560afe87d28c9 Mon Sep 17 00:00:00 2001
|
||||
From: Tomas Bzatek <tbzatek@redhat.com>
|
||||
Date: Wed, 4 Jun 2025 15:26:46 +0200
|
||||
Subject: [PATCH] udiskslinuxfilesystemhelpers: Mount private mounts with
|
||||
'nodev,nosuid'
|
||||
|
||||
The private mount done in take_filesystem_ownership() should always
|
||||
default to 'nodev,nosuid' for security and 'errors=remount-ro' for
|
||||
selected filesystem types to handle an corrupted filesystem. This is
|
||||
consistent with mount options calculation for regular mounts.
|
||||
---
|
||||
src/udiskslinuxfilesystemhelpers.c | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/udiskslinuxfilesystemhelpers.c b/src/udiskslinuxfilesystemhelpers.c
|
||||
index 7c5fc037c4..9eb7742c77 100644
|
||||
--- a/src/udiskslinuxfilesystemhelpers.c
|
||||
+++ b/src/udiskslinuxfilesystemhelpers.c
|
||||
@@ -123,6 +123,7 @@ take_filesystem_ownership (const gchar *device,
|
||||
|
||||
{
|
||||
gchar *mountpoint = NULL;
|
||||
+ const gchar *mount_opts;
|
||||
GError *local_error = NULL;
|
||||
gboolean unmount = FALSE;
|
||||
gboolean success = TRUE;
|
||||
@@ -151,8 +152,15 @@ take_filesystem_ownership (const gchar *device,
|
||||
goto out;
|
||||
}
|
||||
|
||||
+ mount_opts = "nodev,nosuid";
|
||||
+ if (g_strcmp0 (fstype, "ext2") == 0 ||
|
||||
+ g_strcmp0 (fstype, "ext3") == 0 ||
|
||||
+ g_strcmp0 (fstype, "ext4") == 0 ||
|
||||
+ g_strcmp0 (fstype, "jfs") == 0)
|
||||
+ mount_opts = "nodev,nosuid,errors=remount-ro";
|
||||
+
|
||||
/* TODO: mount to a private mount namespace */
|
||||
- if (!bd_fs_mount (device, mountpoint, fstype, NULL, NULL, &local_error))
|
||||
+ if (!bd_fs_mount (device, mountpoint, fstype, mount_opts, NULL, &local_error))
|
||||
{
|
||||
g_set_error (error, UDISKS_ERROR, UDISKS_ERROR_FAILED,
|
||||
"Cannot mount %s at %s: %s",
|
||||
21
udisks2.spec
21
udisks2.spec
|
|
@ -4,7 +4,7 @@
|
|||
%global systemd_version 208
|
||||
%global dbus_version 1.4.0
|
||||
%global with_gtk_doc 1
|
||||
%global libblockdev_version 3.2
|
||||
%global libblockdev_version 3.4
|
||||
|
||||
%define with_btrfs 1
|
||||
%ifnarch %{ix86}
|
||||
|
|
@ -24,15 +24,12 @@
|
|||
|
||||
Name: udisks2
|
||||
Summary: Disk Manager
|
||||
Version: 2.10.90
|
||||
Release: 4%{?dist}
|
||||
Version: 2.11.2
|
||||
Release: 1%{?dist}
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/storaged-project/udisks
|
||||
Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2373301
|
||||
Patch0: udisks-2.10.91-udiskslinuxfilesystemhelpers_nodev,nosuid.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: glib2-devel >= %{glib2_version}
|
||||
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
|
||||
|
|
@ -343,6 +340,18 @@ fi
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Aug 06 2026 Tomas Bzatek <tbzatek@redhat.com> - 2.11.2-1
|
||||
- Version 2.11.2
|
||||
|
||||
* Wed Feb 25 2026 Tomas Bzatek <tbzatek@redhat.com> - 2.11.1-1
|
||||
- Version 2.11.1 (#2442584,#2442588)
|
||||
|
||||
* Thu Nov 06 2025 Tomas Bzatek <tbzatek@redhat.com> - 2.11.0-1
|
||||
- Version 2.11.0
|
||||
|
||||
* Fri Aug 29 2025 Tomas Bzatek <tbzatek@redhat.com> - 2.10.91-1
|
||||
- Version 2.10.91
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.90-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue