From: Karel Klic <kklic@redhat.com>
To: bryan.shell@beleriand.co.uk
Cc: emacs-devel@gnu.org
Subject: Re: SELinux Bug report
Date: Fri, 30 Apr 2010 16:12:26 +0200 [thread overview]
Message-ID: <4BDAE54A.8080302@redhat.com> (raw)
In-Reply-To: <q2jdca1a6491004291403mae46d427pc1062da149e47ef5@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
Hi Bryan,
the attached patch fixes the crash. Until now I have never seen
context_*_get() returning NULL.
Karel
On 04/29/2010 11:03 PM, Bryan Shell wrote:
> Hi,
>
> I've been have issues the current trunk and the SELinux patch(s) that
> were recently applied. I'm not 100% who's issue it is but it's clear
> that configuring with --without-selinux fixes the issue. I've captured
> a backtrace (and have the core file if more information is needed) and
> have attached that. The box I'm useing this on has a rather restrictive
> policy in place, so I'm not ruling out the possiblity that it just a
> configuration issue.
>
> Thanks
> -bryan
[-- Attachment #2: emacs-selinux-getnull.patch --]
[-- Type: text/x-patch, Size: 864 bytes --]
--- fileio.c.old 2010-04-30 16:01:40.955759605 +0200
+++ fileio.c 2010-04-30 16:03:45.949877364 +0200
@@ -2918,10 +2918,14 @@
if (conlength > 0)
{
context = context_new (con);
- values[0] = build_string (context_user_get (context));
- values[1] = build_string (context_role_get (context));
- values[2] = build_string (context_type_get (context));
- values[3] = build_string (context_range_get (context));
+ if (context_user_get (context))
+ values[0] = build_string (context_user_get (context));
+ if (context_role_get (context))
+ values[1] = build_string (context_role_get (context));
+ if (context_type_get (context))
+ values[2] = build_string (context_type_get (context));
+ if (context_range_get (context))
+ values[3] = build_string (context_range_get (context));
context_free (context);
}
if (con)
next prev parent reply other threads:[~2010-04-30 14:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-29 21:03 SELinux Bug report Bryan Shell
2010-04-30 14:12 ` Karel Klic [this message]
2010-04-30 21:17 ` Bryan Shell
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=4BDAE54A.8080302@redhat.com \
--to=kklic@redhat.com \
--cc=bryan.shell@beleriand.co.uk \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.