From patchwork Tue Mar 21 10:16:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6716 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 4PgnZt1dJfz3xCl for ; Tue, 21 Mar 2023 10:16:54 +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 4PgnZr39WBzPW; Tue, 21 Mar 2023 10:16:52 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PgnZr2GyYz2y2l; Tue, 21 Mar 2023 10:16:52 +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 4PgnZq5Yzkz2xbf for ; Tue, 21 Mar 2023 10:16:51 +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) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PgnZp6WCJz8X; Tue, 21 Mar 2023 10:16:50 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1679393811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DHiSYF2pIcZ5yoprkWhZISK5ET+ouDSVHojRcprBPZY=; b=Dsjqzjvyup40hff9cSftGoTOWBpjbT1NB8Pr46ndMfCrq/rFCOBugJKkCsMAVBjbY6Bn9Q ritkbijwQPGwYdDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1679393811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DHiSYF2pIcZ5yoprkWhZISK5ET+ouDSVHojRcprBPZY=; b=Vrv8qsFI90nLKUCupOOB6otoHGCJzBuFDt7CsiINXwG7zBZoKpmJ/Te0pWYZlJR8lzMDMO W8vECPEsm/5ZXgd0YE7X8XmkHXWg2al9GAirD5AN0cNv6DTlwOOQGbeaGaRWW9JgduT87p X7FFIyinwe+2e2yLdgZVhnxQml9xQmMX9aL5YT1WfJZd6IZxyJEmsOC4xADR2bl9Fe48uM 3dlMrb5G3A5P6eC95nYfdeNP9gVYFfg9gDrzRoiptKIJAdWlNtn03mWe1kXbKFybdxMB73 CnMCbj2YGD/jP3U6kbHBbp5lULHLTOl1ZbADNe7JYoGYIXDU1T2I+QqgdN8nhg== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] FHS: Allow /usr/src/kernel Date: Tue, 21 Mar 2023 11:16:45 +0100 Message-Id: <20230321101645.1592206-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 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" This directory and it's subdirectories will contain the source code and helper scripts/binaries of the current compiled kernel. Signed-off-by: Stefan Schantl --- src/libpakfire/fhs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libpakfire/fhs.c b/src/libpakfire/fhs.c index 4582feaa..f419a4e0 100644 --- a/src/libpakfire/fhs.c +++ b/src/libpakfire/fhs.c @@ -52,6 +52,7 @@ static const struct pakfire_fhs_check { { "/usr/sbin", S_IFDIR, 0755, "root", "root", 0 }, { "/usr/share", S_IFDIR, 0755, "root", "root", 0 }, { "/usr/src", S_IFDIR, 0755, "root", "root", 0 }, + { "/usr/src/kernels", S_IFDIR, 0755, "root", "root", 0 }, // Allow no further files in /usr { "/usr/*", 0, 0, NULL, NULL, PAKFIRE_FHS_MUSTNOTEXIST },