aide_selinux(8)
π« aide_selinux β the SELinux glow-up for your aide processes π«
Okay so bestie, welcome to aide_selinux(8) from the SELinux Policy aide collection. This is literally the manual page that explains how SELinux keeps your aide processes in check, and I'm about to walk you through it like we're texting at 2am. No cap, every single detail is staying. Let's go. π«Ά
πΈ NAME πΈ
aide_selinux β Security Enhanced Linux Policy for the aide processes. It's giving "security guard but make it policy." Periodt.
β¨ DESCRIPTION β¨
Security-Enhanced Linux secures the aide processes via flexible mandatory access control. Like, it's not just vibes β it's actual enforced rules keeping everything safe. π
The aide processes execute with the aide_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. Super easy, barely an inconvenience.
For example:
ps -eZ | grep aide_t
That's it. That's the whole check. You're welcome. π
πͺ ENTRYPOINTS πͺ
The aide_t SELinux type can be entered via the aide_exec_t file type. Think of it as the VIP door into the aide_t domain. πͺβ¨
The default entrypoint paths for the aide_t domain are the following:
/usr/bin/aide
That's the one path. The whole squad. π«‘
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. Every process gets its own little label, and honestly? Iconic.
You can see the context of a process using the -Z option to ps. Peep the labels, bestie.
Policy governs the access confined processes have to files. SELinux aide policy is very flexible allowing users to setup their aide processes in as secure a method as possible. Like, maximum security, but make it user-friendly. π₯
The following process types are defined for aide:
aide_t
Note:semanage permissive -a aide_tcan be used to make the process typeaide_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So like, it's permissive but it's still gossiping about everything you do. π
ποΈ BOOLEANS ποΈ
SELinux policy is customizable based on least access required. aide policy is extremely flexible and has several booleans that allow you to manipulate the policy and run aide with the tightest access possible. It's all about that least-privilege main character energy. π
If you want to dontaudit all daemons scheduling requests (setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. Enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default.
setsebool -P fips_mode 1
Two booleans. Both on by default. Both slaying in their own way. β¨
π MANAGED FILES π
The SELinux process type aide_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 isn't doing everything for you, bestie β you still need regular permissions too. π
cluster_conf_t
/etc/cluster(/.*)?
cluster_var_lib_t
/var/lib/pcsd(/.*)?
/var/lib/cluster(/.*)?
/var/lib/openais(/.*)?
/var/lib/pengine(/.*)?
/var/lib/corosync(/.*)?
/usr/lib/heartbeat(/.*)?
/var/lib/heartbeat(/.*)?
/var/lib/pacemaker(/.*)?
cluster_var_run_t
/run/crm(/.*)?
/run/cman_.*
/run/rsctmp(/.*)?
/run/aisexec.*
/run/heartbeat(/.*)?
/run/pcsd-ruby.socket
/run/corosync-qnetd(/.*)?
/run/corosync-qdevice(/.*)?
/run/pcsd.socket
/run/corosync.pid
/run/cpglockd.pid
/run/rgmanager.pid
/run/cluster/rgmanager.sk
root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp
That's a whole lot of paths, but every single one is here and accounted for. We don't skip. π«Ά
π·οΈ FILE CONTEXTS π·οΈ
SELinux requires files to have an extended attribute to define the file type. Like a little name tag but for files. So cute. π·οΈ
You can see the context of a file using the -Z option to ls. Peep the labels on your files, bestie.
Policy governs the access confined processes have to these files. SELinux aide policy is very flexible allowing users to setup their aide processes in as secure a method as possible.
π EQUIVALENCE DIRECTORIES π
aide policy stores data with multiple different file context types under the /var/log/aide directory. If you would like to store the data in a different directory you can use the semanage command to create an equivalence mapping. If you wanted to store this data under the /srv directory you would execute the following command:
semanage fcontext -a -e /var/log/aide /srv/aide
restorecon -R -v /srv/aide
Literally just two lines and you're done. Slay. π
π STANDARD FILE CONTEXT π
SELinux defines the file context types for the aide, if you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk.
semanage fcontext -a -t aide_exec_t '/srv/aide/content(/.*)?'
restorecon -R -v /srv/myaide_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. So like, the regex is doing the heavy lifting and honestly? We respect her for it. π
The following file types are defined for aide:
aide_db_tβ Set files with theaide_db_ttype, if you want to treat the files as aide database content.aide_exec_tβ Set files with theaide_exec_ttype, if you want to transition an executable to theaide_tdomain.aide_log_tβ Set files with theaide_log_ttype, if you want to treat the data as aide log data, usually stored under the/var/logdirectory.
Paths:
/var/log/aide(/.*)?, /var/log/aide.log.*
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 will modify the SELinux labeling database. You will need to userestoreconto apply the labels. So like,chconis the temporary tattoo andsemanage fcontext+restoreconis the real ink. π
π οΈ COMMANDS π οΈ
Okay so here's your toolkit, bestie. These commands are the ones doing the most. π
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.
And system-config-selinux is a GUI tool available to customize SELinux policy settings. GUI girlies, we see you. π
βοΈ AUTHOR βοΈ
This manual page was auto-generated using sepolicy manpage. Not me, not you β the machine did it. But I'm the one making it cute. π
π SEE ALSO π
selinux(8), aide(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
Read them. Know them. They're part of the squad. π«Ά
And that's the whole page, bestie! We covered every path, every boolean, every file type, and every command. No skips, no cuts, no cap. π
Big shoutout to the source aide version 26-10-06 from 26-10-06 β this page is officially wrapped with love, slay, and fully accurate manpage details. Periodt. π
β¨
π¦ 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