From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: JanuGerman <doublemalam@yahoo.co.uk>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
SELinux List <selinux@tycho.nsa.gov>
Subject: Re: conditional. policy does not take effect.
Date: Fri, 06 Apr 2007 08:26:59 -0400 [thread overview]
Message-ID: <1175862419.17676.22.camel@sgc> (raw)
In-Reply-To: <164692.56209.qm@web86903.mail.ukl.yahoo.com>
On Fri, 2007-04-06 at 09:34 +0000, JanuGerman wrote:
> Hi every one,
>
> My cond. policies are not taking effect. Following are the contents of my lodable policy module.
>
> policy_module(myapp,1.0)
> require {
> type unconfined_t;
> type fs_t;
> }
> type x_t;
> bool test true;
> auditallow x_t fs_t:filesystem associate;
> if (test) {
> auditallow unconfined_t x_t:dir *;
> auditallow unconfined_t x_t:file *;
> } else {
> auditallow unconfined_t x_t:dir { getattr read search };
> auditallow unconfined_t x_t:file {getattr };
> }
auditallow does not allow anything. It makes audit messages when
something is allowed. You need an allow message too.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
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.
next prev parent reply other threads:[~2007-04-06 12:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-06 9:34 conditional. policy does not take effect JanuGerman
2007-04-06 12:26 ` Christopher J. PeBenito [this message]
2007-04-06 12:31 ` Daniel J Walsh
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=1175862419.17676.22.camel@sgc \
--to=cpebenito@tresys.com \
--cc=doublemalam@yahoo.co.uk \
--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.