[gnome-disk-utility] fstab: include "nosuid, nodev" when proposing options for a new fstab entry



commit 6e9a5c9673a1e90b7cff2c236ac06716ef00e680
Author: David Zeuthen <davidz redhat com>
Date:   Wed Jan 25 14:44:41 2012 -0500

    fstab: include "nosuid,nodev" when proposing options for a new fstab entry
    
    Seems more secure.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/palimpsest/gdufstabdialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/palimpsest/gdufstabdialog.c b/src/palimpsest/gdufstabdialog.c
index dad7f44..50c5aeb 100644
--- a/src/palimpsest/gdufstabdialog.c
+++ b/src/palimpsest/gdufstabdialog.c
@@ -455,10 +455,10 @@ gdu_fstab_dialog_show (GduWindow    *window,
       fsname = NULL;
       dir = "";
       type = "auto";
-      opts = "nofail";
+      opts = "nosuid,nodev,nofail";
       /* propose noauto if the media is removable - otherwise e.g. systemd will time out at boot */
       if (drive != NULL && udisks_drive_get_removable (drive))
-        opts = "noauto";
+        opts = "nosuid,nodev,noauto";
       freq = 0;
       passno = 0;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]