mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Misc fixes attempt
This commit is contained in:
parent
e98e9d1809
commit
d885ce2308
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ LXC_EXEC () {
|
||||||
# Store the return code of the command
|
# Store the return code of the command
|
||||||
local returncode=${PIPESTATUS[0]}
|
local returncode=${PIPESTATUS[0]}
|
||||||
|
|
||||||
log_debug "Return code: $return_code"
|
log_debug "Return code: $returncode"
|
||||||
|
|
||||||
stop_timer 1
|
stop_timer 1
|
||||||
# Return the exit code of the ssh command
|
# Return the exit code of the ssh command
|
||||||
|
|
|
@ -86,7 +86,7 @@ _INSTALL_APP () {
|
||||||
local ret=$?
|
local ret=$?
|
||||||
[ $ret -eq 0 ] && log_debug "Installation successful." || log_error "Installation failed."
|
[ $ret -eq 0 ] && log_debug "Installation successful." || log_error "Installation failed."
|
||||||
|
|
||||||
if LXC_EXEC "su nobody -s /bin/bash -c 'test -r /var/www/$app_id || test -w /var/www/$app_id || test -x /var/www/$app_id'"
|
if LXC_EXEC "su nobody -s /bin/bash -c \"test -r /var/www/$app_id || test -w /var/www/$app_id || test -x /var/www/$app_id\""
|
||||||
then
|
then
|
||||||
log_error "It looks like anybody can read/enter /var/www/$app_id, which ain't super great from a security point of view ... Config files or other files may contain secrets or information that should in most case not be world-readable. You should remove all 'others' permissions with 'chmod o-rwx', and setup appropriate, exclusive permissions to the appropriate owner/group with chmod/chown."
|
log_error "It looks like anybody can read/enter /var/www/$app_id, which ain't super great from a security point of view ... Config files or other files may contain secrets or information that should in most case not be world-readable. You should remove all 'others' permissions with 'chmod o-rwx', and setup appropriate, exclusive permissions to the appropriate owner/group with chmod/chown."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue