From: Joshua Brindle <jbrindle@tresys.com>
To: selinux <selinux@tycho.nsa.gov>
Subject: [PATCH] Fix hierarchy checking on type rules
Date: Thu, 14 Jul 2005 11:30:58 -0400 [thread overview]
Message-ID: <1121355058.10979.6.camel@localhost> (raw)
Currently the hierarchy checker will incorrectly try to check type
rules, this patch fixes that.
diff -u -r1.4 hierarchy.c
--- libsepol/src/hierarchy.c 6 Jul 2005 17:45:07 -0000 1.4
+++ libsepol/src/hierarchy.c 14 Jul 2005 15:29:16 -0000
@@ -127,6 +127,11 @@
uint32_t av;
type_datum_t *t = NULL, *t2 = NULL;
+ if (!d->specified & AVTAB_AV) {
+ /* This is a type rule, no checking done */
+ return 0;
+ }
+
a = (hierarchy_args_t *)args;
if (find_parent(a->p->p_type_val_to_name[k->source_type - 1],
&parent))
return -1;
--
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 reply other threads:[~2005-07-14 15:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-14 15:30 Joshua Brindle [this message]
2005-07-18 14:28 ` [PATCH] Fix hierarchy checking on type rules 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=1121355058.10979.6.camel@localhost \
--to=jbrindle@tresys.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.