* Patch to fix segfault in libselinux
@ 2006-08-02 14:11 Daniel J Walsh
2006-08-03 14:35 ` Stephen Smalley
0 siblings, 1 reply; 3+ messages in thread
From: Daniel J Walsh @ 2006-08-02 14:11 UTC (permalink / raw)
To: Stephen Smalley, SE Linux
[-- Attachment #1: Type: text/plain, Size: 282 bytes --]
* Tue Aug 1 2006 Jeremy Katz <katzj@redhat.com> - 1.30.19-5
- only build non-fpic objects with -mno-tls-direct-seg-refs
* Tue Aug 1 2006 Jeremy Katz <katzj@redhat.com> - 1.30.19-4
- build with -mno-tls-direct-seg-refs on x86 to avoid triggering
segfaults with xen (#200783)
[-- Attachment #2: libselinux-tlssegneg.patch --]
[-- Type: text/x-patch, Size: 683 bytes --]
--- libselinux-1.30.19/src/Makefile.notls 2006-08-01 14:16:38.000000000 -0400
+++ libselinux-1.30.19/src/Makefile 2006-08-01 14:37:15.000000000 -0400
@@ -24,6 +24,11 @@
override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
RANLIB=ranlib
+ARCH := $(patsubst i%86,i386,$(shell uname -m))
+ifneq (,$(filter i386,$(ARCH)))
+TLSFLAGS += -mno-tls-direct-seg-refs
+endif
+
SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./
all: $(LIBA) $(LIBSO)
@@ -45,7 +50,7 @@
ln -sf $@ $(TARGET)
%.o: %.c policy.h
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(TLSFLAGS) -c -o $@ $<
%.lo: %.c policy.h
$(CC) $(CFLAGS) -fpic -DSHARED -c -o $@ $<
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Patch to fix segfault in libselinux
2006-08-02 14:11 Patch to fix segfault in libselinux Daniel J Walsh
@ 2006-08-03 14:35 ` Stephen Smalley
2006-08-03 15:20 ` Daniel J Walsh
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Smalley @ 2006-08-03 14:35 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: SE Linux
On Wed, 2006-08-02 at 10:11 -0400, Daniel J Walsh wrote:
> * Tue Aug 1 2006 Jeremy Katz <katzj@redhat.com> - 1.30.19-5
> - only build non-fpic objects with -mno-tls-direct-seg-refs
>
> * Tue Aug 1 2006 Jeremy Katz <katzj@redhat.com> - 1.30.19-4
> - build with -mno-tls-direct-seg-refs on x86 to avoid triggering
> segfaults with xen (#200783)
What's really at fault here, libselinux or xen?
--
Stephen Smalley
National Security Agency
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Patch to fix segfault in libselinux
2006-08-03 14:35 ` Stephen Smalley
@ 2006-08-03 15:20 ` Daniel J Walsh
0 siblings, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2006-08-03 15:20 UTC (permalink / raw)
To: Stephen Smalley; +Cc: SE Linux
Stephen Smalley wrote:
> On Wed, 2006-08-02 at 10:11 -0400, Daniel J Walsh wrote:
>
>> * Tue Aug 1 2006 Jeremy Katz <katzj@redhat.com> - 1.30.19-5
>> - only build non-fpic objects with -mno-tls-direct-seg-refs
>>
>> * Tue Aug 1 2006 Jeremy Katz <katzj@redhat.com> - 1.30.19-4
>> - build with -mno-tls-direct-seg-refs on x86 to avoid triggering
>> segfaults with xen (#200783)
>>
>
> What's really at fault here, libselinux or xen?
>
>
libselinux in a threaded environment.
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-03 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02 14:11 Patch to fix segfault in libselinux Daniel J Walsh
2006-08-03 14:35 ` Stephen Smalley
2006-08-03 15:20 ` Daniel J Walsh
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.