public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ima-evm-utils] f44: Don't allow files in tmpfs to be executed
@ 2026-11-30 6:15 Coiby Xu
0 siblings, 0 replies; only message in thread
From: Coiby Xu @ 2026-11-30 6:15 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 6:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 6:15 [rpms/ima-evm-utils] f44: Don't allow files in tmpfs to be executed Coiby Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox