From: Joshua Brindle <method@manicmethod.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov,
"Christopher J. PeBenito" <cpebenito@tresys.com>,
Karl MacMillan <kmacmillan@mentalrootkit.com>
Subject: Re: [patch] libselinux: fix type mismatch in string_to_security_class
Date: Mon, 23 Jul 2007 11:56:55 -0400 [thread overview]
Message-ID: <46A4CFC7.2020407@manicmethod.com> (raw)
In-Reply-To: <1185200517.1998.14.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> Fix type mismatch in string_to_security_class, produces seg fault on x86_64.
> For https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=249038
>
> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
>
Acked-By: Joshua Brindle <method@manicmethod.com>
merged into libselinux 2.0.25
> ---
>
> stringrep.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: src/stringrep.c
>
-p0 or -p1 from top of the repo? :)
> ===================================================================
> --- src/stringrep.c (revision 2496)
> +++ src/stringrep.c (working copy)
> @@ -236,7 +236,7 @@
>
> dentry = readdir(dir);
> while (dentry != NULL) {
> - size_t value;
> + unsigned int value;
> struct stat m;
>
> snprintf(path, sizeof path, "%s/class/%s/perms/%s", selinux_mnt,s,dentry->d_name);
> @@ -258,7 +258,7 @@
> if (ret < 0)
> goto err4;
>
> - if (sscanf(buf, "%u", (unsigned int *)&value) != 1)
> + if (sscanf(buf, "%u", &value) != 1)
> goto err4;
>
> node->perms[value-1] = strdup(dentry->d_name);
>
>
--
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-07-23 15:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-23 14:21 [patch] libselinux: fix type mismatch in string_to_security_class Stephen Smalley
2007-07-23 15:56 ` Joshua Brindle [this message]
2007-07-24 18:05 ` John D. Ramsdell
2007-07-24 19:05 ` 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=46A4CFC7.2020407@manicmethod.com \
--to=method@manicmethod.com \
--cc=cpebenito@tresys.com \
--cc=kmacmillan@mentalrootkit.com \
--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.