Update of /cvsroot/serverfilters
In directory sc8-pr-cvs1:/tmp/cvs-serv22637
Modified Files:
ChangeLog functions.php
Log Message:
Changed setuid functions to use a C wrapper instead of sudo command.
Index: functions.php
===================================================================
RCS file: /cvsroot/serverfilters/functions.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** functions.php 9 Dec 2003 06:50:12 -0000 1.2
--- functions.php 9 Dec 2003 18:45:47 -0000 1.3
***************
*** 30,34 ****
$localfile = "/tmp/$FILTERFILE.$username";
if (filter_exists($file)) {
! $command = escapeshellcmd("sudo ../plugins/serversidefilter/script/getrc $file $localfile");
system($command);
} else
--- 30,34 ----
$localfile = "/tmp/$FILTERFILE.$username";
if (filter_exists($file)) {
! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd getrc $file $localfile");
system($command);
} else
***************
*** 45,49 ****
$file = "$path/$FILTERFILE";
! $command = escapeshellcmd("sudo ../plugins/serversidefilter/script/rcexists $file");
system($command, $exists);
if ($exists == 0) {
--- 45,49 ----
$file = "$path/$FILTERFILE";
! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd rcexists $file");
system($command, $exists);
if ($exists == 0) {
***************
*** 69,73 ****
$user = $username;
! $command = escapeshellcmd("sudo ../plugins/serversidefilter/script/putrc $user $file $newfile");
system($command);
}
--- 69,73 ----
$user = $username;
! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd putrc $user $file $newfile");
system($command);
}
|