Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7251270ybi; Mon, 8 Jul 2019 17:56:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsfSM//9IvzJlngiXLd4lyxOrMGkWGsxrwzx72j0of7v7q0bWEbwd9w4xT7EWDbbseTzBf X-Received: by 2002:a17:902:6b86:: with SMTP id p6mr29085852plk.14.1562633770187; Mon, 08 Jul 2019 17:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562633770; cv=none; d=google.com; s=arc-20160816; b=i2IF+SB6g7tGr4nDjTTzj9w/EszakVLG697hpg+zJilRYPxszHI0dmLhhcSVSIm+Q6 mMDcopz9LZwPqxrfVBNgZLFJl2cNhPbqrOof5sjHDo5ZL4tOZk30FOXrteovvk4NzBnO YxOFlRjndLCi6p9fUbZ6ljRca4ykG+UGGJse8h9Frli3JvDSeCQxqSDxup5mmOsmh8fY 2gFRGM1DP53q/Guy5uKtjJE4/9tfLeS2joNrX8J69KEWl6f3gJDYEklEbGiVdKik3dEO 7bIYyb+l3S747a9ObQNrJEQbVJ32FOTeNM1CM+Jg/SZ9nexOuMwuskVxq1dD2C2KS2G4 hhjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=tcEqTYUVhS6/6eBLEKc5DbAVtdJN3nkdqHBc5luL8LY=; b=IiH1AySs+cmvGigXEwut3QlNxVvzGXc/57Or72ziGr7f88VKycWgr0dZQ74oyxeDJx GV1Jri8CdGoxrCFrdhvY8Psrrzh3237KMMu0V25qF4FzgwnU17+Bi5wCobsAK/SPrcVY IgPGpBLRBJZKgconEOUuFm1WX13oMJURtAXtNxyHGRL3H+4YbQWcntTkKEOttJuIX4qb /aHQMaLFqAKS4W8qe4F467uwxq3DhTe3bwjIgwyexJk75TYtaG1uy+hNrMZf0ShVPR8C aqGoXyrV879w/F4uaToFM7VPzaQmjjGpHPbaFJwCfW05wdmOU6L8sMPeWN9dqLpsgee7 ZU8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=EVtxqmqa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si18916138plp.1.2019.07.08.17.56.08; Mon, 08 Jul 2019 17:56:10 -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=@ieee.org header.s=google header.b=EVtxqmqa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727132AbfGIAty (ORCPT + 11 others); Mon, 8 Jul 2019 20:49:54 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:42913 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfGIAtx (ORCPT ); Mon, 8 Jul 2019 20:49:53 -0400 Received: by mail-qk1-f196.google.com with SMTP id 201so12647546qkm.9 for ; Mon, 08 Jul 2019 17:49:53 -0700 (PDT) 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=tcEqTYUVhS6/6eBLEKc5DbAVtdJN3nkdqHBc5luL8LY=; b=EVtxqmqa8Vd4FRzMHTTMMhLSGZ2fnTKEnkp5V5H2tnpL24gxoECnVXfBWC1O30DxMv Bw5HD5O04YjhMbBeHrkvIElOp1dfBksBQqyHobDdazNPiI+asTpG1Eo/wGfvlnJTGH+O 6MQM2BDmgFzKy9IAGXeUP7RJxiQXxZFjHnaCo= 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=tcEqTYUVhS6/6eBLEKc5DbAVtdJN3nkdqHBc5luL8LY=; b=dEHYrbhFR66x6gNhsbj5ZEC4xxcSQsV3ubxewtDPbM8wb7FP2p7OV0W6es00BqfzTU HlB5WtBb72Q+bWMlxBJNRj5h0sd7yNIVohSg8oBqTMjdXWSfOgvSybQ+uffn7kHwzPWr 3zDmsDK6vxGt5QgqoU7qgZWugVpsrlsKtKlN2YFxoFmXS3WxLJuv1LlYzIyHi/u6liKm dMxgHv5cj2KKEHvp4c6lGaXzy0HOJVn3ry+NhhHRekUaEPuZfiitnIl84ZLD/QLKMrYr ewZOTHUqJCdcwXupQmdjH494qw5/EQLy2n8rEoeg0uoHvVTRz8xZurw/0EHjLeGVymjY zSdg== X-Gm-Message-State: APjAAAXiq7EBuvS8ublRqoWeoqVKISFB1/hNs4XdcT9rXbAHkxFv/zyJ 6lm1SYnAIeYe00pN6RQfBvhRMhTYcMc= X-Received: by 2002:a37:9bca:: with SMTP id d193mr16145243qke.122.1562633392958; Mon, 08 Jul 2019 17:49:52 -0700 (PDT) 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 k123sm8087614qkf.13.2019.07.08.17.49.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 17:49:52 -0700 (PDT) Subject: Re: [PATCH 1/5] grant rpm permission to map rpm_var_lib_t To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" References: <20190702153014.14097-1-dsugar@tresys.com> <20190702153014.14097-2-dsugar@tresys.com> From: Chris PeBenito Message-ID: Date: Mon, 8 Jul 2019 20:39:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190702153014.14097-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 7/2/19 11:30 AM, Sugar, David wrote: > type=AVC msg=audit(1560913896.432:218): avc: denied { map } for pid=1265 comm="rpm" path="/var/lib/rpm/__db.001" dev="dm-0" ino=2223 scontext=system_u:system_r:rpm_t:s0 tcontext=system_u:object_r:rpm_var_lib_t:s0 tclass=file permissive=1 > > Signed-off-by: Dave Sugar > --- > policy/modules/admin/rpm.te | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/policy/modules/admin/rpm.te b/policy/modules/admin/rpm.te > index e00b8ddd..0e6e9c03 100644 > --- a/policy/modules/admin/rpm.te > +++ b/policy/modules/admin/rpm.te > @@ -111,6 +111,7 @@ files_lock_filetrans(rpm_t, rpm_lock_t, file) > > manage_dirs_pattern(rpm_t, rpm_var_lib_t, rpm_var_lib_t) > manage_files_pattern(rpm_t, rpm_var_lib_t, rpm_var_lib_t) > +mmap_read_files_pattern(rpm_t, rpm_var_lib_t, rpm_var_lib_t) > files_var_lib_filetrans(rpm_t, rpm_var_lib_t, { dir file }) > > manage_dirs_pattern(rpm_t, rpm_var_run_t, rpm_var_run_t) Merged. -- Chris PeBenito