deviceki...r_selinux(8)
π devicekit_power_selinux β the manual, but make it cute π
okay bestie, so this is the devicekit_power_selinux(8) page, living under the SELinux Policy devicekit_power umbrella. yes, the header looks like deviceki...r_selinux(8) because someone let the truncation goblins loose β it's the same page, i promise π«Ά
β¨ NAME β¨
devicekit_power_selinux β the whole Security Enhanced Linux policy sitch for the devicekit_power processes πΈ
π¦ DESCRIPTION π¦
Security-Enhanced Linux keeps the devicekit_power processes safe via flexible mandatory access control. that's the whole vibe, no cap.
The devicekit_power processes run with the devicekit_power_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier π
example, go:
ps -eZ | grep devicekit_power_t
π ENTRYPOINTS π
You can enter the devicekit_power_t SELinux type through the devicekit_power_exec_t file type. that's the door. the only door. πͺβ¨
The default entrypoint paths for the devicekit_power_t domain are literally these:
/usr/libexec/upowerd, /usr/lib/upower/upowerd, /usr/libexec/devkit-power-daemon
π PROCESS TYPES π
SELinux defines process types (aka domains) for every single process running on the system, no exceptions π
you can see the context of a process with the -Z option to ps.
Policy governs the access confined processes have to files. the SELinux devicekit_power policy is very flexible, letting users set up their devicekit_power processes in the most secure way possible π‘οΈ
The following process type is defined for devicekit_power:
devicekit_power_t
Note:semanage permissive -a devicekit_power_tmakes the process typedevicekit_power_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's not a free pass, it's just a loud pass π
π BOOLEANS π
SELinux policy is customizable based on least access required. the devicekit_power policy is extremely flexible and has several booleans that let you manipulate the policy and run devicekit_power with the tightest access possible π
- if you want to dontaudit all daemons scheduling requests (
setsched,sys_nice), you must turn on thedaemons_dontaudit_schedulingboolean. Enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
- if you want to deny user domains applications from mapping a memory region as both executable and writable β heads up, 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 the 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 β and bestie, doing this is a really bad idea, probably means a badly coded executable but could mean an attack, and that 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 means a badly coded executable but could mean an attack, and that 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 devicekit_power_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. > note: the process's UID still needs to have DAC permissions π
file_type
- all files on the system
like. all of them. iconic, honestly π
π§ FILE CONTEXTS π§
SELinux requires files to have an extended attribute to define the file type.
you can see the context of a file with the -Z option to ls π
Policy governs the access confined processes have to these files. the SELinux devicekit_power policy is very flexible, letting users set up their devicekit_power processes in the most secure way possible π‘οΈ
π STANDARD FILE CONTEXT π
SELinux defines the file context types for devicekit_power. if you wanted to store files with these types in different paths, you need to run the semanage command to specify alternate labeling, and then use restorecon to actually put the labels on disk π·οΈ
semanage fcontext -a -t devicekit_power_exec_t '/srv/devicekit_power/content(/.*)?'
restorecon -R -v /srv/mydevicekit_power_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies stay winning π
The following file type is defined for devicekit_power:
devicekit_power_exec_t
- Set files with the
devicekit_power_exec_ttype if you want to transition an executable to thedevicekit_power_tdomain.
Paths:
/usr/libexec/upowerd, /usr/lib/upower/upowerd, /usr/libexec/devkit-power-daemon
Note: file context can be temporarily modified with thechconcommand. if you want to permanently change the file context you need to use thesemanage fcontextcommand β this modifies the SELinux labeling database. and then you'll need to userestoreconto apply the labels. temporary vs permanent, know the difference bestie π€
β 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. (a bot wrote this, but a bot with taste π
)
π₯ SEE ALSO π₯
selinux(8), devicekit_power(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
and that's the whole page, bestie!! π«Ά brought to you by the SELinux Policy devicekit_power girlies, dated 26-10-06, filed under deviceki...r_selinux(8) because truncation is our aesthetic apparently ππ
π¦ 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