Attempt to prevent selinux related failures
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ports/linux: Report SELinux as disabled under pseudo.gitignore Makefile.in ports/ +6 more | +159 | 0 replies | |
| 2/2 | pseudo_server: Log when running in a confined SELinux domainREADME.security pseudo_server.c | +80 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [pseudo][PATCH 0/2] Attempt to prevent selinux related failures
[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
Signature · 1 line
2.34.1