Hi.

Here is a patch to make runcon and chcon built only on SELinux platforms.

But there are also other problems.
They can be exposed also on linux simply by changing in debian/rules
from
SELINUX_OPTS := --enable-pam --enable-selinux
to
SELINUX_OPTS := 

All problems are due to broken patch for #312426 ...

Regards

                Petr


--- configure.ac~       2005-11-14 15:35:03.000000000 +0100
+++ configure.ac        2005-11-14 15:35:03.000000000 +0100
@@ -33,7 +33,7 @@
 [  --enable-selinux              Enable use of the SELINUX libraries],
 [AC_DEFINE(WITH_SELINUX, 1, [Define if you want to use SELINUX])
 LIB_SELINUX="-lselinux";
+OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS runcon\$(EXEEXT) chcon\$(EXEEXT)"
 AC_SUBST(LIB_SELINUX)])
 
 gl_DEFAULT_POSIX2_VERSION

--- src/Makefile.am~    2005-11-14 15:35:29.000000000 +0100
+++ src/Makefile.am     2005-11-14 15:35:29.000000000 +0100
@@ -20,13 +20,13 @@
 EXTRA_PROGRAMS = chroot df hostid nice pinky stty su uname uptime users who
 
 bin_SCRIPTS = groups
-bin_PROGRAMS = [ chgrp chown chmod chcon cp dd dircolors du \
+bin_PROGRAMS = [ chgrp chown chmod cp dd dircolors du \
   ginstall link ln dir vdir ls mkdir \
   mkfifo mknod mv nohup readlink rm rmdir shred stat sync touch unlink \
   cat cksum comm csplit cut expand fmt fold head join md5sum \
   nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc 
\
   basename date dirname echo env expr factor false \
-  hostname id kill logname pathchk printenv printf pwd runcon seq sleep tee \
+  hostname id kill logname pathchk printenv printf pwd seq sleep tee \
   test true tty whoami yes \
   $(OPTIONAL_BIN_PROGS) $(DF_PROG)





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to