Skip to content

Commit c63ef8b

Browse files
Merge commit from fork
Don't allow suid and dev set on fs resize
2 parents 819a731 + f6ae95a commit c63ef8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/fs/generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static gboolean xfs_resize_device (const gchar *device, guint64 new_size, const
410410
"before resizing it.", device);
411411
return FALSE;
412412
}
413-
ret = bd_fs_mount (device, mountpoint, "xfs", NULL, NULL, error);
413+
ret = bd_fs_mount (device, mountpoint, "xfs", "nosuid,nodev", NULL, error);
414414
if (!ret) {
415415
g_prefix_error (error, "Failed to mount '%s' before resizing it: ", device);
416416
return FALSE;

0 commit comments

Comments
 (0)