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 1335E1381F3 for ; Mon, 30 Sep 2013 19:03:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77AC0E0B7A; Mon, 30 Sep 2013 19:03:42 +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 CAA22E0B11 for ; Mon, 30 Sep 2013 19:03:41 +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 E67B433E24E for ; Mon, 30 Sep 2013 19:03:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C40A6E5466 for ; Mon, 30 Sep 2013 19:03:38 +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: <1380567656.f4fe0ad50474a788016bffa6dfc9afee4a080c8c.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/dpkg.if policy/modules/contrib/mandb.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: f4fe0ad50474a788016bffa6dfc9afee4a080c8c X-VCS-Branch: master Date: Mon, 30 Sep 2013 19:03:38 +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: 0219fe06-9580-4569-abdc-894e4f902119 X-Archives-Hash: 2cd942af6c9c48723be5e82fcadc8f32 commit: f4fe0ad50474a788016bffa6dfc9afee4a080c8c Author: Dominick Grift gmail com> AuthorDate: Thu Sep 26 06:34:23 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Sep 30 19:00:56 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f4fe0ad5 mandb: /etc/cron.daily/man-db executes dpkg, reads dpkg db on Debian Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/dpkg.if | 19 +++++++++++++++++++ policy/modules/contrib/mandb.te | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/dpkg.if b/policy/modules/contrib/dpkg.if index 9aa68a6..fdc06d6 100644 --- a/policy/modules/contrib/dpkg.if +++ b/policy/modules/contrib/dpkg.if @@ -21,6 +21,25 @@ interface(`dpkg_domtrans',` ######################################## ## +## Execute the dkpg in the caller domain. +## +## +## +## Domain allowed access. +## +## +# +interface(`dpkg_exec',` + gen_require(` + type dpkg_exec_t; + ') + + corecmd_search_bin($1) + can_exec($1, dpkg_exec_t) +') + +######################################## +## ## Execute dpkg_script programs in ## the dpkg_script domain. ## diff --git a/policy/modules/contrib/mandb.te b/policy/modules/contrib/mandb.te index 0fb1897..1465f27 100644 --- a/policy/modules/contrib/mandb.te +++ b/policy/modules/contrib/mandb.te @@ -1,4 +1,4 @@ -policy_module(mandb, 1.1.0) +policy_module(mandb, 1.1.1) ######################################## # @@ -47,3 +47,8 @@ optional_policy(` optional_policy(` cron_system_entry(mandb_t, mandb_exec_t) ') + +optional_policy(` + dpkg_exec(mandb_t) + dpkg_read_db(mandb_t) +') \ No newline at end of file