From: jwcart2 <jwcart2@tycho.nsa.gov>
To: Denis Obrezkov <denisobrezkov@gmail.com>, selinux@vger.kernel.org
Subject: Re: [Non-DoD Source] rangetranstion in cil fails and doesn't produce explanatory output
Date: Mon, 3 Feb 2020 14:44:12 -0500 [thread overview]
Message-ID: <94ba5f15-2615-cbd3-1e00-222c7bbb6bf7@tycho.nsa.gov> (raw)
In-Reply-To: <6a4178fa-72fd-22af-519b-16cd2ec6c3a1@gmail.com>
On 2/3/20 7:21 AM, Denis Obrezkov wrote:
> Hello,
>
> I am trying to make rangetransition work, this is my cil file:
> (type foo)
> (type bar)
> (allow foo bar (file (ioctl read write create getattr setattr lock
> relabelfrom relabelto append unlink link rename execute swapon quotaon
> mounton)))
> (rangetransition foo bar process s0)
>
> Now, I am trying to install it:
> semodule -i lximage.cil
>
> Failed to resolve rangetransition statement at
> /var/lib/selinux/refpolicy_mcs/tmp/modules/400/lximage/cil:4
> semodule: Failed!
>
> I use Debian Testing with refpolicy enforced. Policy type = mcs.
> What is wrong with my module? How can I get more explanatory output?
>
For more information you can use semodule -v -i lximage.cil
In your case, CIL is particular in its syntax and wants:
(rangetransition foo bar process ((s0) (s0)))
Jim
--
James Carter <jwcart2@tycho.nsa.gov>
National Security Agency
prev parent reply other threads:[~2020-02-03 19:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-03 12:21 rangetranstion in cil fails and doesn't produce explanatory output Denis Obrezkov
2020-02-03 19:44 ` jwcart2 [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=94ba5f15-2615-cbd3-1e00-222c7bbb6bf7@tycho.nsa.gov \
--to=jwcart2@tycho.nsa.gov \
--cc=denisobrezkov@gmail.com \
--cc=selinux@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).