SOURCES: sysklogd-security.patch - make it apply with -ksyms.patch
glen
glen at pld-linux.org
Mon Aug 1 18:06:39 CEST 2005
Author: glen Date: Mon Aug 1 16:06:39 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- make it apply with -ksyms.patch
---- Files affected:
SOURCES:
sysklogd-security.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/sysklogd-security.patch
diff -u SOURCES/sysklogd-security.patch:1.1 SOURCES/sysklogd-security.patch:1.2
--- SOURCES/sysklogd-security.patch:1.1 Mon Aug 1 17:54:37 2005
+++ SOURCES/sysklogd-security.patch Mon Aug 1 18:06:34 2005
@@ -117,20 +117,6 @@
case 'i': /* Reload module symbols. */
SignalDaemon(SIGUSR1);
return(0);
-@@ -1161,6 +1193,13 @@
- if (symbol_lookup) {
- InitKsyms(symfile);
- InitMsyms();
-+ }
-+
-+ /* Drop privileges if a user name was specified on the command line */
-+ if (drop_privileges) {
-+ setgroups(0, NULL);
-+ setgid(server_gid);
-+ setuid(server_uid);
- }
-
- /* The main loop. */
diff -Nur sysklogd-1.4.1.orig/sysklogd.8 sysklogd-1.4.1/sysklogd.8
--- sysklogd-1.4.1.orig/sysklogd.8 Sun Mar 11 20:35:51 2001
+++ sysklogd-1.4.1/sysklogd.8 Fri Mar 16 14:40:16 2001
@@ -252,3 +238,19 @@
exit(1);
}
+--- ./klogd.c~ 2005-08-01 18:53:54.000000000 +0300
++++ ./klogd.c 2005-08-01 19:04:26.000000000 +0300
+@@ -1204,6 +1204,13 @@
+ }
+ }
+
++ /* Drop privileges if a user name was specified on the command line */
++ if (drop_privileges) {
++ setgroups(0, NULL);
++ setgid(server_gid);
++ setuid(server_uid);
++ }
++
+ /* The main loop. */
+ while (1)
+ {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/sysklogd-security.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list