mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Woops, back that out, this MFC has already taken place.
This commit is contained in:
parent
e93db4a1f8
commit
b2f76d1ef9
@ -1523,21 +1523,4 @@ function set_device_perms() {
|
||||
}
|
||||
}
|
||||
|
||||
function set_device_perms() {
|
||||
$devices = array(
|
||||
'pf' => array( 'user' => 'proxy',
|
||||
'group' => 'proxy',
|
||||
'mode' => 0660),
|
||||
);
|
||||
|
||||
foreach ($devices as $name => $attr) {
|
||||
$path = "/dev/$name";
|
||||
if (file_exists($path)) {
|
||||
chown($path, $attr['user']);
|
||||
chgrp($path, $attr['group']);
|
||||
chmod($path, $attr['mode']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user