linux/Documentation/ABI/removed
Stephen Smalley ad1ac3d740 selinux: prune /sys/fs/selinux/user
Remove the previously deprecated /sys/fs/selinux/user interface aside
from a residual stub for userspace compatibility.

Commit d7b6918e22 ("selinux: Deprecate /sys/fs/selinux/user") started
the deprecation process for /sys/fs/selinux/user:

    The selinuxfs "user" node allows userspace to request a list
    of security contexts that can be reached for a given SELinux
    user from a given starting context. This was used by libselinux
    when various login-style programs requested contexts for
    users, but libselinux stopped using it in 2020.
    Kernel support will be removed no sooner than Dec 2025.

A pr_warn() message has been in place since Linux v6.13, and a 5
second sleep was introduced since Linux v6.17 to help make it more
noticeable.

We are now past the stated deadline of Dec 2025, so remove the
underlying functionality and replace it with a stub that returns a
'0\0' buffer to avoid breaking userspace. This also avoids a local DoS
from logspam and an uninterruptible sleep delay.

Cc: stable@vger.kernel.org
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2026-05-05 15:27:44 -04:00
..
devfs docs: ABI: cleanup several ABI documents 2020-10-30 13:14:29 +01:00
dv1394
ip_queue
net_dma net_dma: simple removal 2014-09-28 07:05:16 -07:00
o2cb docs: update ocfs2-devel mailing list address 2023-07-08 09:29:29 -07:00
raw1394 docs: ABI: cleanup several ABI documents 2020-10-30 13:14:29 +01:00
sysfs-bus-nfit MAINTAINERS: Move nvdimm mailing list 2021-05-12 12:37:15 -07:00
sysfs-class-cxl docs: Fix references to IBM CAPI (cxl) removal version 2025-04-02 23:09:52 +11:00
sysfs-class-rfkill ABI: sysfs-class-rfkill: fix kernelversion tags 2025-02-10 11:19:56 -07:00
sysfs-firmware-efi-vars Documentation: Mark the 'efivars' sysfs interface as removed 2024-04-13 10:33:02 +02:00
sysfs-kernel-fadump_release_opalcore powerpc/powernv: Move core and fadump_release_opalcore under new kobject 2020-02-19 21:07:10 +11:00
sysfs-kernel-uids docs: typo fixes in Documentation/ABI/ 2021-05-13 09:13:25 -06:00
sysfs-mce x86/mce: Remove the tolerance level control 2022-02-23 11:09:25 +01:00
sysfs-selinux-checkreqprot selinux: remove the 'checkreqprot' functionality 2023-03-20 12:33:50 -04:00
sysfs-selinux-disable selinux: remove the runtime disable functionality 2023-03-20 12:34:23 -04:00
sysfs-selinux-user selinux: prune /sys/fs/selinux/user 2026-05-05 15:27:44 -04:00
video1394 docs: ABI: cleanup several ABI documents 2020-10-30 13:14:29 +01:00