mbox series

[pseudo,0/2] Attempt to prevent selinux related failures

Message ID 20261116190244.2205781-1-mark.hatle@amd.com
Headers show
Series Attempt to prevent selinux related failures | expand

Message

Mark Hatle Nov. 16, 2026, 7:02 p.m. UTC
[YOCTO #6580]

This is the oldest open pseudo related bug in the bugzilla.  The change
adds some code that will tell users that SELinux is always in a
non-enforcing mode.  This should cause various tools to avoid doing
stupid things, even if the user is in a configuration that otherwise
works.

Additionally, a check was added that tries to identify if we are in a
confined environment, and logs this with a warning.  The idea is if
someone is trying to debug what is going wrong, they'll at least get
information that the environment is confined, and it might not be a
pseudo bug.

Mark Hatle (2):
  ports/linux: Report SELinux as disabled under pseudo
  pseudo_server: Log when running in a confined SELinux domain

 .gitignore                                |  1 +
 Makefile.in                               | 10 +++-
 README.security                           | 20 ++++++++
 ports/linux/guts/is_selinux_enabled.c     | 24 +++++++++
 ports/linux/guts/is_selinux_mls_enabled.c | 16 ++++++
 ports/linux/pseudo_wrappers.c             | 23 +++++++++
 ports/linux/wrapfuncs.in                  |  2 +
 pseudo_server.c                           | 60 +++++++++++++++++++++++
 test/fake-selinux.c                       | 15 ++++++
 test/test-selinux-disabled.c              | 49 ++++++++++++++++++
 test/test-selinux-disabled.sh             | 20 ++++++++
 11 files changed, 239 insertions(+), 1 deletion(-)
 create mode 100644 ports/linux/guts/is_selinux_enabled.c
 create mode 100644 ports/linux/guts/is_selinux_mls_enabled.c
 create mode 100644 test/fake-selinux.c
 create mode 100644 test/test-selinux-disabled.c
 create mode 100755 test/test-selinux-disabled.sh