nfs_selinux(8)
β¨ nfs_selinux β the NFS SELinux policy page, bestie edition β¨
okay so this is nfs_selinux(8), from the NFS SELinux Policy documentation, and it's literally the glow-up guide for how SELinux keeps your NFS server in line π
π NAME π
nfs_selinux β Security Enhanced Linux Policy for NFS
πΈ DESCRIPTION πΈ
Security Enhanced Linux secures the NFS server via flexible mandatory access control. that's the whole vibe: SELinux doesn't ask nicely, it just enforces, and your NFS server stays cute and contained π
π¦ BOOLEANS π¦
SELinux policy is customizable based on the least level of access required. like, minimum effort, maximum security, we love a boundaries queen π«Ά
SELinux can be configured to not allow NFS to share files. totally valid, sometimes the answer is "no sharing, we're closed" π«
If you want to share NFS partitions, and only allow read-only access to those NFS partitions, turn the nfs_export_all_ro boolean on:
setsebool -P nfs_export_all_ro 1
look at them, only allowed to look, not touch. respectful. πΈ
If you want to share files read/write you must set the nfs_export_all_rw boolean.
setsebool -P nfs_export_all_rw 1
full send, both directions, no cap π₯
These booleans are not required when files to be shared are labeled with thepublic_content_torpublic_content_rw_ttypes. NFS can share files labeled with thepublic_content_torpublic_content_rw_ttypes even if thenfs_export_all_roandnfs_export_all_rwbooleans are off.
so basically if your files already have the right label on them, they're already main character energy and don't need the booleans to vouch for them π
If you want to use a remote NFS server for the home directories on this machine, you must set the use_nfs_home_dirs boolean:
setsebool -P use_nfs_home_dirs 1
home dirs living on a remote NFS server?? iconic, honestly, and yes you need this boolean for that π β¨
system-config-selinux is a GUI tool available to customize SELinux policy settings. for the girlies who prefer clicking over typing, we see you, we support you π±οΈπ
π AUTHOR π
This manual page was written by Dan Walsh <dwalsh@redhat.com>. king behavior, thank you for your service π
π SEE ALSO π
and that's the whole page, bestie!! π this one came from dwalsh@redhat.com, dated 9 Feb 2009, and it's the nfs_selinux(8) page β go forth and share your files responsibly, ily π¦π
π¦ where this page comes from
- debian bookworm: selinux-policy-doc 2:2.20221101-9 Β· GPL-2.0-or-later
- debian trixie: selinux-policy-doc 2:2.20250213-13~deb13u1 Β· GPL-2.0-or-later
- ubuntu jammy: selinux-policy-doc 2:2.20210203-10 Β· GPL-2.0-or-later
- ubuntu noble: selinux-policy-doc 2:2.20240202-1 Β· GPL-2.0-or-later
- ubuntu questing: selinux-policy-doc 2:2.20250213-10
- ubuntu resolute: selinux-policy-doc 2:2.20250213-11 Β· GPL-2.0-or-later
- ubuntu stonking: selinux-policy-doc 2:2.20260929-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms