A new kid on the SELinux block!!
Hi!!
My name is Mike Guirao and I just downloaded SELinux 2.4. Since I'm a first time SELinux user I do not know is SELinux is just an enhanced linux kernel and should be installed as any other kernel, Am I allright?
Any doc about installing SELinux?
Best Regards,
Mike Guirao
_________________________________________________________
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
--
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 · Miguel Guirao
Hi!!
My name is Mike Guirao and I just downloaded SELinux 2.4. Since I'm a first time SELinux user I do not know is SELinux is just an enhanced linux kernel and should be installed as any other kernel, Am I allright?
Any doc about installing SELinux?
You need the patched kernel and the userland archive. Build instructions are included in the userland archive. Dan Walsh of RH has put together a set of RPMs available under ftp://people.redhat.com/dwalsh/SELinux as well as example scripts to help automate the installation if you prefer.
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.
More 2.4 Build problems on RH 9.0
Thanks for the help with my kernel build problems. I now have a good working 2.4 kernel and I am on to the userland install.
Sorry, but again I have an error. Checkpolicy made ok, but libselinux seems to have a missing header file.
cc -o fgetfilecon.o -c Wall -fPIC -I..include fgetfilecon.c fgetfilecon.c:7:24: attr/xattr.h: No such file or directory fgetfilecon.c: In function 'fgetfilecon':
fgetfilecon.c:22:warning implicit declaration of function 'fgetxattr' make[1]: *** [fgetfilecon.o] Error 1
make[1]: Leaving directory '/tmp/selinux-usr/libselinux/src
make: *** [install] Error 2
I am assuming from the name that xattr.h has to do with extended attributes. I enabled
(CONFIG_DEVPTS_FS_XATTR), (CONFIG_DEVPTS_FS_SECURITY), (CONFIG_EXT2_FS_XATTR), and (CONFIG_EXT2_FS_SECURITY) along with the security parameters before building the kernel.
Any suggestions would be appreciated.
Thanks
Rick
--
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.
Re: More 2.4 Build problems on RH 9.0
Quoted 7 lines · Richard Herbert Wanner
cc -o fgetfilecon.o -c Wall -fPIC -I..include
fgetfilecon.cfgetfilecon.c:7:24:attr/xattr.h: No such file or directoryfgetfilecon.c: In function 'fgetfilecon':
fgetfilecon.c:22:warning implicit declaration of function 'fgetxattr' make[1]: *** [fgetfilecon.o] Error 1
make[1]: Leaving directory '/tmp/selinux-usr/libselinux/src
make: *** [install] Error 2
You can either install libattr-devel or you can apply the attached patch if your glibc directly supports the xattr calls (likely, unless using an older glibc or an older set of kernel headers).
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))