aide_selinux(8)

πŸ“¦
version 20250627+git412.dbf877ab7 Β· 7 versions
, in opensuse-leap 16.0

πŸ’« 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_t can be used to make the process type aide_t permissive. 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 the aide_db_t type, if you want to treat the files as aide database content.
  • aide_exec_t β€” Set files with the aide_exec_t type, if you want to transition an executable to the aide_t domain.
  • aide_log_t β€” Set files with the aide_log_t type, if you want to treat the data as aide log data, usually stored under the /var/log directory.

Paths:

/var/log/aide(/.*)?, /var/log/aide.log.*
Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. So like, chcon is the temporary tattoo and semanage fcontext + restorecon is the real ink. πŸ’€

πŸ› οΈ COMMANDS πŸ› οΈ

Okay so here's your toolkit, bestie. These commands are the ones doing the most. πŸ‘‘

  • semanage fcontext can also be used to manipulate default file context mappings.
  • semanage permissive can also be used to manipulate whether or not a process type is permissive.
  • semanage module can also be used to enable/disable/install/remove policy modules.
  • semanage boolean can 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