Commit c6cd35cb authored by Franco Fichtner's avatar Franco Fichtner

system: correctly apply /dev/pf flags if loader.conf was missing

(cherry picked from commit bd188bd8)
parent 77003789
...@@ -1476,10 +1476,6 @@ function system_kernel_configure($verbose = false) ...@@ -1476,10 +1476,6 @@ function system_kernel_configure($verbose = false)
'pfsync', 'pfsync',
); );
/* we now have /dev/pf, time to fix permissions for proxies */
chgrp('/dev/pf', 'proxy');
chmod('/dev/pf', 0660);
if (!empty($config['system']['crypto_hardware'])) { if (!empty($config['system']['crypto_hardware'])) {
log_error(sprintf('Loading %s cryptographic accelerator module.', $config['system']['crypto_hardware'])); log_error(sprintf('Loading %s cryptographic accelerator module.', $config['system']['crypto_hardware']));
$mods[] = $config['system']['crypto_hardware']; $mods[] = $config['system']['crypto_hardware'];
...@@ -1498,6 +1494,10 @@ function system_kernel_configure($verbose = false) ...@@ -1498,6 +1494,10 @@ function system_kernel_configure($verbose = false)
mwexecf('/sbin/kldload %s', $mod, true); mwexecf('/sbin/kldload %s', $mod, true);
} }
/* we now have /dev/pf, time to fix permissions for proxies */
chgrp('/dev/pf', 'proxy');
chmod('/dev/pf', 0660);
if ($verbose) { if ($verbose) {
echo "done.\n"; echo "done.\n";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment