cups_brf_selinux(8)
π SELinux Policy cups_brf β the cups_brf_selinux(8) manual π
β¨ NAME β¨
cups_brf_selinux β Security Enhanced Linux Policy for the cups_brf processes. π«Ά
π¦ DESCRIPTION π¦
Okay so Security-Enhanced Linux secures the cups_brf processes via flexible mandatory access control. No cap.
The cups_brf processes execute with the cups_brf_t SELinux type. Wanna check if youβve got these processes running? Run the ps command with the -Z qualifier, like:
ps -eZ | grep cups_brf_t
Thatβs the vibe check. π
π ENTRYPOINTS π
The cups_brf_t SELinux type can be entered via the cups_brf_exec_t file type. Iconic.
The default entrypoint paths for the cups_brf_t domain are literally:
/usr/lib/cups/backend/cups-brf
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. Periodt.
You can see the context of a process using the -Z option to ps. Easy.
Policy governs the access confined processes have to files. The SELinux cups_brf policy is very flexible, allowing users to set up their cups_brf processes in as secure a method as possible. Slay.
The following process types are defined for cups_brf:
cups_brf_t
Note:semanage permissive -a cups_brf_tcan be used to make the process typecups_brf_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So like, permissive doesnβt mean invisible, bestie. π
π BOOLEANS π
SELinux policy is customizable based on least access required. The cups_brf policy is extremely flexible and has several booleans that allow you to manipulate the policy and run cups_brf with the tightest access possible. Obsessed with least privilege.
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
πΈ MANAGED FILES πΈ
The SELinux process type cups_brf_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. Fr fr, SELinux is not out here doing DACβs job.
admin_home_t/root(/.*)?
print_spool_t/var/spool/lpd(/.*)?/var/spool/cups(/.*)?/var/spool/cups-pdf(/.*)?
user_home_t/home/[^/]+/.+
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. Thatβs just how it is.
You can see the context of a file using the -Z option to ls. Go off.
Policy governs the access confined processes have to these files. The SELinux cups_brf policy is very flexible, allowing users to set up their cups_brf processes in as secure a method as possible. Same energy as above, but for files this time. β¨
π STANDARD FILE CONTEXT π
SELinux defines the file context types for cups_brf. If you want to store files with these types in a different path, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. Like this:
semanage fcontext -a -t cups_brf_exec_t '/srv/cups_brf/content(/.*)?'
restorecon -R -v /srv/mycups_brf_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 cups_brf:
cups_brf_exec_tβ Set files with thecups_brf_exec_ttype if you want to transition an executable to thecups_brf_tdomain.
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 vs permanent is giving main character plot twist. π
π₯ 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. Cute.
β SEE ALSO β
Check out selinux(8), cups_brf(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), and setsebool(8). Iykyk. π
Okay bestie, signing off from source/version cups_brf, dated 26-10-06, living in cups_brf_selinux(8). Stay secure, stay iconic. π«Άβ¨
π¦ 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