Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp55017lfe; Fri, 15 Apr 2022 19:12:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysSqY11XDAe9eUM+b4fs4z1+GdD1rmgfdzAnCswRD1tfceqswH5+TcdZkSG40QlZr/6V2B X-Received: by 2002:a17:903:2312:b0:158:4891:9cc with SMTP id d18-20020a170903231200b00158489109ccmr1516877plh.138.1650075151411; Fri, 15 Apr 2022 19:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650075151; cv=none; d=google.com; s=arc-20160816; b=ZzBT6CqLxxJBk4qn2fE8rVluS9pJ+5T2gEO9rC69qM/wxyB5ElwXN3Ev1FMEZQW5oE J3+f36u17eFCrd1pgMnWRoozpgnPxbpSXX1O31EO13h5q1xjz/jYGr20e7N1OFb0cUQO OF8GFsQD61eFX6cxDBI3FuKi3a7fnCiMq5CpxJOPtW1F3LpRuUe6TWpdNlHNp8yj4rOR C46Yac9k7ugliiYhButZmMBUik3fva1ANOkEYYmxHnipqPXb25cI3YvPbpRPUbXt+XcJ WGcDMaEu/qaxvnHDj521FRMHMfgCCe/ZuJSjR+CfqV0kOffibE1Dj4ejohTiHP+dmc/q 3tVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=b5Twos+p4hSu1P5iPCm13kYMd+uhzpPNeflKVvMpzNE=; b=ND7pizt14Wq0tk4oeyNA24ai1Gvq/fLDhF8MdlCXKrgt0pa16xFUmDFCmvR/nWW2ia mgsyhoCV34qwFIJscZVSdTa9i0RCT+TbPkXqOP4IS6bb5Nch+HMaempnh2sbXkuQEmGe tHBIY9XZWRQMpfj72H8l3wEoXYgA6K5ZYjpOJRanNMQnoFeaxw2c6zPcVyVVXpZORIps LhdQDbBXTWGJAAm6kQTf9kdHz+Eckn0kYR1V+rIM8deCJEOlozUrnDUe6lhFQzYY7kgW +Wx38zFayK/kSwkbEK670vCB3+uKPVjT1Jjai99iI3DUJKqeyv9NpM4LbMQun3x8SM8e JjIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PjoZsgdY; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x64-20020a638643000000b0039da9a719e1si2835486pgd.25.2022.04.15.19.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PjoZsgdY; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4EB01EF9E6; Fri, 15 Apr 2022 18:29:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbiDOWd2 (ORCPT + 99 others); Fri, 15 Apr 2022 18:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235432AbiDOWdY (ORCPT ); Fri, 15 Apr 2022 18:33:24 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DACB85BED for ; Fri, 15 Apr 2022 15:30:53 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id p10so8063761plf.9 for ; Fri, 15 Apr 2022 15:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=b5Twos+p4hSu1P5iPCm13kYMd+uhzpPNeflKVvMpzNE=; b=PjoZsgdYB0kcBtvQUbiLxBqLIpl+5MXjfm+OSluyJth5cUBpJ/+8wsyMDzdrdSQ4Xw BpXrogPVHEKPIe580Pt/DHkevp37M1dgdiR9LGfTgrzu+SaHT+dIlZfcKNE6Yse0UsQR lc/Eteb02Mnaqvd5NcxovzsCL3i2WDm4Gi0Um5FALg8E3O24t6S1BANC2C9NiBKTaqYA oE/LGKVQsAt9WlDffnYTvn2wrI681MhbLuCUFO5SeulurYHbfb5gKvHnveGFMP+tSSt3 uinEr+4QgBKVBDrfJHgjRDIoMkZsQ34EPEYNBHq/SyYQtD/iJbE+emut/4i5T3g/HYo2 yThw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b5Twos+p4hSu1P5iPCm13kYMd+uhzpPNeflKVvMpzNE=; b=XfS38A17CJ8IPehzjF++C16wgyDEi96Cx5L6DO6EVuwDd2QTQetEO/f/FBUHNrchJV QInncGlIELUnGnNMsZVkgkqqnQMcUvXatSCe6YBlkW7k7qRNQHDG5GX4y5ZeZtgkvR4a ymuVVuorHOil0zZGV9+7FXSyV42pff1GeWz1LRxeCrO4C/XWn7zuhRXGaV8/tEVduwcl Y4I4VmR3efYP1QfWY43geC2WgRCnodLWYKeIU8nSwnjrYwR+pmRtoG76MnmNi2aZCKN1 NpmQ/niV9gD8uRVRSTmtY3kMDCx3Jpp+ftMAjgXjhT2TwooNl2ZoHDXgT8d5USQGAHMU rFkw== X-Gm-Message-State: AOAM533nbw3JB1AIepXj68CVtSC9CxgKGBCNu9UE4896m3YHigHnRY0v AD/U3GoYXUafuuJVJAgoncYg2DA2Juk= X-Received: by 2002:a17:902:e8cf:b0:156:36e0:6bcb with SMTP id v15-20020a170902e8cf00b0015636e06bcbmr1090077plg.105.1650061852610; Fri, 15 Apr 2022 15:30:52 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id t38-20020a634626000000b0039cc30b7c93sm5132594pga.82.2022.04.15.15.30.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 15:30:52 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 BlueZ 3/3] build: Make use of StateDirectory and ConfigurationDirectory Date: Fri, 15 Apr 2022 15:30:49 -0700 Message-Id: <20220415223049.1155838-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415223049.1155838-1-luiz.dentz@gmail.com> References: <20220415223049.1155838-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This makes use of StateDirectory[1] and ConfigurationDirectory[1] to inform systemd what those paths are used for instead of using ReadWritePaths and ReadOnlyPaths which can lead to issues. Fixes: https://github.com/bluez/bluez/issues/329 [1] https://www.freedesktop.org/software/systemd/man/systemd.exec.html --- src/bluetooth.service.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in index f18801866..4d39ad49d 100644 --- a/src/bluetooth.service.in +++ b/src/bluetooth.service.in @@ -15,12 +15,12 @@ LimitNPROC=1 # Filesystem lockdown ProtectHome=true -ProtectSystem=full +ProtectSystem=strict PrivateTmp=true ProtectKernelTunables=true ProtectControlGroups=true -ReadWritePaths=@statedir@ -ReadOnlyPaths=@confdir@ +StateDirectory=bluetooth +ConfigurationDirectory=bluetooth # Execute Mappings MemoryDenyWriteExecute=true -- 2.35.1