Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4649624ybl; Wed, 22 Jan 2020 02:03:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzhRp3W+KBvhxqyADOD75xcDaNXY/ZI8neuiUaEi4dfDgiWFMYmzlXH70XfLJBK3jgZ/5aH X-Received: by 2002:aca:f505:: with SMTP id t5mr6238722oih.136.1579687413538; Wed, 22 Jan 2020 02:03:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579687413; cv=none; d=google.com; s=arc-20160816; b=SF1/l4e7N3sTOuOnZrlr9iMABXwuCeGMmglWYte59jZeB2+gPy5j3rWxawZOJZ+JYH Nzv0uDaB6EtjfMBVEYMivmzUMQkIvxoUVcrNw9AYZG+umafQ9C+dwFHQ2X93vCHbAv1q LFJbLbAWvM4vhhj4oV7vO5s/FC4WSRnW+6VsMegkPfBtr20myOG9U8QeDQPEuGIGZOje D+xL1TLYMhLc4N2D54DF77o6krA4/B+DFiUqC3uK9LjlGvzBvkIA2F3syhWr6nxju6bt 6EPnvh3z98brxSp2UhHI1TqPMRzmB3p0zMqmjWIvGE1h9i8lkGtLukgjqhXbMPtSDGLQ xBzQ== 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:cc:to:subject:dkim-signature; bh=5/3OELspn/o3+Yeja+ukzugWp9hO1+8exZU20307W64=; b=ffI/Ku55RS2gdny+MXQf73o2jimleyF40lwsucexXbiU0AT5B1ga9huDUAWeeumVrA YCEQaxZ07JPWyJLxpbAwNFdHaUVWYQO4k5C7KSmn8dvbTWNUZGlrd8takDX9NOhAWhDK lRG9D3nQBobtSDfD33IUROR89tDoGd9Pmx2STMerPX3J7NBqjsA1aGcQ3ssKgO3Mm0Gc LBbUEFc7fA+q3qX8AHJhhLvZ/mtnWZfXPVhVVRb5uBhUC9D0as+Q3zVbSe9wY7f9gk31 10CRh3UuxZEvmx7QUx/vdyKa1q9sUJ2j8ncYGMX27vu0A11vqU8ShawU24ruwXhKNxO7 wqmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=AOP49hkl; 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 w2si1469826otk.126.2020.01.22.02.03.28; Wed, 22 Jan 2020 02:03:33 -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=@ieee.org header.s=google header.b=AOP49hkl; 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 S1729263AbgAVKDJ (ORCPT + 13 others); Wed, 22 Jan 2020 05:03:09 -0500 Received: from mail-qv1-f50.google.com ([209.85.219.50]:42101 "EHLO mail-qv1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729074AbgAVKDJ (ORCPT ); Wed, 22 Jan 2020 05:03:09 -0500 Received: by mail-qv1-f50.google.com with SMTP id dc14so2921548qvb.9 for ; Wed, 22 Jan 2020 02:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5/3OELspn/o3+Yeja+ukzugWp9hO1+8exZU20307W64=; b=AOP49hklPdDZWGNrWXFPek4otrUsRrK8w6FbtV/hUk/lBT6ti4GEKpN0Q53WtUI7N5 AqjhdjHYaBRVJH2oxC0RjlD6OxwDUJzuNMCf4tk/Huf9ZGiwCzi0DnzxqwwKK/aMEtEK Upmz3uruJQg4TvAbQtVhuqKLuvpuBDJF1NMpM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5/3OELspn/o3+Yeja+ukzugWp9hO1+8exZU20307W64=; b=MZvgiPY4eoCuosaOkkq563zQBSBNHXWZdac7bsjNDIIZDkK2vnt3Ldd///ZOPU12ZE 0NLGZPcVp2JfJmUFdK4g5bajipi8tuEvwr1UBMRjBwS6oBlzKtyy0MLmryJiwkti+8Ej et3Tgzb3Mubcju/YyoFww4QtWeRmAz51ysW+As/fZKd8pznR5cLCbMt6By5WYZvEDpl7 z85P2G9QhqwNoVeQLgU9QLLOM6rPZFDkOybio7UKgYFzFaZtLWXRRPVIuCGE2OsmYhPd 0lsl5Yvp0iHwmEvLsNCRuaaeVVSJEoSvSeKCFvKKuGGLfYFWBnFQIRB7DTbKWHOsWTdq V1fQ== X-Gm-Message-State: APjAAAXkPhXjcStocpjy0FPHdzC8/XiHuziksxgzYk3XbbSrEJFD8lJs 2x3fgF4gpX0eTOBNfda/uflyN0rsr7wo+A== X-Received: by 2002:a0c:8bd2:: with SMTP id a18mr9417753qvc.38.1579687387886; Wed, 22 Jan 2020 02:03:07 -0800 (PST) Received: from fedora.pebenito.net (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id m3sm273885qkk.90.2020.01.22.02.03.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jan 2020 02:03:07 -0800 (PST) Subject: Re: [RFC] files: Make files_{relabel,manage}_non_security_types work on all file types To: Henrik Grindal Bakken Cc: selinux-refpolicy@vger.kernel.org References: <20200117231500.59904-1-hgb@ifi.uio.no> <875zh4aop3.fsf@cisco.com> From: Chris PeBenito Message-ID: <068afebc-bee1-0d1e-ed37-e1473f66f982@ieee.org> Date: Wed, 22 Jan 2020 05:03:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <875zh4aop3.fsf@cisco.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 1/21/20 9:06 AM, Henrik Grindal Bakken wrote: > Chris PeBenito writes: > >> On 1/17/20 6:15 PM, Henrik Grindal Bakken wrote: >>> From: Henrik Grindal Bakken >>> >>> This is the same behavious as files_*_non_auth_types have. > > [...] > >> NAK. Access per object class is already split up across separate >> interfaces, so doing this would be confusing and prevent someone from >> getting file-only access. > > Ok. Then I would recomment rewriting the systemd_tmpfiles_t rules a > bit, because today it has a serious amount of AVC violations for pretty > standard usage. Perhaps. However, it depends on what you consider standard usage. > There are no matching interfaces for lnk_files, at least. Any > suggestions as to how to set up the tmpfiles rules? By adding new interfaces that are like the existing files_manage_non_security_files() interface, but for lnk_file. -- Chris PeBenito