Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2282257lqo; Mon, 20 May 2024 00:10:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFtNci8RaN+qHSGKXt/zwwqM2TuCcGfkXmFlAyJTI4o1BR5kXDkBTDr3hHosON90JKyJFZWHF4Lwiq2Uhyz+PBv0oyLXG0ctiGrmhk5A== X-Google-Smtp-Source: AGHT+IHGLF7yxXhrvSmT6hasnjQHqx4WdKWCjdRaQK5Xvj83gkEv++/nSWTCp9+sjXmi1vW1omJo X-Received: by 2002:a17:906:2b48:b0:a59:c9ce:338b with SMTP id a640c23a62f3a-a5a2d5f1479mr2024069366b.35.1716189026902; Mon, 20 May 2024 00:10:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716189026; cv=pass; d=google.com; s=arc-20160816; b=vTUA380qHG1UfaoHc/93cVYHnqRUyExTFlsladpDIrMIM6De7c0Ie1JOn+ccBvxL8I NQ9RFMVUBYCUwsRE1Oec/mt/aWCXoHTLh0tT7ObcGKzbZY4C2l6XvYw/+EYpfJ8W+NPw PZmEGEI13gb6I2idbGjpCteZQYZiIkeYlUr5sIeOmJDlCEh4DeRrlATTW2U1/xMHFh8G wJqHv7lJsajd1v722bB12lnx+7ZYrS5ckFqmEsBf9GUZaGXv5LX7U2w05oVfrayIU8Pt 5YMPpeclp/Vkx96NgdQM4pXvckexuAgtOpa5pcLSJOY4QIK+eULBHILMcaIiDtqgljKJ UfCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=TuQqCXB8b2VftvngsXDml2Ve6zEP9leJvUYafCXyXlE=; fh=IImizUpgYQGqiJQxdvmKf6mnuTxyqQ5pcSftwZ2TLno=; b=zjtbmv/6/zqcJNLGGPcR28fDSSNJ1mWuUyIwFxG9DvcvGXhmzMr7koKdaruy24foeW OEtifs/r6oSQyPNqF82hRQ2EPSPK8+u/nO7DACH9b7miqzAGBONHDYvaa4wJIH7neYIt qNCm+r2cC+QfuhbWPUIPQX2TgkflxipJqSWLUi02F/6e5a9V9k+nxteaL74bb35tFDUt 66e1gejIOXdc3Av+OITWkXtgQKPCAcAK9IpyI09wUQsq+DcIFaP8J2o6viKg+mxfuRZw bKLfDII6rW9mVrkiwfNlAmEYqHLslBoudbhfUMSX8ltncdmMQyq3xrivPDF0aiTclRHc 7cmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="CLUinGA/"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of selinux-refpolicy+bounces-14-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="selinux-refpolicy+bounces-14-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c2c728si1224062966b.970.2024.05.20.00.10.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of selinux-refpolicy+bounces-14-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="CLUinGA/"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of selinux-refpolicy+bounces-14-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="selinux-refpolicy+bounces-14-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9D7761F2153F for ; Mon, 20 May 2024 07:10:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82B89179BF; Mon, 20 May 2024 07:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CLUinGA/" X-Original-To: selinux-refpolicy@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A1BE11CBD for ; Mon, 20 May 2024 07:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716189014; cv=none; b=MfdGJUiDrkqxjo7fOnUg1D9TkFMC7VwRQWflngFjDdKltpet1vjagTP5NA8J7tDvskSfdHJNb7R4o44+OgbJ51TxRGLiCy74tZs7/Q+FdYjegb43f5vZiv7/AdHJQ3Ltf6ynTJ/wA8lNhMCIWjUpKGi7xmMzPujg1CZ0VfgiYjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716189014; c=relaxed/simple; bh=4D7qdKuXNL5vNoFCJjakeSf+kCrn1dlXEc0nUedRaQw=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=T7Ce0QN/kVpdaL36aR9Zi+d9gxPpkDViZM7xtATysleVwBpuFG7+5OAbSwDu/a8A1ZDxp1w30qzndRfuld6afobLc04nI+BsI/2JfWSnswdJJ7J+svSbylB+HaWTpcSIRHaC7RcJJdmAlA1UHgQnxIQHp+/uz6VRcD4m+1AAi1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=CLUinGA/; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44JNG04A007840; Mon, 20 May 2024 07:10:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=TuQqCXB8b2VftvngsXDml2Ve6zEP9leJvUYafCXyXlE=; b=CL UinGA/kLmDlE2doaEU9jLGbSGOdcQWaFMWtOp3aW6/QJWGUGkJNQkMzJT4TOjAu4 l2lC6ysvEFplt/U20ihPIOcgwgb4Zu3B+KDh3+lcQz13Dd/9MZ3UFjcatn+k46fS zcqH69IvcvO4hnq0+HYsKRuf/wLE09AeNCqxt06RxnIAydKgUYMNneTzcBAky1u4 dVOdh61+TdHsP2H4CUFk+KCiTjAi2lKzZ35moNZsOy33ilOk0Qyhral46CjRqYUk qEGEcWwztM33Ckc4wt/eOqhNmJupjOTnfYR2TUkjl8JfhKSwZWfxDXVoDRoHWAyo h/LasHCTWN2imMZbbtLA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y6n45jmch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 May 2024 07:10:09 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44K7A8dw008048 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 May 2024 07:10:08 GMT Received: from [10.218.46.9] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 20 May 2024 00:10:06 -0700 Message-ID: Date: Mon, 20 May 2024 12:40:03 +0530 Precedence: bulk X-Mailing-List: selinux-refpolicy@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] Need bluetooth socket permission for pulseaudio. Content-Language: en-GB To: Chris PeBenito , CC: , , References: <20240510055019.27778-1-quic_rbujala@quicinc.com> <73450767-2bb9-4b49-9a47-5074a31f7190@quicinc.com> From: Raghavender Reddy Bujala In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: zTD7vwdH_hElAXmiR8FK2M89Xb_VFNMR X-Proofpoint-ORIG-GUID: zTD7vwdH_hElAXmiR8FK2M89Xb_VFNMR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-20_04,2024-05-17_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405200058 On 5/17/2024 9:39 PM, Chris PeBenito wrote: > On 5/15/2024 11:52 PM, Raghavender Reddy Bujala wrote: >> >> >> On 5/15/2024 1:37 AM, Chris PeBenito wrote: >>> On 5/10/2024 1:50 AM, Raghavender Reddy Bujala wrote: >>>> Resolve selinux permission for ofono: >>>> >>>> [pulseaudio] backend-ofono.c: Failed to register as a handsfree >>>> audio agent with ofono: org.freedesktop.DBus.Error.AccessDenied: An >>>> SELinux policy prevents this sender from sending this message to >>>> this recipient, 0 matched rules; type="method_call", sender=":1.14" >>>> (uid=989 pid=1937 comm="/usr/bin/pulseaudio --system --daemonize=no >>>> -v" label="system_u:system_r:pulseaudio_t:s0-s15:c0.c1023") >>>> interface="org.ofono.HandsfreeAudioManager" member="Register" error >>>> name="(unset)" requested_reply="0" destination="org.ofono" (uid=0 >>>> pid=942 comm="/usr/sbin/ofonod -n" >>>> label="system_u:system_r:initrc_t:s0-s15:c0.c1023") >>> >>> It looks like we need a domain for ofonod.  Your system has it >>> running is in the initrc_t domain, which is intended only for init >>> scripts and the like.  It's not intended to be used for long-running >>> processes. >>> >> >> Thanks for suggestion. >> But we didn't found any particular domain for ofono and no sepolicy >> files are available for this service. >> so, we have added these changes to make functionality work properly >> with ofono. >> >> and we haven't observed any sepolicy issue on ubuntu and rpi os for >> ofono. Because sepolicy is not enabled for these os. >> output of ps -eZ command on ubuntu machine is: >> LABEL                               PID TTY          TIME CMD >> unconfined                        11528 ?        00:00:00 ofono >> >> So, Is there any plan from upstream to add domain for ofono or add >> sepolicies for this service. >> >> Please let us know, is there any alternative to way proceed further. > > I'm not aware of anyone creating an ofono domain for the SELinux policy. >  Unfortunately your patch cannot be upstreamed in its current form, so > it'll have to remain your local fix.  I'd expect an ofono domain to fix > this access, since a telephony service would need audio output from > pulseaudio or similar type service. > > Sure, will try to maintain it as local fix for ofono. could you please review other part of the patch which is "Resolve these AVC denials for native HSP". -- Raghavender Reddy Bujala