All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Daniel J Walsh <dwalsh@redhat.com>, SE Linux <selinux@tycho.nsa.gov>
Subject: Re: I think this is equivalent to what we have now	and	more	efficient.
Date: Mon, 26 Feb 2007 09:44:35 -0500	[thread overview]
Message-ID: <200702260944.35571.sgrubb@redhat.com> (raw)
In-Reply-To: <1172498136.19041.198.camel@moss-spartans.epoch.ncsc.mil>

On Monday 26 February 2007 08:55, Stephen Smalley wrote:
> > What about /selinux/policyvers ? When selinux is disabled, it does not
> > exist. When its enabled, should it tell you the version of policy that
> > was successfully loaded?
>
> Presently it always returns the maximum policy version supported by the
> kernel for use both for the initial policy load by /sbin/init and by
> subsequent policy reloads.

Then I'd say its misnamed. max_policy_version would have been more 
appropriate.

> Changing it to return the actual policy version loaded upon the first policy
> load by /sbin/init would then force all subsequent policy reloads to stay
> with that version even if a newer policy toolchain and policy had been
> installed, until the next reboot.

Agreed not a good solution.

> I think we'd want a separate selinuxfs node for that purpose to avoid
> ambiguity between the presently loaded version and the maximum supported
> one.

Agreed. (I would have thought this capability already existed. Otherwise 
setstatus is just taking a wild guess and not basing its output on fact.) 
What do you want to call this new node? loaded_policy_version?

-Steve

--
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:[~2007-02-26 14:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-22 14:36 I think this is equivalent to what we have now and more efficient Daniel J Walsh
2007-02-22 14:45 ` Stephen Smalley
2007-02-22 15:04   ` Daniel J Walsh
2007-02-22 15:10     ` Stephen Smalley
2007-02-22 15:36       ` Daniel J Walsh
2007-02-22 15:38         ` Stephen Smalley
2007-02-22 15:43           ` Stephen Smalley
2007-02-22 16:04             ` Daniel J Walsh
2007-02-22 16:10               ` Stephen Smalley
2007-02-22 16:56               ` Steve Grubb
2007-02-23 12:34                 ` Stephen Smalley
2007-02-25 19:36                   ` Steve Grubb
2007-02-26 13:55                     ` Stephen Smalley
2007-02-26 14:44                       ` Steve Grubb [this message]
2007-02-26 14:58                         ` Stephen Smalley
2007-02-26 15:01                           ` Stephen Smalley
2007-02-26 15:11                             ` Steve Grubb
2007-02-22 15:46           ` Daniel J Walsh
2007-02-22 15:15 ` Steve Grubb
2007-02-22 15:30   ` Daniel J Walsh
2007-02-22 15:36     ` Stephen Smalley

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=200702260944.35571.sgrubb@redhat.com \
    --to=sgrubb@redhat.com \
    --cc=dwalsh@redhat.com \
    --cc=sds@tycho.nsa.gov \
    --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.