From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EEEFD1381F3 for ; Wed, 25 Sep 2013 09:49:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F984E0D60; Wed, 25 Sep 2013 09:49:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC845E0D5F for ; Wed, 25 Sep 2013 09:49:40 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6AAE333EDE6 for ; Wed, 25 Sep 2013 09:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7B6ACE5469 for ; Wed, 25 Sep 2013 09:49:37 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1380102199.794cd62d84988f4bffb0f25d1634cd98105df03d.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/apt.fc policy/modules/contrib/apt.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 794cd62d84988f4bffb0f25d1634cd98105df03d X-VCS-Branch: master Date: Wed, 25 Sep 2013 09:49:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bc4ffd80-6be4-4fdf-89fe-518da9500080 X-Archives-Hash: 26f1085d6ca17b455946f7b04155b504 commit: 794cd62d84988f4bffb0f25d1634cd98105df03d Author: Dominick Grift gmail com> AuthorDate: Mon Sep 23 09:02:44 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Wed Sep 25 09:43:19 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=794cd62d apt: Run apt system cronjobs in the apt_t domain apt: apt system cronjob creates dpkg.status.* files in /var/backup Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/apt.fc | 10 ++++++++-- policy/modules/contrib/apt.te | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/policy/modules/contrib/apt.fc b/policy/modules/contrib/apt.fc index 1fd6888..19418b5 100644 --- a/policy/modules/contrib/apt.fc +++ b/policy/modules/contrib/apt.fc @@ -1,13 +1,19 @@ -ifndef(`distro_redhat',` +/etc/cron\.daily/apt -- gen_context(system_u:object_r:apt_exec_t,s0) + /usr/bin/apt-get -- gen_context(system_u:object_r:apt_exec_t,s0) /usr/bin/apt-shell -- gen_context(system_u:object_r:apt_exec_t,s0) /usr/bin/aptitude -- gen_context(system_u:object_r:apt_exec_t,s0) -/usr/lib/packagekit/packagekitd -- gen_context(system_u:object_r:apt_exec_t,s0) + /usr/sbin/synaptic -- gen_context(system_u:object_r:apt_exec_t,s0) + +ifndef(`distro_redhat',` +/usr/lib/packagekit/packagekitd -- gen_context(system_u:object_r:apt_exec_t,s0) /var/cache/PackageKit(/.*)? gen_context(system_u:object_r:apt_var_cache_t,s0) /var/lib/PackageKit(/.*)? gen_context(system_u:object_r:apt_var_lib_t,s0) ') +/var/backups/dpkg.* -- gen_context(system_u:object_r:apt_var_cache_t,s0) + /var/cache/apt(/.*)? gen_context(system_u:object_r:apt_var_cache_t,s0) /var/lib/apt(/.*)? gen_context(system_u:object_r:apt_var_lib_t,s0) diff --git a/policy/modules/contrib/apt.te b/policy/modules/contrib/apt.te index 60a475d..90c630d 100644 --- a/policy/modules/contrib/apt.te +++ b/policy/modules/contrib/apt.te @@ -125,7 +125,7 @@ optional_policy(` ') optional_policy(` - dbus_system_domain(apt_t, apt_exec_t) + dbus_system_domain(apt_t, apt_exec_t) ') optional_policy(`