anon_sftpd_selinux(8)
π anon_sftpd_selinux(8) β the whole β¨anon_sftpdβ¨ SELinux situation, explained
okay so bestie, you're looking at the manual page for anon_sftpd_selinux β that's section 8 of the manual, mwah π. Grab a drink, this is gonna be cute and also extremely useful, no cap.
π NAME π
anon_sftpd_selinux β the Security Enhanced Linux Policy for the anon_sftpd processes. that's it, that's the whole name, and honestly? iconic.
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the anon_sftpd processes via flexible mandatory access control. like, MAC but not the makeup kind π β it's literally mandatory access control, and it's out here keeping your anon_sftpd stuff safe.
The anon_sftpd processes execute with the anon_sftpd_t SELinux type. you can check if you have these processes running by executing the ps command with the -Z qualifier. vibe check for your process types basically π
For example:
ps -eZ | grep anon_sftpd_t
π¦ PROCESS TYPES π¦
SELinux defines process types (domains) for each process running on the system. yes, every single one gets its own little domain, main character energy fr fr.
You can see the context of a process using the -Z option to ps. it's giving "show me the lore" π
Policy governs the access confined processes have to files. the SELinux anon_sftpd policy is very flexible, allowing users to setup their anon_sftpd processes in as secure a method as possible. lowkey obsessed with how customizable this is π
The following process types are defined for anon_sftpd:
anon_sftpd_t
Note:semanage permissive -a anon_sftpd_tcan be used to make the process typeanon_sftpd_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so it's chill about denying you, but it's absolutely still gonna write it in its diary πβ¨
β¨ BOOLEANS β¨
SELinux policy is customizable based on least access required. the anon_sftpd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run anon_sftpd with the tightest access possible. tightest access = tightest little outfit, we love to see it π
If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default, before you even ask π
setsebool -P fips_mode 1
π COMMANDS π
anon_sftpd β okay so these are your little tools for wrangling the policy:
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. enable, disable, install, remove β she does it all π«Άsemanage booleanβ can also be used to manipulate the booleans.system-config-selinuxβ a GUI tool available to customize SELinux policy settings. yes bestie, a whole GUI, for when the terminal is doing too much π
π AUTHOR π
This manual page was auto-generated using sepolicy manpage. a bot wrote it, and honestly? she ate. π₯
π SEE ALSO π
selinux(8)anon_sftpd(8)semanage(8)restorecon(8)chcon(1)sepolicy(8)setsebool(8)
go read those too, iykyk π
and that's the whole page, bestie π«Ά this was anon_sftpd (the manual page, dated 26-10-06), part of anon_sftpd_selinux(8) β literally the cutest little policy doc in section 8. periodt. πβ¨
π¦ 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