vpnc_selinux(8)
π» vpnc_selinux β the SELinux glow-up for vpnc processes π
Okay bestie, so this is the manual page for vpnc_selinux, the SELinux policy that keeps your vpnc processes safe and sound. Think of it as the security detail for your VPN client, and honestly? It's giving main character energy. β¨
π NAME
vpnc_selinux β Security Enhanced Linux Policy for the vpnc processes
π SYNOPSIS
Security-Enhanced Linux secures the vpnc processes via flexible mandatory access control. No cap, it's literally that simple.
πΈ DESCRIPTION
Security-Enhanced Linux secures the vpnc processes via flexible mandatory access control. (Yes, we said it twice, because it's important, okay? π)
The vpnc processes execute with the vpnc_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. It's giving detective energy, and we love that for us. π
For example:
ps -eZ | grep vpnc_t
πͺ ENTRYPOINTS
The vpnc_t SELinux type can be entered via the vpnc_exec_t file type. So like, that's the doorway, bestie. πͺβ¨
The default entrypoint paths for the vpnc_t domain are the following:
/usr/bin/vpnc/usr/bin/openconnect
π PROCESS TYPES
SELinux defines process types (domains) for each process running on the system. It's a whole thing, but lowkey iconic. π
You can see the context of a process using the -Z option to ps. Go off, ps. π
Policy governs the access confined processes have to files. SELinux vpnc policy is very flexible allowing users to setup their vpnc processes in as secure a method as possible. Highkey obsessed with how customizable this is. π¦
The following process types are defined for vpnc:
vpnc_t
Note:semanage permissive -a vpnc_tcan be used to make the process typevpnc_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So like, it's not a free pass, bestieβyou still get receipts. π§Ύπ
ποΈ BOOLEANS
SELinux policy is customizable based on least access required. vpnc policy is extremely flexible and has several booleans that allow you to manipulate the policy and run vpnc with the tightest access possible. It's giving "customize your security like your Spotify playlist" energy. πΆ
If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. Periodt.
setsebool -P fips_mode 1
If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default. Just FYI, bestie.
setsebool -P nis_enabled 1
If you want to support ecryptfs home directories, you must turn on the use_ecryptfs_home_dirs boolean. Disabled by default. Secure vibes only. π
setsebool -P use_ecryptfs_home_dirs 1
π MANAGED FILES
The SELinux process type vpnc_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. It's giving layered security, and honestly? We stan. π
NetworkManager_var_run_t
/run/teamd(/.*)?/run/nm-xl2tpd.conf.*/run/nm-dhclient.*/run/NetworkManager(/.*)?/run/wpa_supplicant(/.*)?/run/wicd.pid/run/NetworkManager.pid/run/nm-dns-dnsmasq.conf/run/wpa_supplicant-global
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
vpnc_tmp_t
(No default paths listed, but like, it's for temp files. You know the vibe. ποΈ)
vpnc_var_run_t
/run/vpnc(/.*)?
π·οΈ FILE CONTEXTS
SELinux requires files to have an extended attribute to define the file type. It's the metadata moment. β¨
You can see the context of a file using the -Z option to ls. Slay, ls. π
Policy governs the access confined processes have to these files. SELinux vpnc policy is very flexible allowing users to setup their vpnc processes in as secure a method as possible. (Yes, we're repeating ourselves, but repetition is a valid communication strategy, okay? π)
π STANDARD FILE CONTEXT
SELinux defines the file context types for the vpnc, 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. It's a whole two-step, but it's worth it. π
semanage fcontext -a -t vpnc_exec_t '/srv/vpnc/content(/.*)?'
restorecon -R -v /srv/myvpnc_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex said "I'm the main character." π€
The following file types are defined for vpnc:
vpnc_exec_t
- Set files with the
vpnc_exec_ttype, if you want to transition an executable to thevpnc_tdomain.
Paths:
/usr/bin/vpnc/usr/bin/openconnect
vpnc_tmp_t
- Set files with the
vpnc_tmp_ttype, if you want to storevpnctemporary files in the/tmpdirectories. It's giving "designated temp folder" energy. ποΈ
vpnc_var_run_t
- Set files with the
vpnc_var_run_ttype, if you want to store thevpncfiles under the/runor/var/rundirectory. Run directory, but make it organized. πββοΈπ¨
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. So like,chconis a quick fix,semanage+restoreconis the permanent glow-up. Big difference. π
π οΈ COMMANDS
semanage fcontext can also be used to manipulate default file context mappings. It's the puppet master of file contexts. π
semanage permissive can also be used to manipulate whether or not a process type is permissive. Permission slip, but make it SELinux. π
semanage module can also be used to enable/disable/install/remove policy modules. Modular realness. π§©
semanage boolean can also be used to manipulate the booleans. Boolean slay. ποΈ
system-config-selinux is a GUI tool available to customize SELinux policy settings. For the visual learners and the "I need to see it" girlies. π₯οΈβ¨
π AUTHOR
This manual page was auto-generated using sepolicy manpage. Robots wrote this, and honestly? They ate. π€π
π SEE ALSO
selinux(8), vpnc(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
π Okay bestie, that's the whole manual! Now go forth and manage your vpnc SELinux policy with confidence. You got this. Periodt. β¨
vpnc β 24-10-06 β vpnc_selinux(8) π π«Ά
π¦ 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