All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom <tom@lemuria.org>
To: selinux@tycho.nsa.gov
Subject: Re: policy version
Date: Tue, 1 Oct 2002 15:30:15 +0200	[thread overview]
Message-ID: <20021001153015.A24185@lemuria.org> (raw)
In-Reply-To: <Pine.GSO.4.33.0210010841280.1579-100000@raven>; from sds@tislabs.com on Tue, Oct 01, 2002 at 08:50:25AM -0400

On Tue, Oct 01, 2002 at 08:50:25AM -0400, Stephen Smalley wrote:
> > I built a fresh kernel from 2.4.19-lsm1 sources today, so the kernel
> > should actually be newer than the checkpolicy program (actually,
> > they're both from the August release).
> 
> Not if you are using policy version 12.  That change didn't occur until
> the aforementioned patch that I posted, when the access vector definitions
> changed.  If that patch was merged into the Debian selinux packages, then
> you should have a new kernel that uses policy version 12.  If you are
> building the old kernel sources from the release but trying to use a newer
> checkpolicy+policy, then you naturally have a problem.

That would make sense, though the Debian selinux packages (tools and
lsm patches) are all labeled 2002_08_23. Maybe the patches were 
backported and I'm just confused.

I'm currently rebuilding from scratch on a new system to verify that
Brian's new packages are clean and the mistake was somewhere on my
side.



> If you build your kernel without the development module option (i.e.
> always in enforcing mode, no way to switch into permissive mode), then it
> will panic if it cannot load a policy after mounting the root filesystem.
> If you build your kernel with the development module option, then it only
> issues a warning if it cannot load a policy and SELinux is effectively
> off until you either explicitly load a policy via load_policy or you try
> to toggle into enforcing mode via avc_toggle.  I suppose that we could
> change the latter case so that if you boot with enforcing=1, then it will
> also panic if no policy is present.  I don't see the behavior that you
> describe when booting without a valid policy.

My kernel is built with development module, and I don't trigger
avc_toggle during bootup either (I just verified this). After replacing
the base system from a woody CD, I can access the filesystem again.

However, one 100% reliable denial remains in the networking code,
namely that I do not have any networking at all. All network access
(ping, http, ftp, etc) throws an error about "unlabeled packet". This
is in permissive mode. And the kernel does not even have labelled IP
networking enabled.


-- 
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <tom@lemuria.org>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
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:[~2002-10-01 13:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 11:15 policy version Tom
2002-10-01 11:46 ` Stephen Smalley
2002-10-01 12:28   ` Tom
2002-10-01 12:50     ` Stephen Smalley
2002-10-01 13:30       ` Tom [this message]
2002-10-01 13:51         ` Stephen Smalley
2002-10-01 14:00           ` Tom
2002-10-01 14:04 ` Russell Coker
2002-10-01 14:11   ` Tom

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=20021001153015.A24185@lemuria.org \
    --to=tom@lemuria.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.