insights_core_selinux(8)
π insights_core_selinux(8) β the glow-up
okay so this is the manual page for insights_core_selinux, straight out of the SELinux Policy insights_core collection (that's the manual name bestie, iykyk). It's giving "policy docs but make it make sense" β¨
πΈ NAME
insights_core_selinux β the Security Enhanced Linux Policy for the insights_core processes π
β¨ DESCRIPTION
Security-Enhanced Linux secures the insights_core processes via flexible mandatory access control. Like, it's literally in the name, the vibes are mandatory π
The insights_core processes execute with the insights_core_t SELinux type. Wanna check if you've got these processes running? Just run the ps command with the -Z qualifier π«Ά
For example:
ps -eZ | grep insights_core_t
πͺ ENTRYPOINTS
The insights_core_t SELinux type can be entered via the usr_t, bin_t, gpg_exec_t file types. Periodt π«
The default entrypoint paths for the insights_core_t domain are the following:
All executables with the default executable label, usually stored in /usr/bin and /usr/sbin. /opt/.*, /usr/.*, /hana(/.*)?, /emul/.*, /export(/.*)?, /ostree(/.*)?, /usr/doc(/.*)?/lib(/.*)?, /usr/inclu.e(/.*)?, /usr/share/rpm(/.*)?, /usr/share/doc(/.*)?/README.*, /usr/lib/modules(/.*)/vmlinuz, /usr/lib/modules(/.*)/sysctl.conf, /usr/lib/modules(/.*)/initramfs.img, /usr/lib/sysimage(/.*)?, /usr/lib/ostree-boot(/.*)?, /opt, /usr, /emul, /usr/bin/gpg(2)?, /usr/lib/gnupg/.*, /usr/bin/gpgsm
ngl that path list ate, it's long but it's all of them, no skips π
π PROCESS TYPES
SELinux defines process types (domains) for each process running on the system π
You can see the context of a process using the -Z option to ps π
Policy governs the access confined processes have to files. SELinux insights_core policy is very flexible, allowing users to setup their insights_core processes in as secure a method as possible. Iconic behaviour honestly.
The following process types are defined for insights_core:
insights_core_t
Note:semanage permissive -a insights_core_tcan be used to make the process typeinsights_core_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So like, it's chill but it's still watching you π
π BOOLEANS
SELinux policy is customizable based on least access required. insights_core policy is extremely flexible and has several booleans that allow you to manipulate the policy and run insights_core with the tightest access possible π₯
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
π¦ FILE CONTEXTS
SELinux requires files to have an extended attribute to define the file type π§
You can see the context of a file using the -Z option to ls β¨
Policy governs the access confined processes have to these files. SELinux insights_core policy is very flexible, allowing users to setup their insights_core processes in as secure a method as possible π
π EQUIVALENCE DIRECTORIES
insights_core policy stores data with multiple different file context types under the /var/cache/insights 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/cache/insights /srv/insights
restorecon -R -v /srv/insights
insights_core policy stores data with multiple different file context types under the /var/tmp/insights-client 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/tmp/insights-client /srv/insights-client
restorecon -R -v /srv/insights-client
π STANDARD FILE CONTEXT
SELinux defines the file context types for the insights_core. 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 insights_core_var_log_t '/srv/insights_core/content(/.*)?'
restorecon -R -v /srv/myinsights_core_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex girlies stay winning π
The following file types are defined for insights_core:
πΎ insights_core_cache_t
- Set files with the
insights_core_cache_ttype, if you want to store the files under the/var/cachedirectory.
Paths:
/var/cache/insights(/.*)?, /var/cache/insights-client(/.*)?
πͺοΈ insights_core_tmp_t
- Set files with the
insights_core_tmp_ttype, if you want to store insights core temporary files in the/tmpdirectories.
Paths:
/var/tmp/insights-client(/.*)?, /tmp/insights-client.ppid, /var/tmp/insights-client.ppid
π insights_core_var_log_t
- Set files with the
insights_core_var_log_ttype, if you want to treat the data as insights core var log data, usually stored under the/var/logdirectory.
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. Temporary is giving "we'll see", permanent is giving "locked in" π
π οΈ COMMANDS
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.
system-config-selinux is a GUI tool available to customize SELinux policy settings π±οΈβ¨
βοΈ AUTHOR
This manual page was auto-generated using sepolicy manpage. Not me writing it by hand, the robot did it and honestly? Slay π€π
π SEE ALSO
selinux(8), insights_core(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
that's the whole page bestie, every flag and path accounted for, no cap π«Ά
kisses from the insights_core page itself β dated 26-10-06 (that's the date, the version tag is insights_core, and yeah it's still insights_core_selinux(8) at heart) π
π¦ 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