mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
patch source
prevent privilege escalation
This commit is contained in:
parent
da259b4578
commit
167c2b3927
1 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,15 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# PATCHING SOURCE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Patching source files..." --weight=1
|
||||||
|
|
||||||
|
# Prevent privilege escalation by injecting commands in an email name
|
||||||
|
# This described in more detail on the manpage https://www.postfix.org/sendmail.1.html under security
|
||||||
|
ynh_replace_string --match_string="'/usr/sbin/sendmail -bs'" --replace_string="'/usr/sbin/sendmail -bs -- '" --target_file=$install_dir/config/mail.php
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue