From: "Jason Zaman" <perfinion@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/, policy/modules/apps/
Date: Sat, 08 Mar 2025 23:55:05 +0000 (UTC) [thread overview]
Message-ID: <1741476403.1d91ca83f936e09cef6385ffd7b6a9ab51c9adb9.perfinion@gentoo> (raw)
commit: 1d91ca83f936e09cef6385ffd7b6a9ab51c9adb9
Author: Pat Riehecky <riehecky <AT> fnal <DOT> gov>
AuthorDate: Wed Feb 26 21:26:02 2025 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sat Mar 8 23:26:43 2025 +0000
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=1d91ca83
Permit init_t to start a detached screen session
Signed-off-by: Pat Riehecky <riehecky <AT> fnal.gov>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
policy/modules/apps/screen.if | 17 +++++++++++++++++
policy/modules/system/init.te | 4 ++++
2 files changed, 21 insertions(+)
diff --git a/policy/modules/apps/screen.if b/policy/modules/apps/screen.if
index fadb0df94..464e4e9ce 100644
--- a/policy/modules/apps/screen.if
+++ b/policy/modules/apps/screen.if
@@ -138,3 +138,20 @@ interface(`screen_dontaudit_getattr_sock_file',`
dontaudit $1 screen_runtime_t:sock_file getattr;
')
+
+########################################
+## <summary>
+## Permit running screen
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+interface(`screen_exec',`
+ gen_require(`
+ type screen_exec_t;
+ ')
+
+ allow $1 screen_exec_t:file mmap_exec_file_perms;
+')
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
index b3d1a4698..1320f7aae 100644
--- a/policy/modules/system/init.te
+++ b/policy/modules/system/init.te
@@ -72,6 +72,10 @@ optional_policy(`
kubernetes_mountpoint(init_t)
')
+optional_policy(`
+ screen_exec(init_t)
+')
+
#
# init_runtime_t is the type for /var/run/shutdown.pid and /var/run/systemd.
#
next reply other threads:[~2025-03-08 23:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-08 23:55 Jason Zaman [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-02-01 2:10 [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/, policy/modules/apps/ Jason Zaman
2020-02-15 7:33 Jason Zaman
2020-02-15 7:33 Jason Zaman
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=1741476403.1d91ca83f936e09cef6385ffd7b6a9ab51c9adb9.perfinion@gentoo \
--to=perfinion@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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