From: guido@trentalancia.com (Guido Trentalancia) Date: Thu, 08 Jul 2010 15:45:55 +0200 Subject: [refpolicy] some Debian specific patches In-Reply-To: <201007071702.17347.russell@coker.com.au> References: <201007071702.17347.russell@coker.com.au> Message-ID: <1278596755.2986.116.camel@tesla.lan> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On Wed, 07/07/2010 at 17.02 +1000, Russell Coker wrote: > The attached patch has some Debian specific patches to the policy. > > I've put in a couple of ifdef(`distro_redhat' entries, in some of those cases > we might want to make either the Debian or the Red Hat way the default for > other distributions. > > _______________________________________________ > refpolicy mailing list > refpolicy at oss.tresys.com > http://oss.tresys.com/mailman/listinfo/refpolicy After applying the patch I get the following errors (using the latest release of userspace tools and refpolicy): /etc/selinux/refpolicy-mcs/contexts/files/file_contexts: Multiple same specifications for /var/lib/dcc(/.*)?. /etc/selinux/refpolicy-mcs/contexts/files/file_contexts: Multiple same specifications for /var/lib/dcc/map. /etc/selinux/refpolicy-mcs/contexts/files/file_contexts: Invalid argument libsemanage.semanage_install_active: setfiles returned error code 1. /usr/sbin/semodule: Failed! In fact, after applying the patch the same two definitions are repeated twice (for the debian define) in policy/modules/services/dcc.fc. Thus the whole "ifdef(`distro_debian'..." should be probably removed from the modified version... Regards, Guido