Commit bd188bd8 authored by Franco Fichtner's avatar Franco Fichtner

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

parent cf48dbb9
......@@ -1516,10 +1516,6 @@ function system_kernel_configure($verbose = false)
'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'])) {
log_error(sprintf('Loading %s cryptographic accelerator module.', $config['system']['crypto_hardware']));
$mods[] = $config['system']['crypto_hardware'];
......@@ -1538,6 +1534,10 @@ function system_kernel_configure($verbose = false)
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) {
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