rpmdb_selinux(8)
β¨ rpmdb_selinux(8) β the SELinux tea for rpmdb β¨
okay so this is the rpmdb_selinux page from the SELinux Policy rpmdb collection, and it's basically the whole vibe check for how SELinux treats your rpmdb processes. grab a snack, bestie π
π NAME
rpmdb_selinux β Security Enhanced Linux Policy for the rpmdb processes. that's it, that's the name, and it ate. π
πΈ DESCRIPTION
Security-Enhanced Linux secures the rpmdb processes via flexible mandatory access control. yes ma'am, mandatory β not the "haha maybe" kind of access control, the mandatory kind. π₯
The rpmdb processes execute with the rpmdb_t SELinux type. wanna check if you've got these processes running? literally just execute the ps command with the -Z qualifier. easy.
For example:
ps -eZ | grep rpmdb_t
ngl this one-liner is iconic and you will use it constantly. iykyk π«Ά
π¦ ENTRYPOINTS
The rpmdb_t SELinux type can be entered via the rpmdb_exec_t file type. that's the door, that's the key, that's the entrypoint. β¨
The default entrypoint paths for the rpmdb_t domain are the following:
/usr/bin/rpmdb/usr/lib/rpm/rpmdb_migrate
π PROCESS TYPES
SELinux defines process types (domains) for each process running on the system. very main character energy of it, honestly.
You can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux rpmdb policy is very flexible, allowing users to setup their rpmdb processes in as secure a method as possible. flexible and secure? we love a multihyphenate. π
The following process types are defined for rpmdb:
rpmdb_t
Note:semanage permissive -a rpmdb_tcan be used to make the process typerpmdb_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it stops blocking but it 100% keeps receipts. π
π BOOLEANS
SELinux policy is customizable based on least access required. rpmdb policy is extremely flexible and has several booleans that allow you to manipulate the policy and run rpmdb with the tightest access possible. tightest access possible is the goal, bestie. π―
If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. (yes, it's already on, don't panic πΈ)
setsebool -P fips_mode 1
π§ FILE CONTEXTS
SELinux requires files to have an extended attribute to define the file type. it's giving "files with paperwork" and honestly, valid. π
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 rpmdb policy is very flexible, allowing users to setup their rpmdb processes in as secure a method as possible. (yes, same line as before β the manpage said it twice and so did i, keeping the lore intact π«Ά)
β STANDARD FILE CONTEXT
SELinux defines the file context types for the rpmdb. 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. two-step process, no skipping steps. π
semanage fcontext -a -t rpmdb_exec_t '/srv/rpmdb/content(/.*)?'
restorecon -R -v /srv/myrpmdb_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 rpmdb:
π₯ rpmdb_exec_t
- Set files with the
rpmdb_exec_ttype if you want to transition an executable to therpmdb_tdomain.
Paths:
/usr/bin/rpmdb/usr/lib/rpm/rpmdb_migrate
π rpmdb_tmp_t
- Set files with the
rpmdb_tmp_ttype if you want to store rpmdb temporary files in the/tmpdirectories.
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. sochconis the "just for tonight" of file labeling andsemanage fcontext+restoreconis the whole committed relationship. π don't mix them up!!
π 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. (the booleans!! our faves!!)
system-config-selinux is a GUI tool available to customize SELinux policy settings. a GUI!! for the besties who like buttons instead of typing π±οΈβ¨
π AUTHOR
This manual page was auto-generated using sepolicy manpage. a robot wrote it and i simply gave it a glow-up. π
π SEE ALSO
selinux(8), rpmdb(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
and that's the page, bestie π«Ά this was rpmdb version 26-10-06 (dated 26-10-06), brought to you straight from the rpmdb manual β go forth and label responsibly. ππ
π¦ 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