public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/icecream] epel8: Label the wrappers as initrc_exec_t
Date: Fri, 31 Jul 2026 06:34:13 GMT [thread overview]
Message-ID: <178547965363.1.12252534373534490140.rpms-icecream-bfea8b989266@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/icecream
Branch : epel8
Commit : bfea8b989266d13616203b02117b9c37524dd54a
Author : Michal Schmidt <mschmidt@redhat.com>
Date : 2016-11-04T16:28:48+01:00
Stats : +3/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/icecream/c/bfea8b989266d13616203b02117b9c37524dd54a?branch=epel8
Log:
Label the wrappers as initrc_exec_t
The previous attempt to fix the labelling was incorrect. The bin_t label
on the wrappers caused the services to run as unconfined_service_t.
Instead label the wrappers as initrc_exec_t.
systemd (init_t) runs the wrapper as initrc_t, which then execs the
binary and becomes iceccd_t / icecc_scheduler_t.
---
diff --git a/icecream.fc b/icecream.fc
index 0cdcdda..48b6d47 100644
--- a/icecream.fc
+++ b/icecream.fc
@@ -1,5 +1,7 @@
/usr/sbin/iceccd -- gen_context(system_u:object_r:iceccd_exec_t,s0)
+/usr/libexec/icecc/iceccd-wrapper -- gen_context(system_u:object_r:initrc_exec_t,s0)
/usr/sbin/icecc-scheduler -- gen_context(system_u:object_r:icecc_scheduler_exec_t,s0)
+/usr/libexec/icecc/icecc-scheduler-wrapper -- gen_context(system_u:object_r:initrc_exec_t,s0)
/usr/bin/icecc-create-env -- gen_context(system_u:object_r:iceccd_createenv_exec_t,s0)
/var/cache/icecream(/.*)? gen_context(system_u:object_r:iceccd_cache_t,s0)
/var/run/icecc(/.*)? gen_context(system_u:object_r:iceccd_var_run_t,s0)
diff --git a/icecream.te b/icecream.te
index 675e760..8c277d1 100644
--- a/icecream.te
+++ b/icecream.te
@@ -1,5 +1,5 @@
-policy_module(icecream,0.1.7)
+policy_module(icecream,0.1.8)
########################################
#
reply other threads:[~2026-07-31 6:34 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=178547965363.1.12252534373534490140.rpms-icecream-bfea8b989266@fedoraproject.org \
--to=mschmidt@redhat.com \
--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