Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3588832ybv; Sun, 16 Feb 2020 00:54:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzkIHiMzAM05kcC2BSu634Golz1A4kbIFup4d2lGy2GnHnpWvDjF1a8IR4n7yhpnKiv+GB9 X-Received: by 2002:a05:6830:1e86:: with SMTP id n6mr8372118otr.321.1581843291715; Sun, 16 Feb 2020 00:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581843291; cv=none; d=google.com; s=arc-20160816; b=LCBw4juBd/SVqai6w+VZLU/UKYxFs0O8h51SBRYiwDsqFsQCFS/l+uYVf23evf7ueC K/8HsJOruTmS6KGkXk5dQUkzoHjNmjV7vrFI5HpsMD43M6EK3bVHPrJKn1z0Ir6Wp2Wx ZrtxBvFXQk6tkyfYIeZYNo9BePUVFEof5YhhgHPW302uG6tR5zC1a3TRxJQmlj1buOcg idGcGXj1naYIChukgxtfrpxd5cjPrpaj/t84/4HtjnQ44Kg10C+CZMB1E+EqCy5oUOcS LjulWNfAhBWp5oYVtTauOfHsqEG2Mbci3Bo6HJPUrNjLMyFa4xi8BgeHYJAeTIc3wRwa GT4A== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OD80Y4YkvWZCxo9o08yM9ZZHxNglCWBmjDYfV7emXpE=; b=MqZZ3E68veKvd+0axzTJEhpTESNB15Xu8zXfvroZDBFyf+KMHZ/F5MUboq9CL5IhV3 9UNKtcApsi0+Hb+N+HuOUNvV0ykBiojnQODo5zO2GpeazFksmq2GjqNWbKhndSUoZpMB QUBUxAYkf+/9C51Zse5F0TBQlJYI76LKEYE3QaeZfZ60dClHtE1s8dhoFH63Yz/Km+yQ Tuf7mksVvbcFFF6LvYFJK5yJlw7HVH/18XbxFQi7d4sEceH9K1wvmW2/DFclWpbj1VHx XhWADYSx5AIUz9aarQu09uf2ydnYOmc7rvM68Wds7xibV7bbcyQ7AJP+cB/wy2Zo/d+N UDGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@perfinion-com.20150623.gappssmtp.com header.s=20150623 header.b=WLDcp2Pe; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y73si4846029oia.246.2020.02.16.00.54.49; Sun, 16 Feb 2020 00:54:51 -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=@perfinion-com.20150623.gappssmtp.com header.s=20150623 header.b=WLDcp2Pe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726069AbgBPIyt (ORCPT + 13 others); Sun, 16 Feb 2020 03:54:49 -0500 Received: from mail-pj1-f42.google.com ([209.85.216.42]:55936 "EHLO mail-pj1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbgBPIyt (ORCPT ); Sun, 16 Feb 2020 03:54:49 -0500 Received: by mail-pj1-f42.google.com with SMTP id d5so5840530pjz.5 for ; Sun, 16 Feb 2020 00:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perfinion-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OD80Y4YkvWZCxo9o08yM9ZZHxNglCWBmjDYfV7emXpE=; b=WLDcp2PeEO2f5wqpDZmNX0UoPk4CKeeiHZQ+RfW3N4EpAhegZpNhr4XUqwd0EUVEAI KCfADHv7afER+wDHcA31xDj+GCAQdS1fWZNhSbWQuboLwpalELmbMF45a6UONNVzwdpu pAhbuiqDchIpY7T3sY3w4OQTVL/hfdAziOtMihI8fYQQwewyuhbR1gZAGsRbrmypMo4J fpMscoVIDR4CNJOeXBgPBof0HM2gKymHKwH2KDbMYM6egpFJmmrMJGh/yT+0KGIz3O5Q vycwmCu5YzlmLPdLACT26U6qemfF8ySwZb7ipjzuMAVkKfTCSH7YvX18/ApP1IDVqmXo ohcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OD80Y4YkvWZCxo9o08yM9ZZHxNglCWBmjDYfV7emXpE=; b=dgqTqaiYU5k4Wc3psRhWlKhktF1filU1KpNFhrRBtsJXdgSmNuCWnkMnANR4ZY1jd+ n2Pvq3QWEHVj4cBA55uNue9SkcvKhRxzFx7rFAKMYGBnZM0C6iAEjErKRZDSaTb+i1vy tVa/uBRACkg0FwFoGc3srTUXpdwHLuHFMtl859TbBgb4aqflTTnHHQiBRC+VDxWA2wjy C2zH/hscF/WqAkX+WkSdkoAiugX0NqJMTdPWoB/O7Kygm5rRkzJ16NpG/Hwfo9wdYB4V tCsce259P9QRkTYUAotpM3VdjQpxetWCTQ+h7ha4mC4zYawaoXVEfHrY0Nk7zTo/Nhtj t5OA== X-Gm-Message-State: APjAAAVPfcQS2sgMh/DWFi1SNt5rR36vaG7/csEBUwFtUb1KJcF5FU3X 8SHIJ7YQdnaQH1BJX1v59XUSIkv4xdJRVw== X-Received: by 2002:a17:902:d692:: with SMTP id v18mr11306333ply.9.1581843288301; Sun, 16 Feb 2020 00:54:48 -0800 (PST) Received: from localhost ([101.127.140.252]) by smtp.gmail.com with ESMTPSA id e11sm12774139pgj.70.2020.02.16.00.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 00:54:47 -0800 (PST) From: Jason Zaman To: selinux-refpolicy@vger.kernel.org Cc: Jason Zaman Subject: [PATCH 05/10] colord: add watch perms Date: Sun, 16 Feb 2020 16:54:17 +0800 Message-Id: <20200216085422.36530-5-jason@perfinion.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200216085422.36530-1-jason@perfinion.com> References: <20200216085422.36530-1-jason@perfinion.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org From: Jason Zaman avc: denied { watch } for pid=12656 comm="gmain" path="/var/lib/colord/icc" dev="zfs" ino=100677 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:colord_var_lib_t:s0 tclass=dir permissive=0 avc: denied { watch } for pid=12656 comm="gmain" path="/usr/share/color/icc/colord" dev="zfs" ino=67586 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=dir permissive=0 --- policy/modules/services/colord.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/colord.te b/policy/modules/services/colord.te index 24eda8a9..44f2b049 100644 --- a/policy/modules/services/colord.te +++ b/policy/modules/services/colord.te @@ -42,6 +42,7 @@ fs_tmpfs_filetrans(colord_t, colord_tmpfs_t, { dir file }) manage_dirs_pattern(colord_t, colord_var_lib_t, colord_var_lib_t) manage_files_pattern(colord_t, colord_var_lib_t, colord_var_lib_t) files_var_lib_filetrans(colord_t, colord_var_lib_t, dir) +allow colord_t colord_var_lib_t:dir watch; kernel_read_crypto_sysctls(colord_t) kernel_read_device_sysctls(colord_t) @@ -82,6 +83,7 @@ domain_use_interactive_fds(colord_t) files_list_mnt(colord_t) files_read_usr_files(colord_t) files_map_usr_files(colord_t) +files_watch_usr_dirs(colord_t) fs_getattr_noxattr_fs(colord_t) fs_getattr_tmpfs(colord_t) -- 2.24.1