Patch for selinux automake
Here is the patch to add the include dir's for the Makefile.in for the directories listed in my last post.
this successfully compiles the entire package, here is what i did
./configure --with-lsm=/usr/src/linux-2.4.19-selinux/ make
make DESTDIR=/root/selinux-build install
and everything is in /root/selinux-build/usr EXCELLENT.. the only problem i had is if i tried to do ../selinux-build install complained and said it needed an absolute pathname and nothing got installed, not a problem for me since my package installer will use absolute paths but it may be a problem to someone manually installing, Thanks a lot, this will help me tremendously..
Joshua Brindle
UNIX Administrator
Southern Nazarene University
devfsd/Makefile.in +1 -1
@@ -84,7 +84,7 @@ VERSION = @VERSION@ YACC = @YACC@ -INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include +INCLUDES = -I$(top_srcdir)/libsecure/include LIBS = $(top_builddir)/libsecure/src/libsecure.a pkglib_LTLIBRARIES = devfsd-se.la
libsecure/test/Makefile.in +1 -1
@@ -84,7 +84,7 @@ VERSION = @VERSION@ YACC = @YACC@ -INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include +INCLUDES = -I$(top_srcdir)/libsecure/include LIBS = $(top_builddir)/libsecure/src/libsecure.a bin_PROGRAMS = avc_enforcing avc_toggle chsid chsidfs compute_av context_to_sid exec_s getsecsid get_user_sids ichsid lchsid list_sids load_policy lstat_s mkdir_s msgget_s msgrcv_s msgsid msgsnd_s popen_s security_mls semget_s semsid shmget_s shmsid sid_to_context statfs_s stat_s tcp_client tcp_server udp_client udp_server unix_dgram_client unix_dgram_server unix_stream_client unix_stream_server
setfiles/Makefile.in +1 -1
@@ -84,7 +84,7 @@ VERSION = @VERSION@ YACC = @YACC@ -INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include +INCLUDES = -I$(top_srcdir)/libsecure/include LIBS = $(top_builddir)/libsecure/src/libsecure.a bin_PROGRAMS = setfiles
utils/newrole/Makefile.in +1 -1
@@ -84,7 +84,7 @@ VERSION = @VERSION@ YACC = @YACC@ -INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include +INCLUDES = -I$(top_srcdir)/libsecure/include LIBS = $(top_builddir)/libsecure/src/libsecure.a -lcrypt bin_PROGRAMS = newrole
utils/run_init/Makefile.in +1 -1
@@ -84,7 +84,7 @@ VERSION = @VERSION@ YACC = @YACC@ -INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include +INCLUDES = -I$(top_srcdir)/libsecure/include LIBS = $(top_builddir)/libsecure/src/libsecure.a -lcrypt sbin_PROGRAMS = run_init
utils/spasswd/Makefile.in +1 -1
@@ -84,7 +84,7 @@ VERSION = @VERSION@ YACC = @YACC@ -INCLUDES = -I$(top_srcdir)/libsecure/include -I$(MODDIR)/include +INCLUDES = -I$(top_srcdir)/libsecure/include LIBS = $(top_builddir)/libsecure/src/libsecure.a -lcrypt EXTRA_DIST = README
Quoted 2 lines · Joshua Brindle
Here is the patch to add the include dir's for the Makefile.in for the directories listed in my last post.
I have made identical changes to my version.
Currently the installed include files are broken, because /usr/include/linux/flask files are not installed, I am currently considering the best way to rectify this issue.
Quoted 6 lines
this successfully compiles the entire package, here is what i did
./configure --with-lsm=/usr/src/linux-2.4.19-selinux/ make
make DESTDIR=/root/selinux-build install
Quoted 6 lines
and everything is in
/root/selinux-build/usrEXCELLENT.. the only problem i had is if i tried to do ../selinux-build install complained and said it needed an absolute pathname and nothing got installed, not a problem for me since my package installer will use absolute paths but it may be a problem to someone manually installing, Thanks a lot, this will help me tremendously..
Absolute paths are required everywhere (at least for the --with-lsm parameter), because otherwise the patch would need to be adjusted when processing nested sub directories.
(I really need to add a check to the configure script to ensure that the --with-lsm= directory is absolute...)
If you are installing it manually, I think it is unlikely you would want to use DESTDIR=, probably ./configure --prefix=... (IIRC) would be a better alternative. DESTDIR is for installing it in a temporary location for packaing, --prefix= is the final location (although with SE-Linux is probably doesn't make any difference, as no directory names seem to be hardcoded anywhere).
--
Brian May <[email protected]>
--
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.