vlock_selinux(8)
β¨ vlock_selinux β the SELinux glow-up for your vlock processes β¨
okay bestie, so this is the vlock_selinux manual page (like, the (8) one, very systems-administrator of it) β and it's literally all about the Security Enhanced Linux Policy for the vlock processes. no cap. π
π NAME π
vlock_selinux β the Security Enhanced Linux Policy for the vlock processes. that's the whole vibe. periodt.
πΈ DESCRIPTION πΈ
so Security-Enhanced Linux secures the vlock processes via flexible mandatory access control. yes, flexible, yes, mandatory β it's giving strict-but-fair main character energy. π
the vlock processes execute with the vlock_t SELinux type. and you can totally check if you have these processes running by executing the ps command with the -Z qualifier.
for example:
ps -eZ | grep vlock_t
go on, run it, i'll wait. π«Ά
π¦ ENTRYPOINTS π¦
the vlock_t SELinux type can be entered via the vlock_exec_t file type. that's the doorway, iykyk.
the default entrypoint paths for the vlock_t domain are, literally:
/usr/bin/vlock, /usr/bin/vlock-main
two paths. iconic. π
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. yes, each one. it's a lot, but she handles it.
you can see the context of a process using the -Z option to ps. just saying.
policy governs the access confined processes have to files. the SELinux vlock policy is very flexible, allowing users to setup their vlock processes in as secure a method as possible. as secure as possible, bestie. π₯
the following process types are defined for vlock:
vlock_t
Note:semanage permissive -a vlock_tcan be used to make the process typevlock_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so likeβ¦ she's not blocking you, but she's still writing it down in the group chat. π
β¨ BOOLEANS β¨
SELinux policy is customizable based on least access required. vlock policy is extremely flexible and has several booleans that allow you to manipulate the policy and run vlock with the tightest access possible. tightest. access. possible. we love a boundaries queen. π
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
if you want to allow confined applications to run with kerberos, you must turn on the kerberos_enabled boolean. enabled by default.
setsebool -P kerberos_enabled 1
if you want to allow system to run with NIS, you must turn on the nis_enabled boolean. disabled by default.
setsebool -P nis_enabled 1
three booleans, three little setsebool -P baddies. slay. β
π MANAGED FILES π
the SELinux process type vlock_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and remember β the processes UID still need to have DAC permissions. SELinux can't do everything for you, bestie. π
π faillog_t
/var/log/btmp.*
/run/faillock(/.*)?
/var/log/faillog.*
/var/log/tallylog.*
π krb5_host_rcache_t
/var/tmp/krb5_0.rcache2
/var/cache/krb5rcache(/.*)?
/var/tmp/nfs_0
/var/tmp/DNS_25
/var/tmp/host_0
/var/tmp/imap_0
/var/tmp/HTTP_23
/var/tmp/HTTP_48
/var/tmp/ldap_55
/var/tmp/ldap_487
/var/tmp/ldapmap1_0
π lastlog_t
/var/log/lastlog.*
/var/lib/lastlog(/.*)?
π security_t
/selinux
π wtmpdb_journal_t
/var/lib/wtmpdb/wtmp.db-journal
five file types, every single path accounted for. we do not skip entries in this house. π
π§ FILE CONTEXTS π§
SELinux requires files to have an extended attribute to define the file type. yes, an actual extended attribute. it's giving commitment. π¦
you can see the context of a file using the -Z option to ls. same energy as the ps -Z thing, if you were wondering.
policy governs the access confined processes have to these files. SELinux vlock policy is very flexible, allowing users to setup their vlock processes in as secure a method as possible. (she says it twice because she means it.)
π« STANDARD FILE CONTEXT π«
SELinux defines the file context types for the vlock, and 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 vlock_exec_t '/srv/vlock/content(/.*)?'
restorecon -R -v /srv/myvlock_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise. π
the following file types are defined for vlock:
π vlock_exec_t
- Set files with the
vlock_exec_ttype, if you want to transition an executable to thevlock_tdomain.
paths:
/usr/bin/vlock, /usr/bin/vlock-main
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 β choose wisely, bestie. π
π 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. a whole GUI, for when the terminal is doing too much. π«Ά
π€ AUTHOR π€
this manual page was auto-generated using sepolicy manpage. not me being a bot-written icon. π
β SEE ALSO β
selinux(8), vlock(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
the whole friend group, honestly. go read them too. π
and that's the page, bestie β source/version vlock, dated 26-10-06, living its best life under the name vlock_selinux(8). mwah, study up, and may your contexts always be labeled correctly. πβ¨
π¦ 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