From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id D65915A004E for ; Fri, 07 Jun 2024 20:49:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717786158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X0YQvkqvRfCnBTpwbSwXRp8A2dMkDenjp8kaX1Uxfx8=; b=K6XyW33qOfQJt2BU3gJQ5TO2H0ZyBFWehTfuSHqAUlTf3RazGslMl3sQYQnghjJ+5pTA9Y k8Tj/LgU7z/JqhXirPHHkdRD2FT6CqlgDrgTdw7NaizTHOGFBgF6PV96lCeY1VDMivoHTn 1xZk3sla4nwgcrOMWidsSPNWfOLBUrs= Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-574-dvBGd17hPGiFB-BWTQaERg-1; Fri, 07 Jun 2024 14:49:16 -0400 X-MC-Unique: dvBGd17hPGiFB-BWTQaERg-1 Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-4eb512c2572so608923e0c.3 for ; Fri, 07 Jun 2024 11:49:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717786155; x=1718390955; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=X0YQvkqvRfCnBTpwbSwXRp8A2dMkDenjp8kaX1Uxfx8=; b=RjXCOUFcztCfogMPUjZc730gZU2vGhlNm37Trqi5U1cz/O2y5ODxK1p/aB1RGeQlRr hu2MU5CMBn2VYXrYprBUCXKKynZG9jTXOQ7W0Up9cuK+G5yYhvaZaw4fi1t95IR5sq7y LholNhBS+qHCP5gQwxKZM5l6WlkiT3mF0CoSQCXfs0I9tEn6XFugt45iwSBgJa0WIHDn ++zemqHI3YUxmqrYpkxA6NP/SlqJA9FJIBF7iztbdQre0y4bgGyYsBlOcJzX1sbw5rL1 UEitCnjWyeQIRF84uLrP0QilOlB9Guq/o3ZK1vZ1q5MYEyyvlk/46ONhu3XaTt8Ef9+5 xBTg== X-Gm-Message-State: AOJu0Yw/G1Bp4f/WBnjh2ovjPN1VTS6qW+voEJr9VGQghE1hxu7XmoX9 frEqQpTWV+A5qiV4CmpHE2zdA/0DPh8Y9hmlXJocl4jx0AG9HGhSU10lE+tl2bHdddxl1LMA1rT Zqpe2Nf7e1Z8RkbgyJMkgND/BC2FztYYH0UDw/f9GPRtfkYmr3A== X-Received: by 2002:a05:6122:298a:b0:4df:4498:cc with SMTP id 71dfb90a1353d-4eb562325d3mr4437526e0c.6.1717786154974; Fri, 07 Jun 2024 11:49:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqoexH7iXznnAfhLAxkiZteUlTzvaAYHLbq6gRbHnIASDdbWUGpcVGJbr1fib3FcUco2qKXg== X-Received: by 2002:a05:6122:298a:b0:4df:4498:cc with SMTP id 71dfb90a1353d-4eb562325d3mr4437508e0c.6.1717786154367; Fri, 07 Jun 2024 11:49:14 -0700 (PDT) Received: from maya.cloud.tilaa.com (maya.cloud.tilaa.com. [164.138.29.33]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7954e5ab739sm38415985a.44.2024.06.07.11.49.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jun 2024 11:49:13 -0700 (PDT) Date: Fri, 7 Jun 2024 20:48:38 +0200 From: Stefano Brivio To: Derek Schrock Subject: Re: [PATCH] selinux: Allow access to user_devpts Message-ID: <20240607204838.4fa075d3@elisabeth> In-Reply-To: References: Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: 3KAIFTLGMAUTQSTEITVNMY55GWMSM42E X-Message-ID-Hash: 3KAIFTLGMAUTQSTEITVNMY55GWMSM42E X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Sun, 26 May 2024 18:28:42 -0400 Derek Schrock wrote: > Allow access to user_devpts. > > $ pasta --version > pasta 0^20240510.g7288448-1.fc40.x86_64 > ... > $ awk '' < /dev/null > $ pasta --version > $ > > While this might be a awk bug it appears pasta should still have access > to devpts. > --- > contrib/selinux/pasta.te | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/contrib/selinux/pasta.te b/contrib/selinux/pasta.te > index 0ceda06..4e36c3f 100644 > --- a/contrib/selinux/pasta.te > +++ b/contrib/selinux/pasta.te > @@ -211,3 +211,4 @@ allow pasta_t ifconfig_t:process { noatsecure rlimitinh siginh }; > allow pasta_t netutils_t:process { noatsecure rlimitinh siginh }; > allow pasta_t ping_t:process { noatsecure rlimitinh siginh }; > allow pasta_t user_tty_device_t:chr_file { append read write }; > +allow pasta_t user_devpts_t:chr_file { append read write }; Applied, thanks. -- Stefano