Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E089BC6783B for ; Tue, 11 Dec 2018 23:00:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A63692084E for ; Tue, 11 Dec 2018 23:00:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="Q6k+MszB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A63692084E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ieee.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726281AbeLKXAv (ORCPT ); Tue, 11 Dec 2018 18:00:51 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:44777 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbeLKXAv (ORCPT ); Tue, 11 Dec 2018 18:00:51 -0500 Received: by mail-qk1-f195.google.com with SMTP id n12so9644339qkh.11 for ; Tue, 11 Dec 2018 15:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=sqROmGtpnDwYEtiDAsR24bNRhprsQGJrpP+Myt1FUi0=; b=Q6k+MszBff0GLLQaDEHMnx2CjGL/pa75IyysjmwQ8CT4xW7S/lf+X7V5XV5Ew1uhCY JQjO+vyoR34kLak9W6LGlPRl9M6oS1G+/jrGGFW85wE3BM3sJ2Rnqbhnl9M48Yp8DAXG N+KFWbOV71XepAwHJis1fHM+vubTKBRegR9DE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sqROmGtpnDwYEtiDAsR24bNRhprsQGJrpP+Myt1FUi0=; b=GSohWYPRWFT+6PTw6WQwuftfopzQMl/TlhuJf3yABvZruNMejwKSf1UP6wFKLOF1Cb wqRuUk6n36/6YUA+Sjflj/K9Fn4E5tcdxgxQ21d57x+qxgrVq1gjl9TxMvLrJu7DjVJ+ 4RQftmyHHcZYNhXUL270STKvjOL0WWCXnSvL6tpJAMgOszzXdXqQ2xiSJn3vo/sPgXA2 OsCHhUgs3Xt1SGE+Wy57bo6UzRD4zADfP5Ikq+izrcXFgbpmevX9Ii1uTjV7h3cbih2u Fkl70GbQB/eOj6S5LZMQ5mIYr9U6VLQysEvt2iLNoCxfQv8CukRGzEViPlHnDIft4V4X DcVg== X-Gm-Message-State: AA+aEWZ4ZSeWiH5DG8vwCorTTvHhVyOuWNtKLHRJ7hhLlY2fIwAGOH/h +Yz4mXIYsI38uZim4UG5yq46wjXRuwM= X-Google-Smtp-Source: AFSGD/VJ5/CSEAF3hACn0sJSIOFsCaztDeSTvRtQeCeTuhc76NNmqgyS+JtJ8gGiI0mxt6xe3Orb/w== X-Received: by 2002:a37:1b46:: with SMTP id b67mr16323939qkb.144.1544569250020; Tue, 11 Dec 2018 15:00:50 -0800 (PST) Received: from [192.168.1.190] (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id o25sm10734709qtj.10.2018.12.11.15.00.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 15:00:49 -0800 (PST) Subject: Re: [PATCH 1/3] Allow X (xserver_t) to read /proc/sys/crypto/fips_enabled To: David Sugar , "selinux-refpolicy@vger.kernel.org" References: <20181208184347.32575-1-dsugar@tresys.com> <20181208184347.32575-2-dsugar@tresys.com> From: Chris PeBenito Message-ID: Date: Tue, 11 Dec 2018 17:54:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181208184347.32575-2-dsugar@tresys.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 12/8/18 1:45 PM, David Sugar wrote: > type=AVC msg=audit(1543761322.221:211): avc: denied { search } for > pid=16826 comm="X" name="crypto" dev="proc" ino=10257 > scontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=dir permissive=1 > type=AVC msg=audit(1543761322.221:211): avc: denied { read } for > pid=16826 comm="X" name="fips_enabled" dev="proc" ino=10258 > scontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file permissive=1 > type=AVC msg=audit(1543761322.221:211): avc: denied { open } for > pid=16826 comm="X" path="/proc/sys/crypto/fips_enabled" dev="proc" > ino=10258 scontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file permissive=1 > type=AVC msg=audit(1543761322.222:212): avc: denied { getattr } for > pid=16826 comm="X" path="/proc/sys/crypto/fips_enabled" dev="proc" > ino=10258 scontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file permissive=1 > > Signed-off-by: Dave Sugar > --- > policy/modules/services/xserver.te | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/policy/modules/services/xserver.te b/policy/modules/services/xserver.te > index 7d4c0c1b..425f7bd7 100644 > --- a/policy/modules/services/xserver.te > +++ b/policy/modules/services/xserver.te > @@ -709,6 +709,7 @@ allow xserver_t xauth_home_t:file read_file_perms; > manage_files_pattern(xserver_t, xserver_log_t, xserver_log_t) > logging_log_filetrans(xserver_t, xserver_log_t, file) > > +kernel_read_crypto_sysctls(xserver_t) > kernel_read_system_state(xserver_t) > kernel_read_device_sysctls(xserver_t) > kernel_read_modprobe_sysctls(xserver_t) Merged. -- Chris PeBenito