public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: - make it possible to start a testing OpenSSH server when building with
Date: Mon, 02 Nov 2026 14:26:59 GMT	[thread overview]
Message-ID: <179362961958.1.16524286107454157601.rpms-curl-95d9108847b3@fedoraproject.org> (raw)

        A new commit has been pushed.

        Repo   : rpms/curl
        Branch : curl-v8.21.0-9
        Commit : 95d9108847b36bca699e163c7ad68aa121c4e6d9
        Author : Kamil Dudka <kdudka@fedoraproject.org>
        Date   : 2010-04-28T13:52:40+00:00
        Stats  : +20/-2 in 2 file(s)
        URL    : https://src.fedoraproject.org/rpms/curl/c/95d9108847b36bca699e163c7ad68aa121c4e6d9?branch=curl-v8.21.0-9

        Log:
        - make it possible to start a testing OpenSSH server when building with
SELinux in the enforcing mode (#521087)

---
diff --git a/curl.spec b/curl.spec
index 837081b..1e1f3c2 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,11 +1,12 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 7.20.1
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
 Source2: curlbuild.h
+Source3: hide_selinux.c
 
 # upstream commit e32fe30d0cf7c1f7045ac0bd29322e7fb4feb5c8
 Patch0: curl-7.20.0-e32fe30.patch
@@ -156,11 +157,16 @@ export LD_LIBRARY_PATH
 # uncomment to use the non-stripped library in tests
 # LD_PRELOAD=`find -name \*.so`
 # LD_PRELOAD=`readlink -f $LD_PRELOAD`
-# export LD_PRELOAD
 
 cd tests
 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
 # to run both in parallel on the same machine
 ./runtests.pl -a -b%{?__isa_bits}90 -p -v
@@ -219,6 +225,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %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
 - upstream patch preventing failure of test536 with threaded DNS resolver
 - upstream patch preventing SSL handshake timeout underflow

diff --git a/hide_selinux.c b/hide_selinux.c
new file mode 100644
index 0000000..d34be1a
--- /dev/null
+++ b/hide_selinux.c
@@ -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;
+}

                 reply	other threads:[~2026-11-02 14:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179362961958.1.16524286107454157601.rpms-curl-95d9108847b3@fedoraproject.org \
    --to=kdudka@fedoraproject.org \
    --cc=git-commits@fedoraproject.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox