Can't access symlinks when accessing a system via FTP, with vsftpd in use

Solution Verified - Updated -

Issue

Using vsftpd as FTP server, we have SELinux in Enforcing mode. User logs in to ftp server can not see symlink in user's directory. SElinux preventing vsftpd to access the symlink:

type=AVC msg=audit(1688103130.947:286): avc: denied { getattr } for pid=2523 comm="vsftpd" path="/home/test01/testdir-link" dev="dm-0" ino=17978811 scontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=lnk_file permissive=0

Environment

  • Red Hat Enterprise Linux (RHEL), all versions
  • FTP
  • vsftpd
  • selinux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content