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 E71B51381F4 for ; Wed, 15 Aug 2012 13:05:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 889C5E0AA1; Wed, 15 Aug 2012 13:04:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4CF8CE0AA1 for ; Wed, 15 Aug 2012 13:04:04 +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 8FF041B400D for ; Wed, 15 Aug 2012 13:04:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9CDF5E544C for ; Wed, 15 Aug 2012 13:04:00 +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: <1345021713.5a060df9566f68be256cf6a0cd20edf4eeeefc92.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/modutils.fc X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 5a060df9566f68be256cf6a0cd20edf4eeeefc92 X-VCS-Branch: master Date: Wed, 15 Aug 2012 13:04:00 +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: 3ca2fd91-be5b-4614-942b-bb04f61b0ecb X-Archives-Hash: c6df023b8af22c1d2acbddaba833ce4b commit: 5a060df9566f68be256cf6a0cd20edf4eeeefc92 Author: Sven Vermeulen siphos be> AuthorDate: Wed Aug 15 08:38:48 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Aug 15 09:08:33 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=5a060df9 Label the kmod binary as insmod_exec_t The kmod binary is a replacement for the insmod/modprobe utilities. See also bug #428322 --- policy/modules/system/modutils.fc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/modutils.fc b/policy/modules/system/modutils.fc index 2410551..54d97c6 100644 --- a/policy/modules/system/modutils.fc +++ b/policy/modules/system/modutils.fc @@ -20,3 +20,5 @@ ifdef(`distro_gentoo',` /sbin/modules-update -- gen_context(system_u:object_r:update_modules_exec_t,s0) /sbin/rmmod.* -- gen_context(system_u:object_r:insmod_exec_t,s0) /sbin/update-modules -- gen_context(system_u:object_r:update_modules_exec_t,s0) + +/usr/bin/kmod -- gen_context(system_u:object_r:insmod_exec_t,s0)