All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Magnus Therning <magnus-work@therning.org>
Cc: selinux@tycho.nsa.gov
Subject: Re: SELinux on Debian (Sid)
Date: Wed, 9 Jun 2004 17:50:01 +0000	[thread overview]
Message-ID: <20040609175001.GC5727@lkcl.net> (raw)
In-Reply-To: <20040609144404.GJ5477@philips.com>

ha ha, another debian victiiim .

0) make sure you're really a debian/unstable (apt-get dist-upgrade?)

1) install, at your own risk of course, the 2.6.6-selinux1 kernel
from http://hands.com/~lkcl/selinux.

2) DO NOT add selinux.lemuria.org/newselinux to your /etc/apt/sources.list

3) DO add selinux.lemuria.org/walters to your /etc/apt/sources.list

4) DO install the (probably downgraded) cron, logrotate, coreutils etc.
   from /walters
   
5) use the 1.12 .debs for libselinux1 and selinux-policy-default
   and selinux-utils policycoreutils etc. they are the latest and they
   ARE in [ftp/http].*.debian.org

6) once you have installed the 1.12 selinux-policy-default and stuff,
   YOU MUST go to http://sf.net/projects/selinux and download a
   replacement genhomedircon from the
   selinux-usr/policycoreutils//scripts/ directory.

   the version presently released is brain-dead and does something
   different and unexpected.

i recommend you clean out everything you can find prior to doing all
this.

i ALSO recommend that you DO NOT install SE/Linux on an ext2 filesystem.

make sure you use ext3 for all partitions (well, i get away with /boot
as an ext2) how do i put this this is REALLY IMPORTANT there is a bug
somewhere in the extended attributes stuff and i got a repeatable and
quite seriously corrupted filesystem.

if you really really can't get it to work let me know and i can upload
a set of pre-installed tar.gz'd partitions which only come to 124 mbytes
total, there are only about 160 packages preinstalled.

l.

On Wed, Jun 09, 2004 at 04:44:04PM +0200, Magnus Therning wrote:
> I have run into some problems with getting a Debian box up and running
> with SELinux. Maybe someone can offer some insights?
> 
> Installing selinux-default-policy failed, make complains about 'chsid'
> not being present. These are the problems I run into when trying to
> complete the installation of the policies:
> 
>  1. The makefile in /etc/selinux uses 'chsid'. This is the line:
> 
>       chsid system_u:object_r:policy_config_t /ss_policy
> 
>     Apparently that tool has been replaced by 'chcon'.
> 
>       chcon -u system_u -r object_r -t policy_config_t /ss_policy
> 
>     On a standard kernel this gave the following error message:
>       
>       chcon: invalid security context
> 
>  2. The path to 'load_policy' is wrong in /etc/selinux/Makefile it now
>     lives in /usr/sbin rather than /usr/bin. Also the variable
>     LOADPOLICY isn't used at all, instead every reference to
>     'load_policy' is written like this:
> 
>       $(BINDIR)/load_policy
> 
>     A little silly (-:
> 
>  3. 'make relabel' fails on a standard kernel:
> 
>       load_policy: security_load_policy failed
> 
>     After rebooting using my SE-kernel 'make relabel' also fails:
> 
>       security:  policydb magic number 0x8 does not match expected magic number 0xf97cff8c
>       load_policy: security_load_policy failed
> 
> Now I am stuck :-( I simply don't know where to look for a thread to
> pull to clean up the mess.
> 
> /M
> 
> -- 
> Magnus Therning  mailto:therning@sourceforge.natlab.research.philips.com
> +31-40-2745179  http://pww.innersource.philips.com/magnus/
> OpenPGP:0x4FBB2C40
> 
> X-Windows: ...The art of incompetence. 



-- 
-- 
expecting email to be received and understood is a bit like
picking up the telephone and immediately dialing without
checking for a dial-tone; speaking immediately without listening
for either an answer or ring-tone; hanging up immediately and
believing that you have actually started a conversation.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />


--
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-06-09 17:52 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09 14:44 SELinux on Debian (Sid) Magnus Therning
2004-06-09 17:50 ` Luke Kenneth Casson Leighton [this message]
2004-06-10  8:13   ` Russell Coker
2004-06-10 22:04     ` Luke Kenneth Casson Leighton
2004-06-10 12:09   ` Magnus Therning
2004-06-10 21:46     ` Luke Kenneth Casson Leighton
2004-06-10  8:17 ` Russell Coker
2004-06-10 12:03   ` Magnus Therning
2004-06-10 13:53     ` Russell Coker
2004-06-10 21:54     ` Luke Kenneth Casson Leighton
2004-06-11  4:13       ` Russell Coker
2004-06-11 20:40         ` Luke Kenneth Casson Leighton
2004-06-12  2:11           ` Russell Coker
2004-06-12  8:14             ` Luke Kenneth Casson Leighton
2004-06-12  8:15             ` Luke Kenneth Casson Leighton
2004-06-11 23:26         ` Greg Norris
2004-06-12  8:19           ` Russell Coker
2004-06-12 14:37             ` Greg Norris
2004-06-13  0:29               ` Russell Coker
2004-06-13  1:28                 ` Greg Norris
2004-06-13  7:54                   ` Luke Kenneth Casson Leighton
2004-06-13 15:40                     ` Greg Norris
2004-06-13 16:03                       ` Greg Norris
2004-06-13 23:26                         ` Greg Norris
2004-06-14  3:39                           ` Greg Norris
2004-06-14 11:38                             ` Russell Coker
2004-06-14 12:31                               ` Greg Norris
2004-06-18 19:01                             ` Luke Kenneth Casson Leighton
2004-06-13 18:29                       ` Luke Kenneth Casson Leighton

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=20040609175001.GC5727@lkcl.net \
    --to=lkcl@lkcl.net \
    --cc=magnus-work@therning.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.