From: Joshua Brindle <jbrindle@tresys.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SELinux List <SELinux@tycho.nsa.gov>
Subject: Re: [PATCH] sepol link.c fixes
Date: Fri, 23 Sep 2005 12:08:03 -0400 [thread overview]
Message-ID: <43342863.1020505@tresys.com> (raw)
In-Reply-To: <1127489714.27851.24.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
>On Thu, 2005-09-22 at 16:52 -0400, Joshua Brindle wrote:
>
>
>>The first patch fixes a NULL dereference, a memory leak (only the first
>>block of an avrule list was being freed instead of the whole list), and
>>makes merge_avrules static.
>>
>>
>
>--- libsepol/src/link.c 2005-09-22 09:41:17.000000000 -0400
>+++ libsepol/src/link.c 2005-09-22 15:39:59.000000000 -0400
>@@ -1488,7 +1488,8 @@ static void enable_avrules(link_state_t
> continue;
> }
> while (depth_count-- > 0 && decl != NULL) {
>- if (is_decl_requires_met(state, decl, NULL)) {
>+ struct missing_requirement req; /* unused */
>+ if (is_decl_requires_met(state, decl, &req)) {
> decl->enabled = 1;
> block->enabled = decl;
> changed = 1;
>
>Why? is_decl_requires_met already checks for req != NULL prior to
>dereferencing.
>
>
Yes, this fix came from another feature and looks bogus anyway. Please
drop this patch.
Joshua
--
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.
prev parent reply other threads:[~2005-09-23 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 20:52 [PATCH] sepol link.c fixes Joshua Brindle
2005-09-23 15:35 ` Stephen Smalley
2005-09-23 16:08 ` Joshua Brindle [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=43342863.1020505@tresys.com \
--to=jbrindle@tresys.com \
--cc=SELinux@tycho.nsa.gov \
--cc=sds@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.