- make it possible to start a testing OpenSSH server when building with
SELinux in the enforcing mode (#521087)
This commit is contained in:
parent
dcb644501e
commit
95d9108847
14
curl.spec
14
curl.spec
@ -1,11 +1,12 @@
|
|||||||
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
|
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
|
||||||
Name: curl
|
Name: curl
|
||||||
Version: 7.20.1
|
Version: 7.20.1
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
|
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
|
||||||
Source2: curlbuild.h
|
Source2: curlbuild.h
|
||||||
|
Source3: hide_selinux.c
|
||||||
|
|
||||||
# upstream commit e32fe30d0cf7c1f7045ac0bd29322e7fb4feb5c8
|
# upstream commit e32fe30d0cf7c1f7045ac0bd29322e7fb4feb5c8
|
||||||
Patch0: curl-7.20.0-e32fe30.patch
|
Patch0: curl-7.20.0-e32fe30.patch
|
||||||
@ -156,11 +157,16 @@ export LD_LIBRARY_PATH
|
|||||||
# uncomment to use the non-stripped library in tests
|
# uncomment to use the non-stripped library in tests
|
||||||
# LD_PRELOAD=`find -name \*.so`
|
# LD_PRELOAD=`find -name \*.so`
|
||||||
# LD_PRELOAD=`readlink -f $LD_PRELOAD`
|
# LD_PRELOAD=`readlink -f $LD_PRELOAD`
|
||||||
# export LD_PRELOAD
|
|
||||||
|
|
||||||
cd tests
|
cd tests
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
# make it possible to start a testing OpenSSH server with SELinux
|
||||||
|
# in the enforcing mode (#521087)
|
||||||
|
gcc -o hide_selinux.so -shared %{SOURCE3}
|
||||||
|
LD_PRELOAD="`readlink -f ./hide_selinux.so`:$LD_PRELOAD"
|
||||||
|
export LD_PRELOAD
|
||||||
|
|
||||||
# use different port range for 32bit and 64bit build, thus make it possible
|
# use different port range for 32bit and 64bit build, thus make it possible
|
||||||
# to run both in parallel on the same machine
|
# to run both in parallel on the same machine
|
||||||
./runtests.pl -a -b%{?__isa_bits}90 -p -v
|
./runtests.pl -a -b%{?__isa_bits}90 -p -v
|
||||||
@ -219,6 +225,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/aclocal/libcurl.m4
|
%{_datadir}/aclocal/libcurl.m4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 28 2010 Kamil Dudka <kdudka@redhat.com> 7.20.1-5
|
||||||
|
- make it possible to start a testing OpenSSH server when building with SELinux
|
||||||
|
in the enforcing mode (#521087)
|
||||||
|
|
||||||
* Sat Apr 24 2010 Kamil Dudka <kdudka@redhat.com> 7.20.1-4
|
* Sat Apr 24 2010 Kamil Dudka <kdudka@redhat.com> 7.20.1-4
|
||||||
- upstream patch preventing failure of test536 with threaded DNS resolver
|
- upstream patch preventing failure of test536 with threaded DNS resolver
|
||||||
- upstream patch preventing SSL handshake timeout underflow
|
- upstream patch preventing SSL handshake timeout underflow
|
||||||
|
8
hide_selinux.c
Normal file
8
hide_selinux.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* make it possible to start a testing OpenSSH server with SELinux
|
||||||
|
* in the enforcing mode (#521087)
|
||||||
|
*/
|
||||||
|
int security_getenforce(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user