Skip to content
Snippets Groups Projects
Commit 03bff7c1 authored by tbrehm's avatar tbrehm
Browse files

- Added a fix for opensuse regarding issue: FS#1250 - smtp file in pam.d...

- Added a fix for opensuse regarding issue: FS#1250 - smtp file in pam.d directory on some distributions is world readable.
parent 92870655
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,8 @@ class installer_dist extends installer_base {
$content = str_replace('{mysql_server_database}', $conf['mysql']['database'], $content);
$content = str_replace('{mysql_server_ip}', $conf['mysql']['ip'], $content);
wf("$pam/smtp", $content);
// On some OSes smtp is world readable which allows for reading database information. Removing world readable rights should have no effect.
if(is_file("$pam/smtp")) exec("chmod o= $pam/smtp");
//exec("chmod 660 $pam/smtp");
//exec("chown root:root $pam/smtp");
......
......@@ -271,6 +271,8 @@ class installer_dist extends installer_base {
$content = str_replace('{mysql_server_database}', $conf['mysql']['database'], $content);
$content = str_replace('{mysql_server_ip}', $conf['mysql']['ip'], $content);
wf("$pam/smtp", $content);
// On some OSes smtp is world readable which allows for reading database information. Removing world readable rights should have no effect.
if(is_file("$pam/smtp")) exec("chmod o= $pam/smtp");
//exec("chmod 660 $pam/smtp");
//exec("chown root:root $pam/smtp");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment