]> git.pld-linux.org Git - packages/asa.git/commitdiff
- run as jabber user
authordzeus <dzeus@pld-linux.org>
Sat, 4 Jun 2005 08:22:26 +0000 (08:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    asa-userrun.patch -> 1.1

asa-userrun.patch [new file with mode: 0644]

diff --git a/asa-userrun.patch b/asa-userrun.patch
new file mode 100644 (file)
index 0000000..84a3db1
--- /dev/null
@@ -0,0 +1,19 @@
+diff -urN asa-0.1.6.orig/ApaSMSAgent.pl asa-0.1.6/ApaSMSAgent.pl
+--- asa-0.1.6.orig/ApaSMSAgent.pl      2005-04-22 12:23:56.000000000 +0200
++++ asa-0.1.6/ApaSMSAgent.pl   2005-06-04 10:10:01.000000000 +0200
+@@ -19,6 +19,15 @@
+ use Time::HiRes qw(gettimeofday); # benchmarking ;)
+ use strict;
++# set UID/GID
++if ($< == 0) {
++    my ($uid, $gid) = (getpwnam("jabber"))[2,3];
++    $)="$gid $gid" or die "Cannot set EGID and groups";
++    $(=$gid or die "Cannot set GID";;
++    $>=$uid or die "Cannot set EUID";
++    $<=$> or die "Cannot set UID";;
++}
++
+ # set up Stop to be run if someone kills us
+ $SIG{KILL} = \&Stop;
+ $SIG{TERM} = \&Stop;
This page took 0.23291 seconds and 4 git commands to generate.