Enable SELinix policy for libtcl and fix sigabort bug

This commit is contained in:
Nikola Pajkovsky 2009-08-10 10:30:46 +00:00
parent 9aee97fea3
commit 0c007d188c
2 changed files with 23 additions and 8 deletions

13
tcl-8.5.7-sigabrt.patch Normal file
View File

@ -0,0 +1,13 @@
diff -ruNp tcl8.5.7/generic/tclTrace.c tcl8.5.7-master/generic/tclTrace.c
--- tcl8.5.7/generic/tclTrace.c 2008-10-08 16:52:39.000000000 +0200
+++ tcl8.5.7-master/generic/tclTrace.c 2009-08-06 09:43:03.000000000 +0200
@@ -909,7 +909,8 @@ TraceVariableObjCmd(
}
ctvarPtr->traceCmdInfo.length = length;
flags |= TCL_TRACE_UNSETS | TCL_TRACE_RESULT_OBJECT;
- strcpy(ctvarPtr->traceCmdInfo.command, command);
+ //strcpy(ctvarPtr->traceCmdInfo.command, command);
+ memcpy(ctvarPtr->traceCmdInfo.command, command, length );
ctvarPtr->traceInfo.traceProc = TraceVarProc;
ctvarPtr->traceInfo.clientData = (ClientData)
&ctvarPtr->traceCmdInfo;

View File

@ -5,7 +5,7 @@
Summary: Tool Command Language, pronounced tickle
Name: tcl
Version: %{vers}
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 1
License: TCL
Group: Development/Languages
@ -19,7 +19,7 @@ Provides: tcl-tcldict = %{vers}
Patch0: tcl-8.5.1-autopath.patch
Patch1: tcl-8.5.0-conf.patch
Patch2: tcl-8.5.0-hidden.patch
Patch3: pic.patch
Patch3: tcl-8.5.7-sigabrt.patch
%if %sdt
BuildRequires: systemtap-sdt-devel
@ -57,7 +57,7 @@ chmod -x generic/tclThreadAlloc.c
%patch0 -p1 -b .autopath
%patch1 -p1 -b .conf
%patch2 -p1 -b .hidden
%patch3 -p1 -b .next_pic
%patch3 -p1 -b .sigabrt
%build
pushd unix
@ -67,7 +67,8 @@ autoconf
--enable-dtrace \
%endif
--disable-threads \
--enable-symbols
--enable-symbols \
--enable-shared
make %{?_smp_mflags} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
@ -111,10 +112,7 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/%{name}%{majorver}/ldAix
%clean
rm -rf $RPM_BUILD_ROOT
%post
#SELinux policy reloc problem with libtcl8.5.so
chcon -t textrel_shlib_t $RPM_BUILD_ROOT%{_libdir}/lib%{name}%{majorver}.so
/sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -140,6 +138,10 @@ chcon -t textrel_shlib_t $RPM_BUILD_ROOT%{_libdir}/lib%{name}%{majorver}.so
%{_libdir}/%{name}8.5/%{name}Config.sh
%changelog
* Mon Aug 10 2009 Nikola Pajkovsky <npajkovs@redhat.com> - 1:8.5.7-4
- Enable SEPolicy for libtcl.
- fix sigabort
* Tue Jul 28 2009 Nikola Pajkovsky <npajkovs@redhat.com> - 1:8.5.7-3
- 513997 fixed. SELinux policy problem with libtcl8.5.so