SELinux distro building
Quoted 1 line
I think that autoconf would be good for this. Also perhaps my script
for
Quoted 1 line
extracting header files from the kernel patch (instead of from a
kernel
Quoted 1 line
source tree) would be a good addition to the distribution.
I agree, thats pretty much what i was thinking about. I can't even imagine trying to distribute code to the public without a configure system. If someone is more familiar with autoconf and the basic build process of selinux than me then i'd be very gracious if they worked on this
Quoted 1 line
I think it would be good to have the selinux-small split into two
parts, one
Quoted 1 line
for the header files and library code for compiling applications, and
the
Quoted 1 line
other for policy,
run_init, etc.
EXACTLY!. the libs have to be installed before the policy compiler anyway, they should be 2 separate packages. Either that, or selinux-small should know how to link to libs in it's own directory before being installed, a single package with several "install" steps isn't a clean implementation, and makes distro packaging a pain.
Quoted 1 line
I agree. Perhaps if I had posted patches here in the past rather than
just
Quoted 1 line
talking about it then something would have happened. I suggest that
you post
Quoted 1 line
your patches here.
My patches are basically hacked INSTALLPREFIX and fixed paths into the Makefile, it is clearly not something that would be helpful, autoconf would be much better.
Joshua Brindle
UNIX Administrator
Southern Nazarene University
--
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 11 lines · --- Joshua Brindle
Quoted 1 line
I think that autoconf would be good for this. Also perhaps my script
for
Quoted 1 line
extracting header files from the kernel patch (instead of from a
kernel
Quoted 1 line
source tree) would be a good addition to the distribution.
I agree, thats pretty much what i was thinking about. I can't even imagine trying to distribute code to the public without a configure system. If someone is more familiar with autoconf and the basic build process of selinux than me then i'd be very gracious if they worked on this
I agree. Having an autoconf-based configure system for SELinux would be wonderful, and it would make changing options and adding features to the libs, progs, etc a snap. Does anyone know how to use autoconf and all its friends?
Quoted 4 lines
Quoted 2 lines
I think it would be good to have the selinux-small split into two
parts, one
Quoted 1 line
for the header files and library code for compiling applications, and
Quoted 8 lines
the
Quoted 1 line
other for policy,
run_init, etc.EXACTLY!. the libs have to be installed before the policy compiler anyway, they should be 2 separate packages. Either that, or selinux-small should know how to link to libs in it's own directory before being installed, a single package with several "install" steps isn't a clean implementation, and makes distro packaging a pain.
Yup. That's another problem that I've had to put up with. If I had the time, I would code this up and test it, but I don't :(
Quoted 10 lines
Quoted 2 lines
I agree. Perhaps if I had posted patches here in the past rather than
just
Quoted 1 line
talking about it then something would have happened. I suggest that
you post
Quoted 1 line
your patches here.
My patches are basically hacked INSTALLPREFIX and fixed paths into the
Makefile, it is clearly not something that would be helpful, autoconf would be much better.
Post them anyway. I might try them.
Quoted 7 lines
Joshua Brindle
UNIX Administrator
Southern Nazarene University
Brad
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
--
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 3 lines · Brad Chapman
I agree. Having an autoconf-based configure system for SELinux would be wonderful, and it would make changing options and adding features to the libs, progs, etc a snap. Does anyone know how to use autoconf and all its friends?
I am confident I could do this, or at least create an initial version anyway.
Would somebody be willing to test a patch that does this? --
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.
Quoted 1 line · Brian May
Would somebody be willing to test a patch that does this?
I have modified Russell's version of libselinux-small, to build with autoconf/automake/libtool.
See <URL:http://www.microcomaustralia.com.au/debian/selinux-small-2002102211.tar.gz>
This mainly involved creating configure.in, AUTHORS, NEWS and **/Makefile.am, but I had to change some source code too (most noteably module/checkpolicy/policy_scan.l to reflect the new name of policy_parse.h and utils/spasswd to reflect the fact that automake doesn't appear to allow compiling the same source code multiple times with different compile time options).
I am highly confident that some things will still be broken ;-)
-----------
What works:
-----------
make distcheck (this does some pretty strict tests; for instance to make sure no files are missing and that it can build the object files in another directory)
make install prefix=....
where prefix is the place to install.
-----------
What sort of works:
-----------
--with-lsm=dir can be used to change path to LSM directory, but directory must be a full directory name, relative directories names will break.
-----------
What doesn't work:
-----------
debian/rules not updated.
Makefile in top level source directory totally replaced.
devfsd-se.so will go into the wrong directory by default (anyone know how get automake to put plugin modules in the correct directory?)
devfsd-se.so is linked with libsecure.a, as per previous build setup. This is broken; it means the shared library has code in it that wasn't compiled with PIC. However, it is not possible to compile libselinux with PIC (position independent code); the compiler complains with an error:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libsecure/include -Wall -g -O2 -Wp,-MD,.deps/security.pp -c security.c -fPIC -DPIC -o .libs/security.lo security.c: In function `security': security.c:5:
Invalid `asm' statement: security.c:5: fixed or forbidden register 3 (bx) was spilled for class BREG. make[3]: *** [security.lo] Error 1
For now we can get away with using non-PIC code on i386; it might be a major problem on other platforms though.
MLS support has been completely ommited; it should be easy to add though.
AUTHORS and NEWS are empty files.
-----------
What should work but I haven't checked:
-----------
Does everything get installed in the correct place?
Does anything get installed that shouldn't be installed?
Are any files from the source archive missing?
--
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.
Quoted 8 lines · Brian May
Quoted 1 line · Brian May
Would somebody be willing to test a patch that does this?
I have modified Russell's version of libselinux-small, to build with autoconf/automake/libtool.
See <URL:http://www.microcomaustralia.com.au/debian/selinux-small-2002102211.tar.gz>
Has anyone tested this?
Not that I intend to push anybody, I am just curious if the silence means that everyone has missed this message or tried it and had no problems...
--
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.
On Wed, Nov 13, 2002 at 07:29:03PM +1100, Brian May wrote:
I have updated this file:
Quoted 1 line
<URL:http://www.microcomaustralia.com.au/debian/selinux-small-2002102211.tar.gz>
It should now be able to include the LSM include files correctly.
Also, the configure script will now do a simple check to ensure that the LSM directory given is correct.
--
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.