All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dave Gilbert (Home)" <gilbertd@treblig.org>
To: selinux@tycho.nsa.gov
Subject: Problems finding working kernel/user land combination
Date: Tue, 03 Feb 2004 19:12:00 +0000	[thread overview]
Message-ID: <401FF280.8070301@treblig.org> (raw)

Hi,
   I've been following the document 'Getting Started With SE Linux 
HOWTO' by Faye Coker (12 March 2003) and am having problems. Any help 
much appreciated.

I'm using Debian Woody and the 'stable' set of tools from Brian May 
(www.microcomaustralia.com.au)

If I build the latest NSA kernel source the user land tools don't 
recognise that SELinux is in the kernel:

id -c :

Sorry, --context (-c) can be used only on a flask-enabled kernel.

yet the boot messages contain:

SELinux:  Initializing.
SELinux:  Starting in permissive mode
There is already a security framework initialized, register_security failed.
Failure registering capabilities with the kernel
selinux_register_security:  Registering secondary module capability
Capability LSM initialized


which I've read is normal behaviour (is it?)

An strace of 'id' shows:

SYS_223(0xf97cff8c, 0xc, 0, 0x400135cc) = -1 ENOSYS (Function not 
implemented)

There is an selinuxfs that I can mount and I can see files
'access  context  create  enforce  load  policyvers  relabel  user'
but they give invalid argument if I try and cat them.

I have:

CONFIG_SECURITY=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_CAPABILITIES=y
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_DEVELOP=y

-----------------------

OK - so that doesn't work; and I'm thinking I need to try a different 
kernel patch set.
So I download the patches from www.coker.com.au/newselinux/kern

and after battling through adding the ea, acl and nfsacl patches
I then patch the coker lsm patches on.

This has two problems:
   1) A minor reject in tcp_ipv4.c that appears easy to fix
   2) Line 666 (gulp!) of ip_output.c has:

   security_ip_fragment(skb2, skb);

   but there doesn't appear to be an skb2 in that context.

------------------------

So in short; does anyone have a known good set of kernel patches that 
actually work, or a set of userland tools for Debian/stable that work 
with the NSA kernel?

Thanks in advance,

Dave


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

             reply	other threads:[~2004-02-03 19:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-03 19:12 Dave Gilbert (Home) [this message]
2004-02-03 22:43 ` Problems finding working kernel/user land combination Brian May
2004-02-05 15:32   ` Dave Gilbert (Home)
2004-02-05 21:51     ` Brian May
2004-02-06 11:40       ` Dave Gilbert (Home)
2004-02-04  1:16 ` Russell Coker
2004-02-04  9:37   ` Dave Gilbert (Home)
2004-02-04  9:48     ` Brian May
2004-02-04  9:49     ` Russell Coker
2004-04-06 23:59 ` Bill McCarty
2004-04-07  5:54   ` Tom
2004-04-07  7:05     ` Bill McCarty
2004-04-09  5:23     ` Bill McCarty
2004-04-09 13:59       ` Tom
2004-04-09 20:43     ` Milan P. Stanic
2004-04-11  3:38       ` Bill McCarty
2004-04-11 10:18         ` Milan P. Stanic
2004-04-12  6:02           ` Bill McCarty
2004-04-07  7:55   ` Peter Gervai
2004-04-07 16:13     ` Bill McCarty
2004-04-07 19:36       ` Koen Vervloesem
2004-04-09 15:53     ` Tomas Hoger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=401FF280.8070301@treblig.org \
    --to=gilbertd@treblig.org \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.