Problem with selinux configuration
Hi,
I am trying to install selinux with a plain vanilla kernel 2.6.0 (released 18 Dec 2003) from kernel.org using RH9
I have downloaded
http://www.nsa.gov/selinux/archives/selinux-usr-2003120509.tgz
and followed the steps in selinux-usr/selinux-doc/README file.
However I am particularly stuck at step 2, specifically:
"After installing the new SELinux packages (particularly libselinux),
you can build and install the SELinux-patched packages as follows:
cd SRPMS rpmbuild --rebuild *.src.rpm rpm -Uvh --force /usr/src/redhat/RPMS/*/*.rpm"
I have followed every part of the README including the "Note" about rebuilding SRPMS requiring the 4 packages from Fedora(libcroco-devel, sharutils, elfutils-devel, autoconf213), which I had downloaded and installed them as well. I have tried both the "rpmbuild --rebuild *.src.rpm" as well as "rpmbuild --define "WITH_SELINUX 1" --rebuild SRPMS/*.src.rpm" found in the comments of selinux-usr/build file both with similar error about the automake errors.
Attached with this email is the output which shows the error. Could anyone point me in the right direction on what went wrong?
Thank you for any useful suggestions in advance.
Keen
[root@host selinux-usr]# rpmbuild --define "WITH_SELINUX 1" --rebuild SRPMS/*.src.rpm
Installing SRPMS/coreutils-5.0-32.sel.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.97852
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf coreutils-5.0
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/coreutils-5.0.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd coreutils-5.0
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #101 (fileutils-4.0-spacedir.patch):'
Patch #101 (fileutils-4.0-spacedir.patch):
+ patch -p1 -b --suffix .space -s
+ echo 'Patch #102 (fileutils-4.0s-sparc.patch):'
Patch #102 (fileutils-4.0s-sparc.patch):
+ patch -p1 -b --suffix .sparc -s
+ echo 'Patch #103 (coreutils-4.5.2-trunc.patch):'
Patch #103 (coreutils-4.5.2-trunc.patch):
+ patch -p0 -b --suffix .trunc -s
+ echo 'Patch #105 (coreutils-4.5.2-C.patch):'
Patch #105 (coreutils-4.5.2-C.patch):
+ patch -p0 -b --suffix .Coption -s
+ echo 'Patch #107 (fileutils-4.1.10-timestyle.patch):'
Patch #107 (fileutils-4.1.10-timestyle.patch):
+ patch -p1 -b --suffix .timestyle -s
+ echo 'Patch #108 (fileutils-4.1.5-afs.patch):'
Patch #108 (fileutils-4.1.5-afs.patch):
+ patch -p1 -b --suffix .afs -s
+ echo 'Patch #111 (coreutils-4.5.2-dumbterm.patch):'
Patch #111 (coreutils-4.5.2-dumbterm.patch):
+ patch -p0 -b --suffix .dumbterm -s
+ echo 'Patch #112 (fileutils-4.0u-glibc22.patch):'
Patch #112 (fileutils-4.0u-glibc22.patch):
+ patch -p1 -b --suffix .glibc22 -s
+ echo 'Patch #114 (fileutils-4.1-restorecolor.patch):'
Patch #114 (fileutils-4.1-restorecolor.patch):
+ patch -p1 -b --suffix .restore -s
+ echo 'Patch #115 (fileutils-4.1.1-FBoptions.patch):'
Patch #115 (fileutils-4.1.1-FBoptions.patch):
+ patch -p1 -b --suffix .FBopts -s
+ echo 'Patch #1155 (fileutils-4.1-force-option--override--interactive-option.patch):'
Patch #1155 (fileutils-4.1-force-option--override--interactive-option.patch):
+ patch -p1 -s
+ echo 'Patch #116 (fileutils-4.1-dircolors_c.patch):'
Patch #116 (fileutils-4.1-dircolors_c.patch):
+ patch -p1 -s
+ echo 'Patch #117 (fileutils-4.1-ls_c.patch):'
Patch #117 (fileutils-4.1-ls_c.patch):
+ patch -p1 -s
+ echo 'Patch #118 (fileutils-4.1-ls_h.patch):'
Patch #118 (fileutils-4.1-ls_h.patch):
+ patch -p1 -s
+ echo 'Patch #153 (fileutils-4.1.10-utmp.patch):'
Patch #153 (fileutils-4.1.10-utmp.patch):
+ patch -p1 -s
+ echo 'Patch #182 (coreutils-4.5.3-acl.patch):'
Patch #182 (coreutils-4.5.3-acl.patch):
+ patch -p1 -b --suffix .acl -s
+ echo 'Patch #183 (coreutils-4.5.3-aclcompile.patch):'
Patch #183 (coreutils-4.5.3-aclcompile.patch):
+ patch -p1 -b --suffix .aclcompile -s
+ echo 'Patch #188 (coreutils-4.5.3-suidfail.patch):'
Patch #188 (coreutils-4.5.3-suidfail.patch):
+ patch -p1 -b --suffix .suidfail -s
+ echo 'Patch #189 (coreutils-4.5.3-stoneage.patch):'
Patch #189 (coreutils-4.5.3-stoneage.patch):
+ patch -p1 -b --suffix .stoneage -s
+ echo 'Patch #500 (textutils-2.0.17-mem.patch):'
Patch #500 (textutils-2.0.17-mem.patch):
+ patch -p1 -s
+ echo 'Patch #502 (textutils-2.0.21-man.patch):'
Patch #502 (textutils-2.0.21-man.patch):
+ patch -p1 -s
+ echo 'Patch #702 (sh-utils-2.0-utmp.patch):'
Patch #702 (sh-utils-2.0-utmp.patch):
+ patch -p1 -b --suffix .utmp -s
+ echo 'Patch #703 (sh-utils-2.0.11-dateman.patch):'
Patch #703 (sh-utils-2.0.11-dateman.patch):
+ patch -p1 -b --suffix .dateman -s
+ echo 'Patch #704 (sh-utils-1.16-paths.patch):'
Patch #704 (sh-utils-1.16-paths.patch):
+ patch -p1 -b --suffix .paths -s
+ echo 'Patch #706 (coreutils-4.5.2-pam.patch):'
Patch #706 (coreutils-4.5.2-pam.patch):
+ patch -p1 -b --suffix .pam -s
+ echo 'Patch #710 (sh-utils-2.0-rfc822.patch):'
Patch #710 (sh-utils-2.0-rfc822.patch):
+ patch -p1 -b --suffix .rfc822 -s
+ echo 'Patch #711 (coreutils-4.5.3-hname.patch):'
Patch #711 (coreutils-4.5.3-hname.patch):
+ patch -p1 -b --suffix .hname -s
+ echo 'Patch #712 (coreutils-4.5.3-chdir.patch):'
Patch #712 (coreutils-4.5.3-chdir.patch):
+ patch -p1 -b --suffix .chdir -s
+ echo 'Patch #713 (coreutils-4.5.3-langinfo.patch):'
Patch #713 (coreutils-4.5.3-langinfo.patch):
+ patch -p1 -b --suffix .langinfo -s
+ echo 'Patch #714 (coreutils-4.5.3-printf-ll.patch):'
Patch #714 (coreutils-4.5.3-printf-ll.patch):
+ patch -p1 -b --suffix .printf-ll -s
+ echo 'Patch #715 (coreutils-4.5.3-sysinfo.patch):'
Patch #715 (coreutils-4.5.3-sysinfo.patch):
+ patch -p1 -b --suffix .sysinfo -s
+ echo 'Patch #716 (coreutils-4.5.3-nogetline.patch):'
Patch #716 (coreutils-4.5.3-nogetline.patch):
+ patch -p1 -b --suffix .nogetline -s
+ echo 'Patch #800 (coreutils-4.5.3-i18n.patch):'
Patch #800 (coreutils-4.5.3-i18n.patch):
+ patch -p1 -b --suffix .i18n -s
+ echo 'Patch #900 (coreutils-4.5.3-test-bugs.patch):'
Patch #900 (coreutils-4.5.3-test-bugs.patch):
+ patch -p1 -b --suffix .test-bugs -s
+ echo 'Patch #901 (coreutils-4.5.3-signal.patch):'
Patch #901 (coreutils-4.5.3-signal.patch):
+ patch -p1 -b --suffix .signal -s
+ echo 'Patch #903 (coreutils-4.5.3-manpage.patch):'
Patch #903 (coreutils-4.5.3-manpage.patch):
+ patch -p1 -b --suffix .manpage -s
+ echo 'Patch #904 (coreutils-5.0-allow_old_options.patch):'
Patch #904 (coreutils-5.0-allow_old_options.patch):
+ patch -p1 -b --suffix .allow_old_options -s
+ echo 'Patch #905 (coreutils-5.0-90563.patch):'
Patch #905 (coreutils-5.0-90563.patch):
+ patch -p0 -b --suffix .90563 -s
+ echo 'Patch #906 (coreutils-5.0-datealign.patch):'
Patch #906 (coreutils-5.0-datealign.patch):
+ patch -p1 -b --suffix .datealign -s
+ echo 'Patch #907 (coreutils-largefile.patch):'
Patch #907 (coreutils-largefile.patch):
+ patch -p1 -b --suffix .largefile -s
+ echo 'Patch #908 (coreutils-selinux.patch):'
Patch #908 (coreutils-selinux.patch):
+ patch -p1 -b --suffix .selinux -s
+ perl -pi -e s/basic-1//g tests/stty/Makefile.am tests/stty/Makefile.in
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.66570
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd coreutils-5.0
+ LANG=C
+ export LANG
+ touch aclocal.m4 configure config.hin Makefile.in doc/Makefile.in lib/Makefile.in m4/Makefile.in man/Makefile.in src/Makefile.in tests/Makefile.in tests/basename/Makefile.in tests/chgrp/Makefile.in tests/chmod/Makefile.in tests/chown/Makefile.in tests/cp/Makefile.in tests/cut/Makefile.in tests/date/Makefile.in tests/dd/Makefile.in tests/dircolors/Makefile.in tests/du/Makefile.in tests/expr/Makefile.in tests/factor/Makefile.in tests/fmt/Makefile.in tests/head/Makefile.in tests/install/Makefile.in tests/join/Makefile.in tests/ln/Makefile.in tests/ls-2/Makefile.in tests/ls/Makefile.in tests/md5sum/Makefile.in tests/misc/Makefile.in tests/mkdir/Makefile.in tests/mv/Makefile.in tests/od/Makefile.in tests/pr/Makefile.in tests/rm/Makefile.in tests/rmdir/Makefile.in tests/seq/Makefile.in tests/sha1sum/Makefile.in tests/shred/Makefile.in tests/sort/Makefile.in tests/stty/Makefile.in tests/sum/Makefile.in tests/tac/Makefile.in tests/tail-2/Makefile.in tests/tail/Makefile.in tests/test/Makefile.in tests/touch/Makefile.in tests/tr/Makefile.in tests/tsort/Makefile.in tests/unexpand/Makefile.in tests/uniq/Makefile.in tests/wc/Makefile.in
+ cp /usr/src/redhat/SOURCES/help2man man/help2man
+ chmod +x man/help2man
++ pwd
+ HELP2MAN=/usr/src/redhat/BUILD/coreutils-5.0/man/help2man
+ export HELP2MAN
+ aclocal -I m4
+ autoconf --force
+ automake --copy --force
configure.ac:6: automake requires AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
configure.ac:9: require version 1.6b, but have 1.6.3
error: Bad exit status from /var/tmp/rpm-tmp.66570 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.66570 (%build)
[root@host selinux-usr]#
Quoted 4 lines · On Wed, 2004-01-28 at 08:50, [email protected] wrote:
Hi,
I am trying to install selinux with a plain vanilla kernel 2.6.0 (released 18 Dec 2003) from kernel.org using RH9
As mentioned on the site, we are using Fedora Core 1 as our development platform. The packages in the last NSA release have dependencies on newer packages than RH9.
Also, note that 2.6.2-rc2 would give you a much more up-to-date snapshot of SELinux, and we will likely move to FC2/test1 once it becomes available, as it has SELinux integrated.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · On Thu, 29 Jan 2004 00:50, "[email protected]" <[email protected]>…
I am trying to install selinux with a plain vanilla kernel 2.6.0 (released 18 Dec 2003) from kernel.org using RH9
I have downloaded
http://www.nsa.gov/selinux/archives/selinux-usr-2003120509.tgz
and followed the steps in selinux-usr/selinux-doc/README file.
Why are you building RPMs? For Red Hat or Fedora you are best advised to use Dan Walsh's packages: ftp://people.redhat.com/dwalsh/SELinux
Dan's packages are the official packages that are going into FC2.
If you are using SUSE then you can probably find someone who has RPMs for it. The German people seem interested in such things, and Paul Dwerryhouse has also done some SUSE SE Linux work.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 4 lines · Russell Coker
Why are you building RPMs? For Red Hat or Fedora you are best advised to use Dan Walsh's packages: ftp://people.redhat.com/dwalsh/SELinux
Dan's packages are the official packages that are going into FC2.
That isn't really an option unless he is willing to install rawhide, as Dan's packages have been rebuilt against it and now have dependencies on packages from it, e.g. newer glibc, newer db4, etc. People who want to use SELinux on Fedora Core 1 still have to use the older userland.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.