From: Harry Ciao <qingtao.cao@windriver.com>
To: <sds@tycho.nsa.gov>, <jmorris@namei.org>, <eparis@parisplace.org>
Cc: <selinux@tycho.nsa.gov>
Subject: [PATCH 1/1] Fix arguments when expanding user_datum_t.roles
Date: Wed, 25 May 2011 17:26:09 +0800 [thread overview]
Message-ID: <1306315569-5432-2-git-send-email-qingtao.cao@windriver.com> (raw)
In-Reply-To: <1306315569-5432-1-git-send-email-qingtao.cao@windriver.com>
When expanding user_datum_t.roles role_set_t, the policydb_t of
the out module should be passed rather than that of the base module!
Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
---
libsepol/src/expand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libsepol/src/expand.c b/libsepol/src/expand.c
index da084ec..3308c3f 100644
--- a/libsepol/src/expand.c
+++ b/libsepol/src/expand.c
@@ -977,7 +977,7 @@ static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum,
ebitmap_init(&tmp_union);
/* get global roles for this user */
- if (role_set_expand(&user->roles, &tmp_union, state->base, state->rolemap)) {
+ if (role_set_expand(&user->roles, &tmp_union, state->out, state->rolemap)) {
ERR(state->handle, "Out of memory!");
ebitmap_destroy(&tmp_union);
return -1;
--
1.7.0.4
--
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:[~2011-05-25 9:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-25 9:26 SELinux: Fix arguments when expanding user_datum_t.roles Harry Ciao
2011-05-25 9:26 ` Harry Ciao [this message]
2011-05-27 2:13 ` [PATCH 1/1] " HarryCiao
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=1306315569-5432-2-git-send-email-qingtao.cao@windriver.com \
--to=qingtao.cao@windriver.com \
--cc=eparis@parisplace.org \
--cc=jmorris@namei.org \
--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.