Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4318668pxu; Wed, 9 Dec 2020 14:03:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWcIxSwF4w4x8d7zgoeVhdLClgnGboI+ZY11kmSABWKA/Sdx/B/W+P8EaEgMKbrEB8uXNz X-Received: by 2002:a17:906:3b4d:: with SMTP id h13mr3742641ejf.289.1607551398761; Wed, 09 Dec 2020 14:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607551398; cv=none; d=google.com; s=arc-20160816; b=xiFsbSEv79K+BDXiSuLuXQU62EIncd14W3r8Ugi/d13lz05fSTtbI6Z2wYVt0O52zy lln2LoQa/ya+Vhep3ZWe/AL90fNo3FwBZMCAB9Xnjt/bHyLMUAnYDNVS5aC/Wed04Q0z y55YAc4WmD+B2LQvgFCHZlo1e+pc2rn6dBZO6W+iO5VVkzIOZQtdqus8N8XgEXemAtdJ eueJ07FSSjTlFObwGuLEJigZd5mPNNQQ/C60uRYu3R4Ako+azTrY5cuVlSXYV5kwr8Wj Qa5ZNVXidDe+1o9gQCNhtYaM7tjcPXL+DWeLIuBl8OZ1M3jHOQYcMaLK/l4ajsNEU0fs khYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=WuyMjgYHJrF3kOJ62AM7bnUKbjFMbYLkiNSJmSwiKc8=; b=ErOBN9SR6e/xzaIJeP/8Z9aScts+XvlwxaCM8Jss7JNieeM45Ip3C5ZI0n99vZHw5q x+kPAxZOtG0r11qZoxzt2Nb6x26iYczCc8bu9fJTK2msVRu2s5wS4NMf+hEz1XVy0OEF mokq0YQOYZ1RTYbHdMlKMsdwM8U9L5hhnU7XPw1yyJa3YEdTNOkfb5TxLgvPI1ZYpn+P 6tic8TynDbNhGhg3tdfIzmhoKhBEScFT0T/wy9QiJEESzc5Um4ErP3hjVEIzC24ZVO5g AjtIglk69cEpYSL1G3O6JI/mnfhaPtQHiFnnmY2Nz+1m7rijBIsTaHX/8jIlJdIS4Pip +BfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=TT0AoeVq; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k18si1616103eds.42.2020.12.09.14.03.12; Wed, 09 Dec 2020 14:03:18 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=TT0AoeVq; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 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 S2388391AbgLIWBV (ORCPT + 16 others); Wed, 9 Dec 2020 17:01:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388361AbgLIWBV (ORCPT ); Wed, 9 Dec 2020 17:01:21 -0500 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21AACC0613CF for ; Wed, 9 Dec 2020 14:00:41 -0800 (PST) Received: by mail-qk1-x733.google.com with SMTP id 1so2927714qka.0 for ; Wed, 09 Dec 2020 14:00:41 -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=WuyMjgYHJrF3kOJ62AM7bnUKbjFMbYLkiNSJmSwiKc8=; b=TT0AoeVqREji6Axj9oJEp7WXPjB832HwwkdGuM+WAO8TVf/cNfvEOZOI3z1/bvpp9X 1+O+X9PMo5jlYSO6Bd1BFVQmPcUjSu/79DnnwuwWEpulx9cRI3OioV8N675xt28tqHz8 5dO58G6D0ZZEt2+6rTfd45O3BaIPnN+wjr9jg= 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=WuyMjgYHJrF3kOJ62AM7bnUKbjFMbYLkiNSJmSwiKc8=; b=WsC43yLGOD1Tf2TLlu1WcR0lB+PLoVOhVmQwzvXCKRo2wm55bN8yWPk8884aUC/OzH alPdOMRrDpEwk+4NI3E+iMOzmtO6mnpEmeNfqyHUUr7cb0l6izDawJ0FfZWWW0hcAIpE 6lz/bZCqArhyhyjCBaRS5D8YIjS8430Ynaw7Mv5I78oU6or9vhhDB2+y2DusapsB2FX3 Gxaq3QkXAjQC+ESJsFUVFbem5jowP4SDAEKnlH76oSaRvof0LGY96oOzrW+qEW7S5WJb BhZEnTf2OUkIryESYEgKNVekI3pz1jJ1iMgke/SwqhOM98SR+FzjQU3/K7j1WFOUSlVe N7Cw== X-Gm-Message-State: AOAM533rzVTIf3HcSrX4o9/b0afOJHvtrrMp8Zc5g84d/+CRWOys4n94 ibdlhxc8hc6BKIU8OkKBN+UE+UVRm5LHBw== X-Received: by 2002:a05:620a:7c9:: with SMTP id 9mr5502951qkb.329.1607551240099; Wed, 09 Dec 2020 14:00:40 -0800 (PST) Received: from fedora.pebenito.net (pool-96-234-173-17.bltmmd.fios.verizon.net. [96.234.173.17]) by smtp.gmail.com with ESMTPSA id a13sm1898747qtj.69.2020.12.09.14.00.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Dec 2020 14:00:39 -0800 (PST) Subject: Re: udevadm etc To: Russell Coker , selinux-refpolicy@vger.kernel.org References: <3161997.pUvnUksOUX@liv> From: Chris PeBenito Message-ID: Date: Wed, 9 Dec 2020 17:00:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <3161997.pUvnUksOUX@liv> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 12/9/20 7:38 AM, Russell Coker wrote: > In systemd verision 247.1 (which is in Debian/Unstable now) systemd-udevd is a > symlink to udevadm. In systemd version 241 (in Debian/Buster) it's not a > symlink. The systemd changelog doesn't mention this change so I don't know > exactly when it happened. > > type_transition init_t udevadm_exec_t:process udevadm_t; > type_transition initrc_t udevadm_exec_t:process udevadm_t; > type_transition sysadm_t udevadm_exec_t:process udevadm_t; > type_transition consolekit_t udev_exec_t:process udev_t; > type_transition devicekit_disk_t udev_exec_t:process udev_t; > type_transition hald_t udev_exec_t:process udev_t; > type_transition hotplug_t udev_exec_t:process udev_t; > type_transition init_t udev_exec_t:process udev_t; > type_transition initrc_t udev_exec_t:process udev_t; > type_transition kernel_t udev_exec_t:process udev_t; > type_transition virtd_t udev_exec_t:process udev_t; > > Above is a list of the relevant type_transition rules from refpolicy taken > from git 3 days ago (there don't appear to be any udev changes since then). > > I think that the only thing to do is to have init_t and initrc_t run udevadm > in the udev_t domain. > > Is it worth having a udevadm_t domain just for running it from sysadm_t or > should we have that run as udev_t too? The udevadm_t domain is much smaller than udev_t, and critically doesn't have all the device access udev_t has. Systemd merging the binaries into one doesn't necessarily mean the policy has to merge too. -- Chris PeBenito