aboutsummaryrefslogtreecommitdiffstats
path: root/config/sudo
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-03-18 12:15:50 -0400
committerjim-p <jimp@pfsense.org>2015-03-18 12:15:50 -0400
commit6fe305c189ddfbeee3d616aea5974d0fa655897b (patch)
tree22141b4a496c2ff8bd5244fe727ad07853eb3106 /config/sudo
parent16b668f43d9ea78fba4cdb34c410bcc14223105d (diff)
downloadpfsense-packages-6fe305c189ddfbeee3d616aea5974d0fa655897b.tar.gz
pfsense-packages-6fe305c189ddfbeee3d616aea5974d0fa655897b.tar.bz2
pfsense-packages-6fe305c189ddfbeee3d616aea5974d0fa655897b.zip
Give ldconfig a nudge for sudo (temp workaround for library issues)
Diffstat (limited to 'config/sudo')
-rw-r--r--config/sudo/sudo.inc6
-rw-r--r--config/sudo/sudo.xml2
2 files changed, 6 insertions, 2 deletions
diff --git a/config/sudo/sudo.inc b/config/sudo/sudo.inc
index a69d9211..a8107029 100644
--- a/config/sudo/sudo.inc
+++ b/config/sudo/sudo.inc
@@ -28,6 +28,7 @@
*/
require_once("config.inc");
+global $pfs_version;
$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3);
switch ($pfs_version) {
case "1.2":
@@ -84,8 +85,11 @@ function sudo_install() {
}
function sudo_write_config() {
- global $config;
+ global $config, $pfs_version;
$sudoers = "";
+ if ($pfs_version == "2.2") {
+ mwexec_bg("/sbin/ldconfig -m /usr/pbi/sudo-" . php_uname("m") . "/local/lib/");
+ }
conf_mount_rw();
$sudoconf = "Plugin sudoers_policy " . SUDO_LIBEXEC_DIR . "/sudoers.so\n";
diff --git a/config/sudo/sudo.xml b/config/sudo/sudo.xml
index 2fccab24..069606ba 100644
--- a/config/sudo/sudo.xml
+++ b/config/sudo/sudo.xml
@@ -3,7 +3,7 @@
<description>Sudo Command Control</description>
<requirements>None</requirements>
<name>sudo</name>
- <version>0.2.1</version>
+ <version>0.2.5</version>
<title>Sudo - Shell Command Privilege Delegation Utility</title>
<include_file>/usr/local/pkg/sudo.inc</include_file>
<menu>