public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <michich@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/icecream] epel10: - SELinux: Allow iceccd to contact the scheduler via UDP.
Date: Thu, 30 Jul 2026 15:15:21 GMT	[thread overview]
Message-ID: <178542452100.1.7325313665872990220.rpms-icecream-89116ae9a138@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/icecream
            Branch : epel10
            Commit : 89116ae9a13873a9d0900d0437603187f4c61470
            Author : Michal Schmidt <michich@fedoraproject.org>
            Date   : 2007-11-27T22:36:12+00:00
            Stats  : +20/-5 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/icecream/c/89116ae9a13873a9d0900d0437603187f4c61470?branch=epel10

            Log:
            - SELinux: Allow iceccd to contact the scheduler via UDP.
- Don't add icecream to PATH in the profile scripts if ccache is installed
    to avoid recursive invocations (bz #377761).

---
diff --git a/icecream.csh.in b/icecream.csh.in
index 3f317a0..444194f 100644
--- a/icecream.csh.in
+++ b/icecream.csh.in
@@ -1,3 +1,7 @@
-if ( "$path" !~ *@LIBDIR@/icecc/bin* ) then
-    set path = ( @LIBDIR@/icecc/bin $path )
+# If icecream and ccache are installed, we must not put both in PATH
+# to prevent recursive invocations.
+# Note: ccache.csh (if present) will be sourced before icecream.csh
+
+if ( "$path" !~ *@LIBDIR@/icecc/bin* && "$path" !~ *@LIBDIR@/ccache* ) then
+	set path = ( @LIBDIR@/icecc/bin "$path" )
 endif

diff --git a/icecream.sh.in b/icecream.sh.in
index 5ccf52a..f42d2a3 100644
--- a/icecream.sh.in
+++ b/icecream.sh.in
@@ -1,3 +1,8 @@
-if ! echo "$PATH" | grep -qw @LIBDIR@/icecc/bin ; then
-    PATH="@LIBDIR@/icecc/bin:$PATH"
+# If icecream and ccache are installed, we must not put both in PATH
+# to prevent recursive invocations.
+# Note: ccache.sh (if present) will be sourced before icecream.sh
+
+if ! echo "$PATH" | /bin/grep -q "@LIBDIR@/icecc/bin\|@LIBDIR@/ccache"
+then
+	PATH="@LIBDIR@/icecc/bin:$PATH"
 fi

diff --git a/icecream.spec b/icecream.spec
index f36a979..0782250 100644
--- a/icecream.spec
+++ b/icecream.spec
@@ -1,6 +1,6 @@
 Name:		icecream
 Version:	0.8.0
-Release:	4.20071101svn%{?dist}
+Release:	5.20071101svn%{?dist}
 Summary:	Distributed compiler
 
 Group:		Development/Tools
@@ -210,6 +210,11 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/icecc.pc
 
 %changelog
+* Tue Nov 27 2007 Michal Schmidt <mschmidt@redhat.com> - 0.8.0-5.20071101svn
+- SELinux: Allow iceccd to contact the scheduler via UDP.
+- Don't add icecream to PATH in the profile scripts if ccache is installed
+  to avoid recursive invocations (bz #377761).
+
 * Tue Nov 20 2007 Michal Schmidt <mschmidt@redhat.com> - 0.8.0-4.20071101svn
 - Add a SELinux policy for iceccd
 - Initscripts as sources instead of patches in the .spec file

diff --git a/icecream.te b/icecream.te
index 51402fe..78c6474 100644
--- a/icecream.te
+++ b/icecream.te
@@ -58,6 +58,7 @@ allow iceccd_t self:tcp_socket create_stream_socket_perms;
 allow iceccd_t self:udp_socket create_socket_perms;
 allow iceccd_t iceccd_port_t:tcp_socket name_bind;
 allow iceccd_t icecc_scheduler_port_t:tcp_socket { send_msg recv_msg name_connect };
+allow iceccd_t icecc_scheduler_port_t:udp_socket { send_msg recv_msg };
 allow iceccd_t self:fifo_file { read write ioctl getattr };
 # why exactly?:
 allow iceccd_t self:capability { chown dac_override fsetid kill };

                 reply	other threads:[~2026-07-30 15:15 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=178542452100.1.7325313665872990220.rpms-icecream-89116ae9a138@fedoraproject.org \
    --to=michich@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