selinux/2.6 on knoppix 3.3
hello everyone,
im a new user for selinux, and am trying to compile selinux for kernel 2.6 on a knoppix 3.3 hdinstall (its basically a debian install).
I managed to compile the kernel (2.6), but only after removing certain modules which were preventing compilation of the kernel.
Now when i tried to compile the selinux-usr packages, libselinux asks for attr/xattr.h in some of the files, and i am unable to find libattr for debian. i tried googling for it, but only found RPM packages for libattr.
am i doing something wrong here ? am i supposed to install/use something else ?
any help would be most appreciated.
regards,
Gami
--
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 13 lines · Dhruv Gami
hello everyone,
im a new user for selinux, and am trying to compile selinux for kernel 2.6 on a knoppix 3.3 hdinstall (its basically a debian install).
I managed to compile the kernel (2.6), but only after removing certain modules which were preventing compilation of the kernel.
Now when i tried to compile the selinux-usr packages, libselinux asks for
attr/xattr.hin some of the files, and i am unable to find libattr for debian. i tried googling for it, but only found RPM packages for libattr.
Quoted 4 lines
am i doing something wrong here ? am i supposed to install/use something else ?
any help would be most appreciated.
It is libattr1 I believe, and is certainly available in sid and sarge. woody also I believe but haven't gone and checked.
------------------------------------------------------
IN MY NAME: Dale Amon, CEO/MD
No Mushroom clouds over Islandone Society
London and New York. www.islandone.org------------------------------------------------------
--
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 8 lines · Dhruv Gami
hello everyone,
im a new user for selinux, and am trying to compile selinux for kernel 2.6 on a knoppix 3.3 hdinstall (its basically a debian install).
I managed to compile the kernel (2.6), but only after removing certain modules which were preventing compilation of the kernel.
Quoted 7 lines
Now when i tried to compile the selinux-usr packages, libselinux asks for
attr/xattr.hin some of the files, and i am unable to find libattr for debian. i tried googling for it, but only found RPM packages for libattr.am i doing something wrong here ? am i supposed to install/use something else ?
If you have a modern glibc (>= 2.3) built against recent kernel headers (>= 2.4.20), then you can just apply the attached patch to libselinux and build it without libattr. Otherwise, you need to obtain libattr. Note that the sourceforge CVS tree already includes this change (and several others).
Signature · 2 lines
Stephen Smalley <[email protected]> National Security Agency
Index: libselinux/src/Makefile
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/Makefile,v retrieving revision 1.14
src/Makefile +1 -1
@@ -20,7 +20,7 @@ ranlib $@ $(LIBSO): $(OBJS) - $(CC) $(LDFLAGS) -shared -o $@ $^ -lattr -Wl,-soname,$(LIBSO) + $(CC) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,$(LIBSO) ln -sf $@ $(TARGET) %.o: %.c
Index: libselinux/src/fgetfilecon.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/fgetfilecon.c,v retrieving revision 1.4
src/fgetfilecon.c +1 -1
@@ -4,7 +4,7 @@#include <selinux/selinux.h> #include <stdlib.h> #include <errno.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include "policy.h" int fgetfilecon (int fd,security_context_t *context)
Index: libselinux/src/fsetfilecon.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/fsetfilecon.c,v retrieving revision 1.1
src/fsetfilecon.c +1 -1
@@ -4,7 +4,7 @@#include <selinux/selinux.h> #include <stdlib.h> #include <errno.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include "policy.h" int fsetfilecon (int fd,security_context_t context)
Index: libselinux/src/getfilecon.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/getfilecon.c,v retrieving revision 1.4
src/getfilecon.c +1 -1
@@ -4,7 +4,7 @@#include <selinux/selinux.h> #include <stdlib.h> #include <errno.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include "policy.h" int getfilecon (const char *path,security_context_t *context)
Index: libselinux/src/lgetfilecon.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/lgetfilecon.c,v retrieving revision 1.4
src/lgetfilecon.c +1 -1
@@ -4,7 +4,7 @@#include <selinux/selinux.h> #include <stdlib.h> #include <errno.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include "policy.h" int lgetfilecon (const char *path,security_context_t *context)
Index: libselinux/src/lsetfilecon.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/lsetfilecon.c,v retrieving revision 1.1
src/lsetfilecon.c +1 -1
@@ -4,7 +4,7 @@#include <selinux/selinux.h> #include <stdlib.h> #include <errno.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include "policy.h" int lsetfilecon (const char *path,security_context_t context)
Index: libselinux/src/setfilecon.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/setfilecon.c,v retrieving revision 1.1
src/setfilecon.c +1 -1
@@ -4,7 +4,7 @@#include <selinux/selinux.h> #include <stdlib.h> #include <errno.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include "policy.h" int setfilecon (const char *path,security_context_t context)
Index: libselinux/utils/Makefile
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/utils/Makefile,v retrieving revision 1.5
utils/Makefile +1 -1
@@ -4,7 +4,7 @@ CFLAGS = -Wall override CFLAGS += -I../include -LDLIBS += -L../src -lselinux -lattr +LDLIBS += -L../src -lselinux TARGETS=$(patsubst %.c,%,$(wildcard *.c))