From ccbec82681fa5ff7381f62faa74fc5e8ad92549b Mon Sep 17 00:00:00 2001 From: Thomas Blume Date: Thu, 12 Jun 2025 13:17:51 +0200 Subject: [PATCH] dont allow suid and dev set on fs resize --- src/plugins/fs/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fs/generic.c b/src/plugins/fs/generic.c index 442f38d..b0df1de 100644 --- a/src/plugins/fs/generic.c +++ b/src/plugins/fs/generic.c @@ -379,7 +379,7 @@ static gboolean xfs_resize_device (const gchar *device, guint64 new_size, const "before resizing it.", device); return FALSE; } - ret = bd_fs_mount (device, mountpoint, "xfs", NULL, NULL, error); + ret = bd_fs_mount (device, mountpoint, "xfs", "nosuid,nodev", NULL, error); if (!ret) { g_prefix_error (error, "Failed to mount '%s' before resizing it: ", device); return FALSE; -- 2.49.0