From patchwork Thu Jul 28 13:28:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 5781 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Lts1D0QgMz40V3 for ; Thu, 28 Jul 2022 13:28:48 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Lts1B3yr0z1hC; Thu, 28 Jul 2022 13:28:46 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Lts1B3C5Zz2yN4; Thu, 28 Jul 2022 13:28:46 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Lts193x79z2xLW for ; Thu, 28 Jul 2022 13:28:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Lts183xzVz1RT for ; Thu, 28 Jul 2022 13:28:44 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1659014925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4M3rLxphwa5AIwrx6Fcf8VW1UDG328IDBek45dAOhMA=; b=GR24dueCMw0oF0IT5Vkt7PjatLSNHXfhqrc1AH/VuPD9i05bPzx97kwOUoFzd5l1CupKLc asgG/XzTcxHdw+Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1659014925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4M3rLxphwa5AIwrx6Fcf8VW1UDG328IDBek45dAOhMA=; b=R0ySlYLUPNwtXS+nRqPbNuVIVER7bFHbQpwZ5Y4SJCOYlzPFO4PsdExdJ4f3CmDZaof7A5 P1Y53t25+OqbgXN5ngOxdfSUOZ/iq1QGH8TQEn1ziQpqCZy33KcA3UVETtUiaoQJVATfHq OAUk5Mj4WiabkuQjaOEfVYTTC4/GJlPtG18NGsXOyIHHqbGGqG3TDSJDOcFStqQvNHMHL0 iwxXw2YaQmPo9+HHlQb4I0G0c6F+hcPSkp15J9uVxqkgaS5fOZCAiGtHFTS96A8DrWwAys BLlO8SxNGmLO95DV+FlGzjYzj/HVHXlFHz4vUo1by9vkx/Ow+m5FIxOSsgC9gQ== Message-ID: Date: Thu, 28 Jul 2022 13:28:42 +0000 MIME-Version: 1.0 Content-Language: en-US To: "IPFire: Development" From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [PATCH] installer: Harden mount options of /boot partition X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Peter Müller Reviewed-by: Michael Tremer --- src/installer/hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installer/hw.c b/src/installer/hw.c index 12f8e793d..0ed6050b3 100644 --- a/src/installer/hw.c +++ b/src/installer/hw.c @@ -1,7 +1,7 @@ /*############################################################################# # # # IPFire - An Open Source Firewall Distribution # -# Copyright (C) 2014 IPFire development team # +# Copyright (C) 2007-2022 IPFire Team # # # # 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); } }