Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4812578ybg; Tue, 29 Oct 2019 12:46:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPINztjWHj7IEHGHbC+XSe2umgmOzNF72Fy0ktlXusRfhRARYvAFIDM6yiwXmVjhGMb+QT X-Received: by 2002:a17:906:4bcb:: with SMTP id x11mr5195272ejv.9.1572378386646; Tue, 29 Oct 2019 12:46:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572378386; cv=pass; d=google.com; s=arc-20160816; b=vYdU6Nj9BQwxnrqIPLBXfaUg/H9MuorN2dg/Xtjr7DKxq64KhQ2rFTHCmAogImu2Bw qN/nexX3taLPB1T5E5gvDyVjFKSZP5pS7ncSS4mMDT2eI1zrCjCIezcRsLSULWwQ7ovK Sb7DLkC3cqDixeQ+9Iso5DB6YMxJkX8VdVZyjwNRKobxFuLweAJRiNTmMV4TQvngAR69 //O/uNVIiXcoZksQKsrs58WcIckTuQSHnDpWt50pToxsVPDHj33LAiSDnEe5q5DKBKk1 8ciMKvT7wWwsfMHtKSJ1WN3d3tdIDhizih5ELpEeOqPnzmVfUh16DegNezSgIcOpEmVs zp1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=QN2NzQDlbdKTAT+5F5TtHu7d8G4Ks6ZJizTD50+YTi8=; b=Ev2k7gqR2bQUf1bhV9NsB7356mlMgWp7CYBARVNrHwF+ad5dWPuUg2mG074YR9B1z7 kIhgM9k/dBbrLmkLbgX+vdCx472wMLKNSa0sptW2ljLN6IYYSrLweTe0ObCDqoKuT0rH lFnHqC8zroNmAu4VrGWMz2SKLo1KDHPofHVyyQgf13hQ5/FGv8IJAl1JpKSuu+Pfhc4l pDtKAR+RTfRwna7jnqMctZP+5kLH9iJCimV9rmhpYmgrn1CXYeY0OjWH72G6kLTKd2Hr N5/AQTD2dPJRTGt+7hoAshXAk3WwAaRrSh6+q3cjxplgq+BMqYTutqyZeksACaf6irbb c+cA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tresys.onmicrosoft.com header.s=selector2-tresys-onmicrosoft-com header.b=px2AWsXw; arc=pass (i=1 spf=pass spfdomain=tresys.com dkim=pass dkdomain=tresys.com dmarc=pass fromdomain=tresys.com); spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si10867281edm.271.2019.10.29.12.46.22; Tue, 29 Oct 2019 12:46:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tresys.onmicrosoft.com header.s=selector2-tresys-onmicrosoft-com header.b=px2AWsXw; arc=pass (i=1 spf=pass spfdomain=tresys.com dkim=pass dkdomain=tresys.com dmarc=pass fromdomain=tresys.com); spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727045AbfJ2R2J (ORCPT + 11 others); Tue, 29 Oct 2019 13:28:09 -0400 Received: from mail-eopbgr690118.outbound.protection.outlook.com ([40.107.69.118]:64770 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726877AbfJ2R2J (ORCPT ); Tue, 29 Oct 2019 13:28:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DAQNObibZWHrFJsAlmcF1KkPKOg0NCL9S4p/0vk8AN4YAfsL3MHo7j+JeEKtqqxvrPsTKE2HREOyVjUjwSjv5ainciGwtMF3eQS6AgKhyietKkLN20KBs4DoMqekwNKAqefuMyPBhMN8jewIiSHhm/RJDjo9sURGjupDJzJeD6uHs89eKVa1JRqnpXeEOc0tuYUar3QuPYJJPtqx5qy/PuYWANldWkDeNclQuF6O0wExQD/XNEzfzIlXh9GyTYJWlRS87lkaEoEGwg7hc8nnBHA3rzGfJ7a3NvOM16G1sdXewIb/YiruPTdELMExQSbPtBzoqcKVh9HFCpY19mA4zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QN2NzQDlbdKTAT+5F5TtHu7d8G4Ks6ZJizTD50+YTi8=; b=Ng1l6Kx0FXgF8QPZd8mO1rV7dPQQ4vWZ3wqRTUce/dGtAM7IcnkuNB1q/nLMW1mj8EErVLlgZixyRSh87fpRid4oSFGMbVO1GNvVG9bqUjj2HkXY26BIw0jB7SCF5cSwqqzJamex8dsV5hctP9yjqz+wL/h1bVQlSPiu6DnIiwmd59RzlMeXK5Q+TseBjTSo+ifWK06JWBnDNJkp8LA40lAR4GyjSF4G0ilCEqcd3cySieOTM7MYwYelDaECrZdpMXDEGcdse5y+HB6P/Yec1Y0UC+6vuepVD8/8H6SixEAKzTSX+/K0vsftJQs3kmLoyxsc2UTpKO8Of/sDVCy06g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tresys.com; dmarc=pass action=none header.from=tresys.com; dkim=pass header.d=tresys.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tresys.onmicrosoft.com; s=selector2-tresys-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QN2NzQDlbdKTAT+5F5TtHu7d8G4Ks6ZJizTD50+YTi8=; b=px2AWsXwj66lls5cHGetygqiCWOKxMdA2g+IGufzyBq4xZPh0DXrKOZh5Rre3MsXY4RPSGl0XK0K/NjpSFMmGJphjLs6H9jbYR6JaxXBKLankcePpAvunMAUK7y6zrDkeW+xgcqFN82ObWbpT7I3WVkbFsfTLTN3KwbwPX2VsnE= Received: from BN6PR15MB1507.namprd15.prod.outlook.com (10.172.151.147) by BN6PR15MB1250.namprd15.prod.outlook.com (10.172.205.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.22; Tue, 29 Oct 2019 17:28:05 +0000 Received: from BN6PR15MB1507.namprd15.prod.outlook.com ([fe80::2dfc:3992:55d5:c81a]) by BN6PR15MB1507.namprd15.prod.outlook.com ([fe80::2dfc:3992:55d5:c81a%11]) with mapi id 15.20.2387.027; Tue, 29 Oct 2019 17:28:05 +0000 From: "Sugar, David" To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH] Add missing gen_require for init_t in init_script_domain Thread-Topic: [PATCH] Add missing gen_require for init_t in init_script_domain Thread-Index: AQHVjn44XqQdg4rTpEacsxoDx8CtsQ== Date: Tue, 29 Oct 2019 17:28:05 +0000 Message-ID: <20191029172752.1311-1-dsugar@tresys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [96.234.151.2] x-clientproxiedby: MN2PR16CA0027.namprd16.prod.outlook.com (2603:10b6:208:134::40) To BN6PR15MB1507.namprd15.prod.outlook.com (2603:10b6:404:c6::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=dsugar@tresys.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 45611be5-f50e-4b6f-f953-08d75c955b45 x-ms-traffictypediagnostic: BN6PR15MB1250: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:346; x-forefront-prvs: 0205EDCD76 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(396003)(366004)(39830400003)(136003)(376002)(346002)(189003)(199004)(476003)(486006)(86362001)(2616005)(8676002)(81156014)(81166006)(66446008)(64756008)(256004)(186003)(2906002)(26005)(102836004)(71200400001)(50226002)(4744005)(71190400001)(8936002)(6116002)(1076003)(3846002)(2501003)(6506007)(386003)(2351001)(52116002)(36756003)(66066001)(6916009)(14454004)(508600001)(5640700003)(7736002)(6486002)(6436002)(99286004)(316002)(66476007)(25786009)(5660300002)(66946007)(305945005)(6512007)(66556008);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1250;H:BN6PR15MB1507.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: tresys.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hY9J0tSlXnquOurUctoO/HMuFuYIjPyo2+/w6wnEcR+KEMy6bA6jfqS5aa6KE2RuNUoTBx9IjlYDq8IH8yt6sEpPFufXFDhjutAYucaxLICTg3LbA72Oa/XKiLV1b4bt2ulRSaEhPkyKJoOVmHTaFW7RVpXlbUezk6noU5zx0W/3aodM6u2aKnJJQawjubYAqeBWe4UHY77qufi6ysmwiVSQ0UZqVDZmXFDR0Anta6G4Fn7IInelp5SPIUT4r5wsDNB42PT2zi+JyKcHhcxFDBRIettVnKLjoErA/9pFlYZTM/0VBy4Vqv0bK8izZw/p5PoKJ+Bl0ZkJI8mqyfJ3vybWTmnsBGfEtiqm2yawMKOvf2XMLSxFzgU/7bMn2PjMsakZ+wO1aTU7UcLf8xApOle49rJoaXekclORqYCvFVR7u7WZQ+Oc7QLUMlM5iC4e x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: tresys.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45611be5-f50e-4b6f-f953-08d75c955b45 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2019 17:28:05.0468 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a0d45667-6c07-4e88-868f-4ac9af95c7ed X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZS4UG/WsXottzoh+6kBoQxTtuwQ+5rEgT+J3fIqwadRsogeP1/d+JjaLFM2s6vhT6lz0ALI5r7kONdxQGKo8gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR15MB1250 Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org Signed-off-by: Dave Sugar --- policy/modules/system/init.if | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index da1b9727..a98180c1 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -101,6 +101,9 @@ interface(`init_script_domain',` domtrans_pattern(init_run_all_scripts_domain, $2, $1) =20 ifdef(`init_systemd',` + gen_require(` + type init_t; + ') allow $1 init_t:unix_stream_socket { getattr read write ioctl }; =20 allow init_t $1:process2 { nnp_transition nosuid_transition }; --=20 2.21.0