APT, Yum and Red Carpet
Paul Nasrat
pauln at truemesh.com
Mon Aug 18 14:25:15 UTC 2003
On Mon, Aug 18, 2003 at 10:03:50AM -0400, Daniel J Walsh wrote:
> A lot of the userspace changes are in the SRPMs but turned off. You can
> rebuild using
> rpmbuild --define "WITH_SELINUX 1" XYZ.rpm to activate the changes. The
> SELinux
> userspace packages are available on
>
> ftp://people.redhat.com/dwalsh/SELinux/packages
policy requires checkpolicy and doesn't let you build as non-root. I'm
just starting to play so this could be misplaced but I don't like
rpmbuild's messing with the root filesystem :)
Speculative patch, yell if you want it bugzilla'd.
Paul
-------------- next part --------------
--- ./policy.spec.orig 2003-07-23 19:37:32.000000000 +0100
+++ ./policy.spec 2003-08-18 15:25:20.000000000 +0100
@@ -1,13 +1,15 @@
Summary: SELinux example policy configuration
Name: policy
Version: 1.1
-Release: 1
+Release: 2
License: GPL
Group: System Environment/Base
Source: http://www.nsa.gov/selinux/archives/policy-1.1.tgz
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildArch: noarch
+BuildRequires: checkpolicy
+BuildRequires: perl
Requires: checkpolicy
%description
@@ -27,9 +29,10 @@
%prep
%setup -q
+perl -pi -e 's/-o root -g root//' Makefile
%build
-make
+make policy
%install
rm -rf ${RPM_BUILD_ROOT}
@@ -63,6 +66,9 @@
%{_sysconfdir}/security/selinux/src/policy/*
%changelog
+* Mon Aug 18 2003 Paul Nasrat <pauln at truemesh.com> 2.5-2
+- Enable non-root build
+
* Mon Jun 2 2003 Dan Walsh <dwalsh at redhat.com> 2.5-1
- Initial version
More information about the devel
mailing list