diff options
| author | Carlos Llamas <cmllamas@google.com> | 2026-07-30 22:15:07 +0000 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2026-07-31 11:33:53 -0400 |
| commit | 28254722a459938d97150d3b0712b81e06d0645e (patch) | |
| tree | 2c86a848ac580be341ea7f5aa844c1d3cde7aad5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9a82dcd98b6e6e11cfd162410967951f12152528 (diff) | |
selinux: bpf: check SBLABEL_MNT before isec init
selinux_inode_init_security() marks the isec as initialized before
checking if mount labeling is supported (SBLABEL_MNT). This was fine
until commit 9722955b5430 ("bpf: Add simple xattr support to bpffs"),
where genfscon bpffs mounts fail the SBLABEL_MNT check as expected (no
xattrs) and yet leave the isec->initialized. This breaks subsequent
calls to inode_doinit_with_dentry().
Do the SBLABEL_MNT check before the inode security is initialized.
Cc: stable@vger.kernel.org
Closes: https://lore.kernel.org/all/akWdcp6P0FkNDzBk@google.com/
Fixes: 9722955b5430 ("bpf: Add simple xattr support to bpffs")
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
