public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Coiby Xu <coxu@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ima-evm-utils] f44: Don't allow files in tmpfs to be executed
Date: Mon, 30 Nov 2026 06:15:43 GMT [thread overview]
Message-ID: <179601934394.1.14111951619675604446.rpms-ima-evm-utils-0cce6d8fefb8@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ima-evm-utils
Branch : f44
Commit : 0cce6d8fefb81890d21f6f13b735474d9a73ffdb
Author : Coiby Xu <coxu@redhat.com>
Date : 2026-11-30T10:51:07+08:00
Stats : +2/-25 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ima-evm-utils/c/0cce6d8fefb81890d21f6f13b735474d9a73ffdb?branch=f44
Log:
Don't allow files in tmpfs to be executed
Resolves: https://issues.redhat.com/browse/RHEL-86010
Commit 83b610d ("Skip some file systems for appraisal") was to make
gnome-shell work but the policy becomes unnecessarily unrestrictive.
So only make an exception for mmap exec which may be needed by libffi.
Fixes: 83b610d ("Skip some file systems for appraisal")
Suggested-by: Marko Myllynen <myllynen@redhat.com>
Signed-off-by: Coiby Xu <coxu@redhat.com>
---
diff --git a/policy-01-appraise-executable-and-lib-signatures b/policy-01-appraise-executable-and-lib-signatures
index 53feed5..1d5ab50 100644
--- a/policy-01-appraise-executable-and-lib-signatures
+++ b/policy-01-appraise-executable-and-lib-signatures
@@ -1,28 +1,5 @@
-# Skip some unsupported filesystems
-# This list of the filesystems can be found on
-# https://www.kernel.org/doc/Documentation/ABI/testing/ima_policy
-# PROC_SUPER_MAGIC
-dont_appraise fsmagic=0x9fa0
-# SYSFS_MAGIC
-dont_appraise fsmagic=0x62656572
-# DEBUGFS_MAGIC
-dont_appraise fsmagic=0x64626720
-# TMPFS_MAGIC
-dont_appraise fsmagic=0x01021994
-# RAMFS_MAGIC
-dont_appraise fsmagic=0x858458f6
-# DEVPTS_SUPER_MAGIC
-dont_appraise fsmagic=0x1cd1
-# BINFMTFS_MAGIC
-dont_appraise fsmagic=0x42494e4d
-# SECURITYFS_MAGIC
-dont_appraise fsmagic=0x73636673
-# SELINUX_MAGIC
-dont_appraise fsmagic=0xf97cff8c
-# CGROUP_SUPER_MAGIC
-dont_appraise fsmagic=0x27e0eb
-# NSFS_MAGIC
-dont_appraise fsmagic=0x6e736673
+# Allow use cases like libffi
+dont_appraise mask=MAY_EXEC func=MMAP_CHECK fsmagic=0x01021994
appraise func=MMAP_CHECK mask=MAY_EXEC appraise_type=imasig
appraise func=BPRM_CHECK appraise_type=imasig
reply other threads:[~2026-11-30 6: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=179601934394.1.14111951619675604446.rpms-ima-evm-utils-0cce6d8fefb8@fedoraproject.org \
--to=coxu@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