Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp643669ybl; Wed, 4 Dec 2019 08:34:40 -0800 (PST) X-Google-Smtp-Source: APXvYqy8PA2DYtkFv0YVcuvCVhQTx2v5KzY++Jxp2y+DFhiy2Osra+MUYOIJdqAU5ocapYjobs4/ X-Received: by 2002:a9d:7201:: with SMTP id u1mr3087416otj.181.1575477279984; Wed, 04 Dec 2019 08:34:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575477279; cv=pass; d=google.com; s=arc-20160816; b=s9EONbVL9bT3r1LzkFp7Z6BjpUZHR1QYQy7ywDbd83RvY/Wj8I0RPiI5ajCMpf2n6M SeawvV3+f7TSNJL6rYWcamsf6leT0NB2yLnE12DTnXfhbXorqxC1BCTG0pYmNt/X8MPl MFy80oxP26Powi97CxXfMNsvclJzIgGPksk6gfNeCrxI1jUWB75zqW5N5g9WbZJhQvcG s2gU/Ucx9DLno6IxuVmq/QB8372qlaEucX3Qh/5SzLmbkqHXxiD9SGBHznAmPIlq7uRZ jnPqKQaCkV9EmPFxElNiBkkBoGBghDybpbGgV+vMUZ1pX3f1L9LytEhdvQcD7Ii/byKu QRWQ== 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=CXVb1Fm0PoNfvRGcc5MlMmNuGMYamRmqWAT1dqDhhC0=; b=EQGWEnjgGGQhywoPYVqq52ieIKcxMssyr1WywbASqIeSvgI8zpJk0GAmM/Xq7qk5EN ZF68VawkHApBrZ5f3cj1WtOH1T7ycw/bjT2UqiMHUhY8RYqE1VUghp5jmqZkDrjQpZMf JAhTlTzTSa0pZTlapcy7+L2d3vn8djvFLzQbfT2XbVTEOTHzUnScCsh5lkwqIvSaRHAK rEx7/DLyboSV76HbIoanKd6pUhw+44/XdTZpg5UB6TlDw70cwx/v0sf3S5ZcOQnRPki8 4wZLahAGgHhstApoqKspiVW2qxiCpW/r7eyVD0W/xOi05BVU04RGh6KCgXcX13sDKtjd NWTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tresys.onmicrosoft.com header.s=selector2-tresys-onmicrosoft-com header.b=S0OX29Sz; 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 e11si3473936oie.22.2019.12.04.08.34.38; Wed, 04 Dec 2019 08:34:39 -0800 (PST) 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=S0OX29Sz; 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 S1728204AbfLDQeA (ORCPT + 11 others); Wed, 4 Dec 2019 11:34:00 -0500 Received: from mail-eopbgr750091.outbound.protection.outlook.com ([40.107.75.91]:45515 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727867AbfLDQd7 (ORCPT ); Wed, 4 Dec 2019 11:33:59 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=idpLxt0fNjRT9shrX7fwa5O5Gz4Y4sIcMHy5h2mQPTBmFDUGMjErl5HyLARJZW9/B48JUq0184aGT3CAN8R8RViaaq6zEmTgu0vDY8fOletB2iO59rjfgiXsqdhlgOVR4mFpLL+hd7oxenPardlaR/1h2gcbpHoJamTigAtVa7GXO34PmvD+3SfgbmyoLnEyABW1KINtFyN3H5Vf6Yrn5D+WXk7dthoji0AJXsyM/vTM/Of7LrWlQXu0tTgnsz5pf8uPkOPdRdOaBwR5LiEJvsvGWMtYzDqTXZx/Ld1/jPw2cdQjBJ0pnkNNX4hIpfIoGSKFk3dBTRHDwWz7QsZVcQ== 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=CXVb1Fm0PoNfvRGcc5MlMmNuGMYamRmqWAT1dqDhhC0=; b=mYrnORLdV2QW0a++Gj0ei7wMq2iW3n8R4akE/8r1skH3mGI5MIxIKkGr1HCziXLLcZqsIrmrwmztsjfINYUApp2JsVQAv6nFF81xUEWi80hY97ebJamDRf92JMoKnRj/U2FjesxaVlUezgR0B7vECJ/9Zc11vGFC/v+tquaNQruU5ZuPsBP56GSRvqBEBQCcd2gkInuZHTLmSa7ygaUdJwiaMvFbR9rPNEQldns8PUy363f9+ayk/m+eLjR4bNCue3Z0l6+XQGwQOssDvvqIyPJnl1VZ48mlmUgT/LCmflIHpKJquxSEeU/Ufs8SU5yvaC/TiUEZr/+78+9oh7XOQw== 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=CXVb1Fm0PoNfvRGcc5MlMmNuGMYamRmqWAT1dqDhhC0=; b=S0OX29SzLh8OjYqzMbSAQ8U9XJoJLxwjmmm+evJ238v+rYT9EC+NeDj7fM8dZrIDLtqV55JFnx4mo7+vxWHrpHs7hzeHpNbe125sxxwiDUlTLCoiUy4yY8n1Mfye6+ePmj7SNeOzrUU/TzCNOXsYDdDEdEECuda7L/dnuZgJzg0= Received: from MW2PR1501MB1978.namprd15.prod.outlook.com (52.132.149.154) by MW2PR1501MB2076.namprd15.prod.outlook.com (52.132.148.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.22; Wed, 4 Dec 2019 16:33:20 +0000 Received: from MW2PR1501MB1978.namprd15.prod.outlook.com ([fe80::a811:5450:8ff0:ab16]) by MW2PR1501MB1978.namprd15.prod.outlook.com ([fe80::a811:5450:8ff0:ab16%4]) with mapi id 15.20.2495.014; Wed, 4 Dec 2019 16:33:20 +0000 From: "Sugar, David" To: "selinux-refpolicy@vger.kernel.org" Subject: [PATCH] Allow syslog to write to the runtime socket Thread-Topic: [PATCH] Allow syslog to write to the runtime socket Thread-Index: AQHVqsCJODZfetSeCkG/P0j6mryMbA== Date: Wed, 4 Dec 2019 16:33:19 +0000 Message-ID: <20191204163306.16545-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: SN4PR0501CA0055.namprd05.prod.outlook.com (2603:10b6:803:41::32) To MW2PR1501MB1978.namprd15.prod.outlook.com (2603:10b6:302:b::26) 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: c789e4ac-7a8f-49f4-ef9d-08d778d7abee x-ms-traffictypediagnostic: MW2PR1501MB2076: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:374; x-forefront-prvs: 0241D5F98C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(39840400004)(376002)(346002)(396003)(136003)(366004)(189003)(199004)(508600001)(52116002)(25786009)(6506007)(5640700003)(71190400001)(71200400001)(2906002)(3846002)(6512007)(6116002)(14444005)(66946007)(6436002)(66476007)(64756008)(66446008)(36756003)(14454004)(6486002)(66556008)(7736002)(2501003)(305945005)(186003)(86362001)(2616005)(5660300002)(81156014)(8676002)(1076003)(8936002)(81166006)(50226002)(316002)(6916009)(99286004)(2351001)(26005)(102836004);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR1501MB2076;H:MW2PR1501MB1978.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: lRqkADFS+EQM/rhQ6kGUie5RXoGY2yabbimVb0gnHA295AZVHls6J2+gobRa2kp2nxAbOeEXdT0DJCj23hSU9GqXm6Lkwc0Uiz27OO47UWXq8MFg5ZUGhabZPXvbOJrV7oxSndmfYfGyXwVMD/QtFgXUE4+/sYKx3m7OeU6ZmTBjSiGTwjSITZA1xYRPiLSsJpT19F2gs9Hi0xHWrDJUMrRnqIhymYxvSD4EKoXDISf58QSYu+OZ4fW8qtP2gTk2s3IG1Z1T/FY/TCd9y1RzpCcGiS4AiWLexZjqMq1b6dBFVq5YQujnI8sY+20fME7Qq8gslwSvWai15AnNLNeTXxrFum/j04x8WGF5Zfrlmur4Igs75XbFPyvOTtMG8QDoBpZsVKpJqemDJAzbYQKmarDSI3EYQBacWQbQxUsuVOkJhvS/OhEXvvC9gAW+lWVO 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: c789e4ac-7a8f-49f4-ef9d-08d778d7abee X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2019 16:33:19.8996 (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: z9Wrvr1J0sdhf8qIVPKkt/f9K7sbtFabYDNS5Ma3dOM3kfrHhjBy8+UqiQhFdIVgoKJDMfbmQpYl1Nt9XOsKLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR1501MB2076 Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org This is realted to my previous patch for logging, I just didn't notice it b= efore. type=3DAVC msg=3Daudit(1575426773.635:2469): avc: denied { write } for p= id=3D1213 comm=3D"systemd-journal" name=3D"syslog" dev=3D"tmpfs" ino=3D2268= 3 scontext=3Dsystem_u:system_r:syslogd_t:s0 tcontext=3Dsystem_u:object_r:sy= slogd_runtime_t:s0 tclass=3Dsock_file permissive=3D0 Signed-off-by: Dave Sugar --- policy/modules/system/logging.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/system/logging.te b/policy/modules/system/loggi= ng.te index 73ca3042..eee6bc18 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -427,7 +427,7 @@ files_search_var_lib(syslogd_t) =20 # manage runtime files allow syslogd_t syslogd_runtime_t:dir create_dir_perms; -allow syslogd_t syslogd_runtime_t:sock_file { create setattr }; +allow syslogd_t syslogd_runtime_t:sock_file { create setattr write }; allow syslogd_t syslogd_runtime_t:file map; manage_files_pattern(syslogd_t, syslogd_runtime_t, syslogd_runtime_t) files_pid_filetrans(syslogd_t, syslogd_runtime_t, file) --=20 2.21.0