Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6938500rwd; Mon, 19 Jun 2023 15:18:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jzckZjKn6A/3MCGTHYtDySSdIvno3/oL+jpD4EoD0rSwVIsEScHgHt+XUAl2+v9STd413 X-Received: by 2002:a05:6a00:14c1:b0:668:8493:2552 with SMTP id w1-20020a056a0014c100b0066884932552mr3018648pfu.18.1687213089844; Mon, 19 Jun 2023 15:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687213089; cv=none; d=google.com; s=arc-20160816; b=m59toLgwXH5qegXqQpwNhErHq/LXOirVjqYbWcWhNvykGDpkaTmOLwCDQXkLMZDkJH NXyKIlRHiZDAIQpSpMU1Nz5IC9qJPJ4LqH5uoLKpfa9tcSIGlgLJWysjSghttZKgFpa+ g1jKWM+W9aEqy4QIk6wNFVCxZSlyi0loDepgUQz/5/PD3ORnglVHrt/7d46MHfYE26pr cl+bLf+nb5aQ6pR7SGwwrsbyRLjTSAyA1lpBI3oeNk3SHCuyUkK3FJc8BiJy2i1V+3/Q DjpD1DuxZU+ZNvol+QxzJGyVoN46dH75MnThdkD0O1yCfdl3XIJ6RaDYq8NQBKlIGna6 8c5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ZfGwSWonWBN26ecTP3gWkXOCwieG5Sr/urFm9BHeFnc=; b=wiJqz1Z1WgptUxQHROu1XiIYt+J4kMyjpFAkssydci6693TsZvxA5JcPFF1p+MuG0l QzV/vXBZWJrNSJ847HHvqPzQZaazjbub/NKtmH1dDEF+6dzmPGv5zPNsGklGOcIM2xmc Rxo8peRcPabkcfROwROxtMBYNDm4wdwFWr8Q5Tj65ElmsIkigz8aF8ckd57H6bi61lux jj/zJ91QwIMwyr/LwR4sp0nvsG2i6b4OPCljLCO/GKzTJRSv52ZNLUSOX9t3zGaw2sP2 FTaoBFc7/4gpBjZdkVz3NeHoGUFWYr/sVx9V1pXKTE8Uj8SVpi4r12a4vrHpEJVtrskD gA6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=JoZOnSLC; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j71-20020a63804a000000b00544538e2041si353456pgd.305.2023.06.19.15.18.07; Mon, 19 Jun 2023 15:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=JoZOnSLC; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229868AbjFSV6V (ORCPT + 21 others); Mon, 19 Jun 2023 17:58:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjFSV6U (ORCPT ); Mon, 19 Jun 2023 17:58:20 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C4E9AF for ; Mon, 19 Jun 2023 14:58:19 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-57015b368c3so33447547b3.3 for ; Mon, 19 Jun 2023 14:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1687211898; x=1689803898; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZfGwSWonWBN26ecTP3gWkXOCwieG5Sr/urFm9BHeFnc=; b=JoZOnSLC6AiZEFNYuVasCpycJzKb47uM/FVrx9BpgWer7FqiUb7DHvntPC0iLZEif7 7HBOHXHADBR+DReJJgthfT2XJyqaHvfG94b5zHgNyOf1C0ElOGfcS7y75u7GrJIUsuQt iZH0vFK1M6eObfbH9Xopht1l0H8JhHwN9WekP89P49ewcXNWpSctrp28L435Udo/EWsD pKAWoBM8BIcoEY+5QygBFzV9wGruBBmPjju77rM0y7IOBUU1zq+GCtZmi4Sf7fU8iXiR wnAN1SPkSdi3r9JLntadNiY4R6fkqhM3wSpbUC7malD8wDfsK3s4GGgwaMMKOi3TRDHp uDlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687211898; x=1689803898; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZfGwSWonWBN26ecTP3gWkXOCwieG5Sr/urFm9BHeFnc=; b=e5LA7tqIJE2Yy94SYFC/c/j/Tea3Y7jWPX7cZdia/jsjBjEqrHV8uu8+mWaHbPMTBu q6weDPwA9pAH1qF8lNLcCmMbKdG1aukFCvQuqFcciOvC2NSkPNQRuWfWbmrJuhxguP8I kqD7Itb1GEDWX9l4kUa/gqH060SI9lIGSdSfIf1XAo//DJcCTs3sHWYTwReB+TNSRqn6 qCH2SbZG3AFa+PeuK5VdbE2jqjqX68JLd1Ano3x8R9XlAEvmUo9NzUjhLSrHQp7sGNJ4 fZOgppT8LaEMwRPJ3X8/DexnHC1PA6cNHRV/xnnVNuk/7E6vQ5Cf893TAeDTVltL4cR1 BQ/w== X-Gm-Message-State: AC+VfDxZ32oRft9GexGVqI5Zy4gHnKxME/N5XkkMfxqOGBf3OlsnJrPr wexPLijHsolV9jS9OC1CZQA2enyfUTHE4G4RyMYW X-Received: by 2002:a25:e70b:0:b0:bc7:f963:eb48 with SMTP id e11-20020a25e70b000000b00bc7f963eb48mr5681392ybh.32.1687211898503; Mon, 19 Jun 2023 14:58:18 -0700 (PDT) MIME-Version: 1.0 References: <87r0qcotc0.fsf@redhat.com> In-Reply-To: From: Paul Moore Date: Mon, 19 Jun 2023 17:58:07 -0400 Message-ID: Subject: Re: SELinux and systemd integration To: =?UTF-8?Q?Christian_G=C3=B6ttsche?= Cc: Petr Lautrbach , selinux@vger.kernel.org, selinux-refpolicy@vger.kernel.org, Lennart Poettering Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Sat, Jun 17, 2023 at 2:09=E2=80=AFPM Christian G=C3=B6ttsche wrote: > On Fri, 16 Jun 2023 at 07:43, Petr Lautrbach wrote: > > Paul Moore writes: > > > > > Hello all, > > > > > > Amongst Christian's various other SELinux contributions, over the pas= t > > > several years Christian has been working on improving the SELinux > > > integration in systemd. One of the things that Christian has been > > > working on is revamping the SELinux permissions that systemd uses for > > > unitfile operations, both to resolve problems and generally improve > > > the mapping of permissions to systemd operations. As this work has > > > been languishing for several years, I would like to see if we can get > > > things "unstuck" by proposing two things: > > > > > > 1. I've provided links to the systemd GH PRs below, but I think it > > > might be helpful if Christian could provide a quick summary of the ne= w > > > permissions, how they map to systemd operations, and how they map to > > > the existing SELinux/systemd permissions with a focus on helping > > > policy developers migrate existing SELinux policies. > > > > > > 2. Given the significance of systemd to modern Linux distributions, I > > > think it might be a good idea if we selected a SELinux "liaison" for > > > the systemd project. This person, or group of people, would work wit= h > > > the systemd folks to keep the SELinux integration in good working > > > order, review systemd code as necessary, and help represent the > > > SELinux project within systemd. > > > > > > How does that sound to everyone? If we are in agreement on #2, and > > > assuming he would be willing to help out, I would like to nominate > > > Christian as our SELinux liaison to systemd; any objections? Anyone > > > else interested in helping out? > > > > I agree with the Christian's nomination. > > > > As for #1, I looked on both, but I have to admit that I had a lack of > > understanding of the problem and so I would need some time to get > > into it. Therefore I postponed it due to other priorities, (but never > > come back). If it's still open I'll focus on it next week. > > > > > > > For reference, Christian's systemd PRs on GH: > > > * https://github.com/systemd/systemd/pull/10023 > > > * https://github.com/systemd/systemd/pull/20387 > > > > > > > Thanks, > > > > Petr > > > > Hi all, > > Thanks Paul for attracting some attention to the SELinux integration > of systemd. It has been several months since I last worked on the > systemd related patches, so they all need a rebase and another round > of testing. > > Addressing the first point, here are some details about the changes I > would like to see in systemd ... Thanks for all the details Christian :) --=20 paul-moore.com