| Summary: | SELinux is preventing /usr/sbin/vsftpd from 'getattr' accesses on the file /.vboxclient-display.pid. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | jeff <jcmj> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, jcmj, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:b2a4b30043f03c347ea5645f3725b120d12053308d80baf86749679d1bb06ffc | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-13 09:29:35 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Execute # /sbin/restorecon -v PATHTO/.vboxclient-display.pid should fix the label. |
SELinux is preventing /usr/sbin/vsftpd from 'getattr' accesses on the file /.vboxclient-display.pid. ***** Plugin restorecon (92.2 confidence) suggests ************************* If you want to fix the label. /.vboxclient-display.pid default label should be etc_runtime_t. Then you can run restorecon. Do # /sbin/restorecon -v /.vboxclient-display.pid ***** Plugin catchall_boolean (7.83 confidence) suggests ******************* If you want to allow ftp servers to login to local users and read/write all files on the system, governed by DAC. Then you must tell SELinux about this by enabling the 'allow_ftpd_full_access' boolean. Do setsebool -P allow_ftpd_full_access 1 ***** Plugin catchall (1.41 confidence) suggests *************************** If you believe that vsftpd should be allowed getattr access on the .vboxclient-display.pid file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep vsftpd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:ftpd_t:s0-s0:c0.c1023 Target Context system_u:object_r:user_home_dir_t:s0 Target Objects /.vboxclient-display.pid [ file ] Source vsftpd Source Path /usr/sbin/vsftpd Port <Unknown> Host (removed) Source RPM Packages vsftpd-2.3.4-1.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.16-35.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 2.6.40.3-0.fc15.x86_64 #1 SMP Tue Aug 16 04:10:59 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Tue 23 Aug 2011 07:42:37 AM CDT Last Seen Tue 23 Aug 2011 07:42:37 AM CDT Local ID 64767f9a-628b-445b-ad8f-daa232327999 Raw Audit Messages type=AVC msg=audit(1314103357.300:69302): avc: denied { getattr } for pid=368 comm="vsftpd" path="/.vboxclient-display.pid" dev=dm-0 ino=149718 scontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_dir_t:s0 tclass=file type=SYSCALL msg=audit(1314103357.300:69302): arch=x86_64 syscall=lstat success=yes exit=0 a0=7fadc1678070 a1=7fadc1678360 a2=7fadc1678360 a3=1 items=0 ppid=361 pid=368 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm=vsftpd exe=/usr/sbin/vsftpd subj=system_u:system_r:ftpd_t:s0-s0:c0.c1023 key=(null) Hash: vsftpd,ftpd_t,user_home_dir_t,file,getattr audit2allow #============= ftpd_t ============== #!!!! This avc can be allowed using the boolean 'allow_ftpd_full_access' allow ftpd_t user_home_dir_t:file getattr; audit2allow -R #============= ftpd_t ============== #!!!! This avc can be allowed using the boolean 'allow_ftpd_full_access' allow ftpd_t user_home_dir_t:file getattr;