User Cron and Cron log support from jailshell on ubuntu
Needs Review
Hello,
I believe that RHEL variants can run cronjobs inside of a jailshell, while on Ubuntu that does not seem to be the case. I'd think it'd be more ideal and safer to run client processes inside of a jailed shell environment rather than outside of it. This should also produce user cron logs inside of the users own /home/$user/logs folder. The jailshell would simply need access to whatever php version the cpanel account is using which i believe is already the case, and the following files from what I see would have to be included inside of the jailshell:
ldd /usr/bin/crontab linux-vdso.so.1 (0x00007ffe8c8fe000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f51c13f3000) /lib64/ld-linux-x86-64.so.2 (0x00007f51c15ff000) ldd /usr/sbin/cron linux-vdso.so.1 (0x00007fff8b3cc000) libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007fe538ee5000) libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007fe538eba000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe538cc8000) libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007fe538c9c000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe538c96000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007fe538c05000) /lib64/ld-linux-x86-64.so.2 (0x00007fe538f14000) libcap-ng.so.0 => /lib/x86_64-linux-gnu/libcap-ng.so.0 (0x00007fe538bfb000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe538bd8000)
Replies have been locked on this page!