From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2CF7A158232 for ; Sun, 8 Dec 2024 12:43:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C51F9E0BDA; Sun, 8 Dec 2024 12:43:44 +0000 (UTC) Received: from paraboletancza.org (paraboletancza.org [IPv6:2a01:4f8:1c1b:d2f8::]) by pigeon.gentoo.org (Postfix) with ESMTP id 84153E0BD2 for ; Sun, 8 Dec 2024 12:43:43 +0000 (UTC) Received: from paraboletancza.org (unknown [IPv6:2a00:f41:5800:296b:f2a0:c97c:cb49:4cb]) by paraboletancza.org (Postfix) with ESMTPSA id 7C2F036981E for ; Sun, 08 Dec 2024 12:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paraboletancza.org; s=default; t=1733661822; bh=37TkdZpjcuaI80IxyMjNESWPRcRpg8RfW5dqA5/AGKo=; h=Date:From:To:Subject:From; b=Ba/YFUMA82fkMNKcRGEN1f7cr7u3L5wP3bXLHE0rm5cB4LuPKB7xSXnx8IAWYaNKy nHkTwfLEpkzQX4IPspPGRGCgj1KeZElKbSe/aERsxF332TWcO1HlDtcVcQHHG8zqk9 6MgceYqw6jX3s6EwPliUgg4ESA2M6szlVEleeVlM= Date: Sun, 8 Dec 2024 13:43:41 +0100 From: whiteman808 To: gentoo-user Subject: [gentoo-user] Choosing the right profile for Gentoo LXC/Docker containers Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Archives-Salt: 4bc68808-d6a8-41e9-909a-8f325ad97216 X-Archives-Hash: fda285a76a6f2ee4c31d491533a36a0c Hey, I'm going to setup Gentoo binary package server for LXC and Docker containers that will be used on the production server. On the server I already have hardened profile, so the my question is whether using hardened profile on the containers will be beneficial in terms of security or if it is sufficient to leave normal default Gentoo profile default/linux/amd64/23.0/systemd. I'll use these containers both for testing locally development applications on my laptop before deploying them, and also on the production server. I use this server mainly for hosting my own personal stuff like PHP websites, mailing lists, Jabber server, Git repositories. I want these containers to be easily deployable on different environments, and portable so I should set in CFLAGS, CXXFLAGS etc. -O2 -pipe, without -march=..., right? Thank you in advance for helpful answers, whiteman808.