From 6fe305c189ddfbeee3d616aea5974d0fa655897b Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 18 Mar 2015 12:15:50 -0400 Subject: Give ldconfig a nudge for sudo (temp workaround for library issues) --- config/sudo/sudo.inc | 6 +++++- config/sudo/sudo.xml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'config') 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 @@ Sudo Command Control None sudo - 0.2.1 + 0.2.5 Sudo - Shell Command Privilege Delegation Utility /usr/local/pkg/sudo.inc -- cgit v1.2.3