From: "Justin P. Mattock" <justinmattock@gmail.com>
To: russell@coker.com.au
Cc: selinux@tycho.nsa.gov
Subject: Re: [PATCH 2/3]libsepol
Date: Wed, 07 Jul 2010 06:28:51 -0700 [thread overview]
Message-ID: <4C348113.4020709@gmail.com> (raw)
In-Reply-To: <201007072114.07279.russell@coker.com.au>
On 07/07/2010 04:14 AM, Russell Coker wrote:
> On Wed, 7 Jul 2010, "Justin P. Mattock"<justinmattock@gmail.com> wrote:
>> --- a/libsepol/src/services.c
>> +++ b/libsepol/src/services.c
>> @@ -1050,7 +1049,6 @@ int hidden sepol_load_policy(void *data, size_t len)
>> /* Install the new policydb and SID table. */
>> memcpy(policydb,&newpolicydb, sizeof *policydb);
>> sepol_sidtab_set(sidtab,&newsidtab);
>> - seqno = ++latest_granting;
>>
>> /* Free the old policydb and SID table. */
>> policydb_destroy(&oldpolicydb);
>
> Is latest_granting used for anything else? If it's not being used then it
> should be removed too. If it is being used then failing to increment it
> breaks something.
>
doing a grep for all packages shows me this:(no grep in the kernel or
elsewhere
selinux/libsepol/src/services.c:112:static uint32_t latest_granting = 0;
selinux/libsepol/src/services.c:335: avd->seqno = latest_granting;
selinux/libsepol/src/services.c:1053: seqno = ++latest_granting;
Justin P. Mattock
--
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:[~2010-07-07 13:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 22:23 [PATCH 0/3] Fix warning messages generated by GCC 4.6 Justin P. Mattock
2010-07-06 22:23 ` [refpolicy] " Justin P. Mattock
2010-07-06 22:23 ` [PATCH 1/3]checkpolicy Fix error: variable 'newattr' set but not used(and others as well) Justin P. Mattock
2010-07-06 22:23 ` [refpolicy] " Justin P. Mattock
2010-07-06 22:23 ` [PATCH 2/3]libsepol Justin P. Mattock
2010-07-06 22:23 ` [refpolicy] " Justin P. Mattock
2010-07-07 11:14 ` Russell Coker
2010-07-07 13:28 ` Justin P. Mattock [this message]
2010-07-06 22:23 ` [PATCH 1/3]libsemanage Fix warning: parameter 'key' set but not used(and others) Justin P. Mattock
2010-07-06 22:23 ` [refpolicy] " Justin P. Mattock
2010-12-16 19:19 ` [refpolicy] [PATCH 0/3] Fix warning messages generated by GCC 4.6 Chad Sellers
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=4C348113.4020709@gmail.com \
--to=justinmattock@gmail.com \
--cc=russell@coker.com.au \
--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.