SELinux with IPSec - something going on ?
Hello,
after taking a look at the NSA site I wondered if any work has been made to integrate IPSec with SELinux.
Is there any draft or specification on what has to be done exactly?
Stanislas.
Signature · 8 lines
One world, One web, One program -- Microsoft ad Ein volk, Ein Reich, Ein Fuhrer -- Adolf Hitler -- 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 6 lines · Rusinsky Stanislas Herman W. A.
Hello,
after taking a look at the NSA site I wondered if any work has been made to integrate IPSec with SELinux.
Is there any draft or specification on what has to be done exactly?
Integration of IPSEC with Flask (a research prototype that preceded SELinux) is described in
http://www.cs.utah.edu/flux/papers/ajay-thesis-abs.html.
We have not done any work on integrating SELinux with IPSEC yet; at this point, such work would presumably be done based on the new Linux 2.6 IPSEC implementation.
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.
Hello,
Thank you for your advices, I'll see if there is something I can do with it,
regards,
Stanislas.
Quoted 7 lines
Integration of IPSEC with Flask (a research prototype that preceded SELinux) is described in
http://www.cs.utah.edu/flux/papers/ajay-thesis-abs.html.We have not done any work on integrating SELinux with IPSEC yet; at this point, such work would presumably be done based on the new Linux 2.6 IPSEC implementation.
Signature · 6 lines
###########################################
The truth is rarely pure, and never simple.
-- Oscar Wilde
###########################################RE: where to download LSM-patched 2.4
Dear all,
Where can I download LSM-patched 2.4 for lsm-2.4-selinux-2003040709.tgz kernel source?
Before I used LSM 2.4 selinux source, I encountered problem when I was trying to install SELinux.
The problem is the SELinux kernel is able to loaded up after a reboot, but
whenever issuing a command
"ls --context" or whatever other SELinx related command options, it always
said that the command ooptions needs SELinux kernel to support, but I have
verified the /var/log/messages file and uname command telling the SELinux
kernel is loaded successfully. What could be missing from my installation?
That's why I decided to use LSM selinux source instead the one from
http://www.nsa.gov/selinux/download.html
I downloaded LSM source from
http://www.hakin9.org/fr/attachments/nr1/materials/selinux/download/
What are the difference between the LSM source with the one from nsa?
Is there any updated document about how to install selinux on kernel 2.4?
Thanks
Sam
--
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: where to download LSM-patched 2.4
Quoted 9 lines · samwun
Before I used LSM 2.4 selinux source, I encountered problem when I was trying to install SELinux.
The problem is the SELinux kernel is able to loaded up after a reboot, but
whenever issuing a command
"ls --context" or whatever other SELinx related command options, it always
said that the command ooptions needs SELinux kernel to support, but I have
The most likely explanation for this is that the version of the SE Linux kernel code and the version of the user-space code does not match. There are two major versions of SE Linux in use, the old SE Linux has 52 system calls multiplexed over the LSM system call. The new SE Linux uses XATTR's and file read/write operations on selinuxfs and /proc/pid/attr/*. As the operation of these versions of SE Linux is very different there are no programs that can support both (it would be possible to write a program that supports both, but no-one has done so).
Does /proc/filesystems have an entry for "selinuxfs"? If so you are running the kernel for the new SE Linux, if not then you are running the old SE Linux.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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: where to download LSM-patched 2.4
I found that command "make install" failed in selinux 2.6 kernel source:
# make install make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h Kernel: arch/i386/boot/bzImage is ready sh /usr/local/linux-2.6/arch/i386/boot/install.sh 2.6.0-test6-selinux1 arch/i386/boot/bzImage System.map "" No module advansys found for kernel 2.6.0-test6-selinux1 mkinitrd failed make[1]: *** [install] Error 1 make: *** [install] Error 2 #
After finished make install, I also found the new kernel 2 .6.0-test6-selinux1 is populated in the /boot directory. I changed /etc/lilo.conf to as follow:
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.6.0-test6-selinux1
label=selinux2.6
initrd=/boot/initrd-2.4.20-8.img
read-only
append="root=/dev/hda7"Note, hda7 is my / partition.
Then I did a lilo -v, and reboot.
But new kernel caused panic.
What should I do to fix this problem?
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Russell Coker
Sent: Wednesday, November 19, 2003 9:41 PM
To: samwun; 'SELinux ML'
Subject: Re: where to download LSM-patched 2.4
Quoted 9 lines · samwun
Before I used LSM 2.4 selinux source, I encountered problem when I was trying to install SELinux.
The problem is the SELinux kernel is able to loaded up after a reboot, but
whenever issuing a command
"ls --context" or whatever other SELinx related command options, it always
said that the command ooptions needs SELinux kernel to support, but I have
The most likely explanation for this is that the version of the SE Linux
kernel code and the version of the user-space code does not match. There are
two major versions of SE Linux in use, the old SE Linux has 52 system calls
multiplexed over the LSM system call. The new SE Linux uses XATTR's and file
read/write operations on selinuxfs and /proc/pid/attr/*. As the operation of
these versions of SE Linux is very different there are no programs that can
support both (it would be possible to write a program that supports both, but
no-one has done so).
Does /proc/filesystems have an entry for "selinuxfs"? If so you are running
the kernel for the new SE Linux, if not then you are running the old SE Linux.
Signature · 18 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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. -- 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: where to download LSM-patched 2.4
Quoted 9 lines · samwun
I found that command "make install" failed in selinux 2.6 kernel source:
# make install make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h Kernel: arch/i386/boot/bzImage is ready sh /usr/local/linux-2.6/arch/i386/boot/install.sh 2.6.0-test6-selinux1 arch/i386/boot/bzImage System.map "" No module advansys found for kernel 2.6.0-test6-selinux1
This is a problem with the kernel build proceedure not with SE Linux as such. Generally you want to follow the usual proceedures for building a kernel package for your OS but have the SE Linux options enabled. This has been tested to work with both Debian and Red Hat kernel images.
I suggest that as a first step you build a kernel without SE Linux. Once you get that working you can then move on to getting SE Linux working. The changes from 2.4.20 to 2.6.0 are immense and you can expect your first attempt to not be successful regardles of SE Linux.
Probably the best thing to do is to ask for help at your local Linux Users Group.
Quoted 3 lines
image=/boot/vmlinuz-2.6.0-test6-selinux1
label=selinux2.6 initrd=/boot/initrd-2.4.20-8.img
That would not work because a 2.6.0 kernel can not load modules from a 2.4.20 kernel. You have to create an initrd for 2.6.0-test6 or build a kernel that does not need an initrd.
Recently I have ceased using initrd's on my machines. The range of hardware that I own is not large enough to justify an initrd so I just compile in every driver that may be needed for booting any of my machines. It makes things a lot easier to manage.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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: where to download LSM-patched 2.4
In reply to samwunQuoted 2 lines · samwun
Where can I download LSM-patched 2.4 for lsm-2.4-selinux-2003040709.tgz kernel source?
That was from the April 2003 release of the old LSM-based SELinux. If you want the last released code of the old LSM-based SELinux, you can obtain it from http://www.nsa.gov/selinux/download1.html. Aside from certain historical versions, older releases are not provided on the NSA site.
Quoted 11 lines
The problem is the SELinux kernel is able to loaded up after a reboot, but
whenever issuing a command
"ls --context" or whatever other SELinx related command options, it always
said that the command ooptions needs SELinux kernel to support, but I have
verified the/var/log/messagesfile and uname command telling the SELinux
kernel is loaded successfully. What could be missing from my installation?
Failure to load an initial policy?
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.