From patchwork Thu Aug 2 09:16:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Eckert X-Patchwork-Id: 952653 X-Patchwork-Delegate: jow@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dev.tdt.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dvVz1zf2"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41h4LQ1Mkrz9s2g for ; Thu, 2 Aug 2018 19:16:46 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f8k+TmfCBqz/AH+uKgONnJdOLnB2+ONG9udEKd6RtiI=; b=dvVz1zf2f4NoTr AoibV1XiRhk6S0cZ6wAI0/lebnQDEseeEneOG7+Y7FaJYNHxeara4JEObhKmbiQ74A3g5gbD97JZK AiscNN4tpVdsPZ4RJAyyCa9mWih7z32DYZ046kkvOl5GrLl6CfGOqYol69QK6tk+ezvM9//Aqc+V8 wbFUNinu5j0RsoDGUdfIAWPlAm3pxGaI0igLGh9Lr4WpTuLWxdQlj20HEWrfcHSeNqj9qlbCzzgBw x+pD3pOw4xwvhFogyB9GDaQgL+dIvlRcnxvdk1Ot3D0pf6HeDSfDQrTDx5tERxkGnkVhR90yaG01a 4iQeFL6HGE7iHYNfyKPQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fl9is-00019D-Uj; Thu, 02 Aug 2018 09:16:42 +0000 Received: from ms.tdt.de ([195.243.126.94] helo=mail.dev.tdt.de) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fl9iZ-0000p4-9l for openwrt-devel@lists.openwrt.org; Thu, 02 Aug 2018 09:16:25 +0000 Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 122C720874; Thu, 2 Aug 2018 09:16:09 +0000 (UTC) From: Florian Eckert To: openwrt-devel@lists.openwrt.org Date: Thu, 2 Aug 2018 11:16:03 +0200 Message-Id: <20180802091603.13980-2-fe@dev.tdt.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180802091603.13980-1-fe@dev.tdt.de> References: <20180802091603.13980-1-fe@dev.tdt.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.dev.tdt.de X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180802_021623_666409_89279A06 X-CRM114-Status: UNSURE ( 7.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [OpenWrt-Devel] [PATCH 2/2] services/uhttpd: add hsts uci support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eckert.Florian@googlemail.com MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Make new uhttpd hsts option configurable over uci. Signed-off-by: Florian Eckert --- package/network/services/uhttpd/files/uhttpd.init | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init index 47270bcc15..66dd9182f9 100755 --- a/package/network/services/uhttpd/files/uhttpd.init +++ b/package/network/services/uhttpd/files/uhttpd.init @@ -122,6 +122,7 @@ start_instance() append_arg "$cfg" error_page "-E" append_arg "$cfg" max_requests "-n" 3 append_arg "$cfg" max_connections "-N" + append_arg "$cfg" hsts "-P" append_bool "$cfg" no_ubusauth "-a" 0 append_bool "$cfg" no_symlinks "-S" 0