]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
installer: Harden mount options of /boot partition
authorPeter Müller <peter.mueller@ipfire.org>
Thu, 28 Jul 2022 13:28:42 +0000 (13:28 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 28 Jul 2022 13:34:07 +0000 (13:34 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
src/installer/hw.c

index 12f8e793de49b65afb4d271f10d6d7717e8a8145..0ed6050b30b9e3ddb49893973c1f038966a7e582 100644 (file)
@@ -1,7 +1,7 @@
 /*#############################################################################
 #                                                                             #
 # IPFire - An Open Source Firewall Distribution                               #
-# Copyright (C) 2014 IPFire development team                                  #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -1134,7 +1134,7 @@ int hw_write_fstab(struct hw_destination* dest) {
                uuid = hw_get_uuid(dest->part_boot);
 
                if (uuid) {
-                       fprintf(f, FSTAB_FMT, uuid, "/boot", "auto", "defaults", 1, 2);
+                       fprintf(f, FSTAB_FMT, uuid, "/boot", "auto", "defaults,nodev,noexec,nosuid", 1, 2);
                        free(uuid);
                }
        }