kernel_selinux(8)
π kernel_selinux(8) β the SELinux vibe check for kernel processes
okay so bestie, this is the kernel_selinux page from the SELinux Policy kernel manual, and it's literally all about how SELinux keeps an eye on your kernel processes. grab a snack, we're doing this π
β¨ NAME β¨
kernel_selinux β Security Enhanced Linux Policy for the kernel processes</p>
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the kernel processes via flexible mandatory access control. that's the whole assignment, no cap.
The kernel processes execute with the kernel_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier, easy.
For example:
ps -eZ | grep kernel_t
π¦ PROCESS TYPES π¦
SELinux defines process types (domains) for each process running on the system. yes, each one, she's thorough.
You can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux kernel policy is very flexible, allowing users to set up their kernel processes in as secure a method as possible. iconic behaviour honestly.
The following process types are defined for kernel:
kernel_generic_helper_t, kernel_t, kernel_systemctl_t
Note:semanage permissive -a kernel_tcan be used to make the process typekernel_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, she stops blocking but she's still taking notes π
π BOOLEANS π
SELinux policy is customizable based on least access required. kernel policy is extremely flexible and has several booleans that allow you to manipulate the policy and run kernel with the tightest access possible. main character energy fr fr.
- If you want to deny user domains applications to map a memory region as both executable and writable, this is dangerous and the executable should be reported in bugzilla, you must turn on the
deny_execmemboolean. Disabled by default.
setsebool -P deny_execmem 1
- If you want to control the ability to mmap a low area of the address space, as configured by
/proc/sys/vm/mmap_min_addr, you must turn on themmap_low_allowedboolean. Disabled by default.
setsebool -P mmap_low_allowed 1
- If you want to allow system to run with NIS, you must turn on the
nis_enabledboolean. Disabled by default.
setsebool -P nis_enabled 1
- If you want to disable kernel module loading, you must turn on the
secure_mode_insmodboolean. Disabled by default.
setsebool -P secure_mode_insmod 1
- If you want to allow unconfined executables to make their heap memory executable β doing this is a really bad idea π probably indicates a badly coded executable, but could indicate an attack, this executable should be reported in bugzilla β you must turn on the
selinuxuser_execheapboolean. Disabled by default.
setsebool -P selinuxuser_execheap 1
- If you want to allow unconfined executables to make their stack executable β this should never, ever be necessary π probably indicates a badly coded executable, but could indicate an attack, this executable should be reported in bugzilla β you must turn on the
selinuxuser_execstackboolean. Disabled by default.
setsebool -P selinuxuser_execstack 1
π MANAGED FILES π
The SELinux process type kernel_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note: the processes UID still need to have DAC permissions. like, SELinux said yes but DAC can still say no π«Ά
file_type
- all files on the system
yes. all of them. she contains multitudes π
β COMMANDS β
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis a GUI tool available to customize SELinux policy settings.
π§ AUTHOR π§
This manual page was auto-generated using sepolicy manpage. (the machines wrote this one bestie, we just gave it β¨flavourβ¨)
π SEE ALSO π
selinux(8), kernel(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), kernel_generic_helper_selinux(8), kernel_generic_helper_selinux(8), kernel_systemctl_selinux(8), kernel_systemctl_selinux(8)
(yes, a couple of those are listed twice in the original β I'm not gonna gaslight you about it π)
that's the whole page babes, love that for us π
kernel β 26-10-06 β kernel_selinux(8) π
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms