On 2022-01-03, [email protected] <[email protected]> wrote:
>
> After several tries, i think the problem is the interpretation, in
> Universal Language; usually used in OBSD, it could be:
>
> Write this ....
> Do this ....
>
>  But, in this case; there are not commands!
>
> Please, let me ask you, How to add /bin/sh to the chroot?
> How to add host? resolv.conf? and femail.conf?
> How to create /var/www/etc/other files?
> From where do i have to create every thing?

cp(1), and there needs to be a mechanism to update the files (e.g. from
/etc/rc.local). Alternatively, disable the chroot for the PHP instance
hosting that software.

If I include example commands in the pkg-readme file for PHP, I think
there's a high risk that people will use them when not required.
Most PHP software that sends mail does not use the mail() function (it
is not available on quite a wide range of systems/hosting providers
anyway) rather it uses a PHP library which talks SMTP directly, so in
many cases copying /bin/sh is not needed.

-- 
Please keep replies on the mailing list.

Reply via email to