https://github.com/mnalis/libfakeaccess
fake access(2) syscall, for allowing vsftpd writeable chroot when root is public_html
https://github.com/mnalis/libfakeaccess
library linux
Last synced: 3 months ago
JSON representation
fake access(2) syscall, for allowing vsftpd writeable chroot when root is public_html
- Host: GitHub
- URL: https://github.com/mnalis/libfakeaccess
- Owner: mnalis
- License: lgpl-3.0
- Created: 2021-02-13T15:25:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-13T15:27:11.000Z (over 5 years ago)
- Last Synced: 2025-01-20T17:51:05.208Z (over 1 year ago)
- Topics: library, linux
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
This LD_PRELOAD shared library is used to override vsftpd requiring chroot
to be non-writeable, and Debian wheezy missing option
allow_writable_root=YES
So, we fake access(2) check for "/", W_OK to return "false" always.
For example, on Debian system you can edit /etc/init.d/vsftpd and before
starting daemon put
LD_PRELOAD="/usr/local/lib/libfakeaccess.so"
export LD_PRELOAD