Package Details: policycoreutils 2.4-1

Package Base: policycoreutils
Description: SELinux policy core utilities
Upstream URL: http://userspace.selinuxproject.org
Category: system
Licenses: GPL
Groups: selinux
Conflicts: selinux-usr-policycoreutils
Provides: selinux-usr-policycoreutils=2.4-1
Submitter: Siosm
Maintainer: IooNag
Last Packager: IooNag
Votes: 11
First Submitted: 2013-11-03 20:05
Last Updated: 2015-02-22 13:11

Latest Comments

Comment by Siosm

2014-01-02 21:46

Renamed to policycoreutils

Comment by xangelux

2013-08-13 04:19

It has references to pkgdir and restorecon doesn't work for me (says exit error code 1), I assume it's searching for everything on my ~/AUR/selinux-usr-policycoreutils/pkg/selinux-usr-policycoreutils/. . . . how can I help, I'm determined to make it work to learn and make the policy for Arch (hopfuly some day)

Comment by Nicky726

2013-07-20 17:23

The build problem was due to setools, which I didn't have installed. Now added as dependency.

Comment by hi117

2013-06-10 16:57

Package is broken for me, semanage gives error:
ImportError: No module named sepolicy
Package now builds fine with sepolicy enabled, here is a diff to apply the change:
--- a/PKGBUILD 2013-06-09 12:10:17.000000000 -0400
+++ b/PKGBUILD 2013-06-10 12:55:54.493807731 -0400
@@ -32,9 +32,6 @@
sed -i -e "s/shell python -c/shell python2 -c/" "sandbox/Makefile"
sed -i -e "s/\/usr\/bin\/python/\/usr\/bin\/python2/" "sepolicy/Makefile"

- # disable sepolicy as the build fails
- sed -i -e "s/sepolicy//" "Makefile"
-
# /bin, /sbin, /usr/sbin -> /usr/bin
sed -i -e "s/\$(PREFIX)\/sbin/\$(PREFIX)\/bin/g" */Makefile
sed -i -e "s/\$(DESTDIR)\/sbin/\$(PREFIX)\/bin/g" */Makefile


Also the optimizations can be improved by this diff:
--- a/PKGBUILD 2013-06-09 12:10:17.000000000 -0400
+++ b/PKGBUILD 2013-06-10 12:56:45.924625009 -0400
@@ -24,8 +24,8 @@
cd "${srcdir}/${_origname}-${pkgver}"

# optimizations
- sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W -O2/" "setfiles/Makefile"
- sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W -O2/" "sestatus/Makefile"
+ sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W ${CFLAGS}/" "setfiles/Makefile"
+ sed -i -e "s/-Werror -Wall -W/-Werror -Wall -W ${CFLAGS}/" "sestatus/Makefile"

# python2
sed -i -e "s/shell python -c/shell python2 -c/" "semanage/Makefile"

Comment by Nicky726

2013-06-09 20:32

Thank you added.

Comment by genghizkhan91

2013-05-24 17:15

It seems that the package python2-ipy should be listed as a dependency because the command semanage gives an error of a missing module without it.

Comment by Nicky726

2013-05-06 16:52

Thank you, fixed.

Comment by kagebe

2013-04-23 16:55

I also had the same issue: Optimization must be enabled to build.

Anonymous comment

2013-04-16 03:38

The package requires that the optimizations be set due to _FORTIFY_SOURCE. I've changed the PKGBUILD file to add the -O2 optimizations through the build() function to get the package to compile.

Error message: http://pastebin.com/WiDRSamG
PKGBUILD with changes: http://pastebin.com/6WUt5xAb

Comment by Nicky726

2013-03-04 16:19

Thank you, added.

Comment by Splith

2013-03-03 21:49

Missing dbus-glib dependancy.

Comment by Nicky726

2013-02-17 12:46

Thank you, I addopted some of the changes and the .service file.

Comment by xangelux

2013-02-15 18:30

Found the unit file and edited the PKGBUILD to update it, not sure that everything works but so far no errors. https://gist.github.com/xangelux/4962315

Comment by Nicky726

2011-07-07 13:49

Fixed, and one more.

Comment by lks

2011-07-05 16:19

Thank you!

Comment by Blubaur

2011-07-05 09:21

I get the same error on current. Might be a problem with glibc's headers. If I move the #define _GNU_SOURCE to the top, instead of
before sched.h, it works.
sched.h seems to not get __USE_GNU from the _GNU_SOURCE #definition.

Comment by Nicky726

2011-07-04 18:58

Why do you use an old version of the package? Sorry, but I can't support that.

Comment by lks

2011-07-04 14:51

I get an error:
"seunshare.c:242:21: »CLONE_NEWNS« not declared"
I have used the pkgver 2.0.82 in http://userspace.selinuxproject.org/releases/20100525/devel/. I have removed on my PKGBUILD that lines, because there is no "${pkgdir}/etc/rc.d/init.d/sandbox":

# Move daemons to correct locations
mv "${pkgdir}/etc/rc.d/init.d/sandbox" \
"${pkgdir}/etc/rc.d/"
rm -rf "${pkgdir}/etc/rc.d/init.d/"

Comment by Nicky726

2011-02-20 14:45

Moved daemons to /etc/rc.d/ and rewritten /etc/rc.d/restorecond acording to other Arch daemons.

Comment by Nicky726

2010-12-23 23:13

Done. Guess its better than makedeps.

Comment by coolpyrofreak

2010-12-23 21:48

Please add libcap-ng to dependencies.