vpnc_selinux(8)

πŸ“¦
version 20250627+git412.dbf877ab7 Β· 7 versions
, in opensuse-leap 16.0

πŸ’» 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_t can be used to make the process type vpnc_t permissive. 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_t type, if you want to transition an executable to the vpnc_t domain.

Paths:

  • /usr/bin/vpnc
  • /usr/bin/openconnect

vpnc_tmp_t

  • Set files with the vpnc_tmp_t type, if you want to store vpnc temporary files in the /tmp directories. It's giving "designated temp folder" energy. πŸ—ƒοΈ

vpnc_var_run_t

  • Set files with the vpnc_var_run_t type, if you want to store the vpnc files under the /run or /var/run directory. Run directory, but make it organized. πŸƒβ€β™€οΈπŸ’¨
Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. So like, chcon is a quick fix, semanage + restorecon is 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