Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4213573pxb; Tue, 19 Apr 2022 20:40:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybgkaSoorNpthHlWH/c8eIvF+UjrC+awOLkqzCfMFBk6dTE+tV2IDhLLShMHh9SkQ6FBfe X-Received: by 2002:a17:902:6a8a:b0:156:8ff6:daf0 with SMTP id n10-20020a1709026a8a00b001568ff6daf0mr18689540plk.117.1650426032401; Tue, 19 Apr 2022 20:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650426032; cv=none; d=google.com; s=arc-20160816; b=AY06FlhPIfFzqeyWR+hHkCXuwrHaVwhnjRnJdpp0YIoAz8bBoyENOcA6GU3delgts8 gIzKPLQdtVen7AZMVR7R98UIyh9Cnqapt/VwWRwqcw5v76OjWldCn6VmJK3C+USz1yT7 NQ0m5rJXKJ94wlJB3ahQuRfdm1xVH480fnuotIx68NYe0A8JRmoAm/CJb47QsJuPG2aO pOyMQlbWNaaYEcmztzujySrkLtI+WYs32UsfjFT89bYu0a9FmN7GjYefBdsnHK2Zr1tU kFZpt1xwRuepjLjmHQo4Lf9Cspj3qptiqpuF0LV/7F7Hwsyt3+DkQEfdkRvicYG8jQKM 0Jmw== 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 :message-id:date:subject:to:from:dkim-signature; bh=cpC8I70JYwdChRMXQiLRFRC8lTmz301Myr+X3NnTpdo=; b=HaIElje+sCTzH3xi2udiaBGpTfNLhl3QbPNbIW25cQBM53msZq18U2suyiHly9Bcj6 +S79dzl/s4zeNpnME0PL6y15ghJUPZ8LSOmYzbQyry7E0QYZc1mch+6PthvmJ0sqPAPM R6tNMkiCXKow9yy5bAmMCGVo0c+qQ8L4oXcBgDQ8cJUo+UTVUPuFkEFvLvyIgvL/V2UB cT7aC4s0srvE3rgdDlWW5SPAsm8FouW+C+GFamp2GerX2xt8vhswyuMZ9+jpT+QegYsQ LyWe3ze+OpZ5IPTK3QIbkocTU30cHpPMcoNlYJnm7IrQhjG2B11YI8+mvGfbWO4GxkuM 3gIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=phLrvlF7; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a637113000000b003a247aef080si294583pgc.586.2022.04.19.20.39.55; Tue, 19 Apr 2022 20:40:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@gmail.com header.s=20210112 header.b=phLrvlF7; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238808AbiDSSeW (ORCPT + 99 others); Tue, 19 Apr 2022 14:34:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357249AbiDSScg (ORCPT ); Tue, 19 Apr 2022 14:32:36 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E121B419BD for ; Tue, 19 Apr 2022 11:22:39 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id o5so16233356pjr.0 for ; Tue, 19 Apr 2022 11:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=cpC8I70JYwdChRMXQiLRFRC8lTmz301Myr+X3NnTpdo=; b=phLrvlF7lA7CktGbW+PgPgvg4zhvWemxRl3koRwmJ2ZpsbDglPRuelLo6pFtpsx/++ gKN24P0AJlSQr3acMAb5ajP/P1XK8awwBc5nmN7KcW9+Osgw3SYDWH1WScMlTDl3XUKS 5K6HnS+HKqw+81SgqXNP3XYG7KTOlLWib2DW3S6Jnks4w2QAWeCMntl4c4KLd3tC5aw2 tb4Q8FZYlB3PvDIqOM6OFcRSLazWwJmeknIfVAqg+8aZ7jTfVdyPfcR0cy7xSsOS9TiJ O6xH1RtUu4JzayUlMxVXodzRvKvQsWiW4hhQ/SbqGZbDk3+FWELOwpPsmN8Wuaqkr7Es UFtg== 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:mime-version :content-transfer-encoding; bh=cpC8I70JYwdChRMXQiLRFRC8lTmz301Myr+X3NnTpdo=; b=WwpPxTpjEygAbK0p19q+ewtnfOEA2NYEJT58MnBWYUbxvj6pMAYCz/VJ0Ylb+TzvFX ksCd9ju33qtVodbaBVf3IG826uJDl6wi0THPpphhwOILqzwzqN1lhgZpOPOK0rm68PMl JrtwdVfedf7rwCxZkhiHorte4m73phcVmSW8Rvn5O1XLZ2IcUgGTYke4ExRVuCykanQv 1OGT3f48zReBYHpfCZW+/uwegxO7OTv3RjGSIL8EZe67y3cK1ZhdyaoxgHJ60Bqcn5hZ TfKn+vPIZQTLIGUMkXUbhwtJc+kDYvG00lLn27YhSrHYRbucl7WfO9Y6PmsUJXH6Usg7 gQcw== X-Gm-Message-State: AOAM532jEPBkfX9Z7jo4znfcz3H9PVbc2+TBkdC2dxmF79GXrdv4qKeR Ru3OrN4/WxzObVg5CGZyAz7WOFVc7x8= X-Received: by 2002:a17:90b:1a87:b0:1c7:3d66:8cb with SMTP id ng7-20020a17090b1a8700b001c73d6608cbmr25778294pjb.142.1650392558779; Tue, 19 Apr 2022 11:22:38 -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 kx3-20020a17090b228300b001cb7ed57660sm16688613pjb.52.2022.04.19.11.22.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 11:22:38 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 1/2] bluetooth.service: Set StateDirectoryMode Date: Tue, 19 Apr 2022 11:22:36 -0700 Message-Id: <20220419182237.2531907-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This sets StateDirectoryMode to 0700 as it is the current mode used for creating files inside the storage and it is different than the default systemd uses which is 0755: [1] https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectoryMode= --- src/bluetooth.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in index 4d39ad49d..4ea98b506 100644 --- a/src/bluetooth.service.in +++ b/src/bluetooth.service.in @@ -20,6 +20,7 @@ PrivateTmp=true ProtectKernelTunables=true ProtectControlGroups=true StateDirectory=bluetooth +StateDirectoryMode=0700 ConfigurationDirectory=bluetooth # Execute Mappings -- 2.35.1