| 1 | # ------------------------------------------------------------------ |
| 2 | # |
| 3 | # Copyright (C) 2002-2005 Novell/SUSE |
| 4 | # |
| 5 | # This program is free software; you can redistribute it and/or |
| 6 | # modify it under the terms of version 2 of the GNU General Public |
| 7 | # License published by the Free Software Foundation. |
| 8 | # |
| 9 | # ------------------------------------------------------------------ |
| 10 | |
| 11 | #include <tunables/global> |
| 12 | |
| 13 | /usr/sbin/vsftpd { |
| 14 | #include <abstractions/base> |
| 15 | #include <abstractions/nameservice> |
| 16 | #include <abstractions/authentication> |
| 17 | |
| 18 | /dev/urandom r, |
| 19 | /etc/fstab r, |
| 20 | /etc/hosts.allow r, |
| 21 | /etc/hosts.deny r, |
| 22 | /etc/mtab r, |
| 23 | /etc/shells r, |
| 24 | /etc/vsftpd.* r, |
| 25 | /etc/vsftpd/* r, |
| 26 | /usr/sbin/vsftpd rmix, |
| 27 | /var/log/vsftpd.log w, |
| 28 | /var/log/xferlog w, |
| 29 | # anon chroots |
| 30 | / r, |
| 31 | /pub r, |
| 32 | /pub/** r, |
| 33 | @{HOMEDIRS} r, |
| 34 | @{HOME}/** rwl, |
| 35 | } |