All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: kuangjiou <kuangjiou@huawei.com>,
	Dominick Grift <dac.override@gmail.com>
Cc: "'selinux@tycho.nsa.gov'" <selinux@tycho.nsa.gov>
Subject: Re: 答复: got some problems with the type_transition rules
Date: Tue, 8 Sep 2015 10:58:50 -0400	[thread overview]
Message-ID: <55EEF7AA.30201@tycho.nsa.gov> (raw)
In-Reply-To: <60ABE64B4BE4AC45964F1A967BA76CB201F753E5@SZXEMI502-MBS.china.huawei.com>

On 09/08/2015 05:06 AM, kuangjiou wrote:
> According to this webpage,
> http://selinuxproject.org/page/TypeRules
> 
> Policy versions 25 and above also support a 'name transition' rule
> 
> But the policy versions of my os is 26,I don't know why the type_trasition rule didn't work

To see what version is supported by your kernel:
cat /selinux/policyvers or
cat /sys/fs/selinux/policyvers
(depending on where you have selinuxfs mounted)

Make sure you don't have CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX
set in your kernel .config.  That was a legacy option for backward
compatibility with Fedora 3 and 4, and forces the kernel to an old
policy version.  You don't want it.

      reply	other threads:[~2015-09-08 14:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-07 11:22 got some problems with the type_transition rules kuangjiou
2015-09-07 16:14 ` Dominick Grift
2015-09-08  2:07   ` kuangjiou
2015-09-08  7:14     ` Dominick Grift
2015-09-08  9:06       ` 答复: " kuangjiou
2015-09-08 14:58         ` Stephen Smalley [this message]

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=55EEF7AA.30201@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=dac.override@gmail.com \
    --cc=kuangjiou@huawei.com \
    --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.