Update of /cvsroot/sysfence/sysfence
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16579
Modified Files:
sysfence.c
Log Message:
+ info message when running with user privileges
Index: sysfence.c
===================================================================
RCS file: /cvsroot/sysfence/sysfence/sysfence.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- sysfence.c 5 Jun 2004 13:48:35 -0000 1.28
+++ sysfence.c 5 Jun 2004 15:51:44 -0000 1.29
@@ -54,6 +54,7 @@
int total_rules_size = 0;
int pid;
+ int uid;
if (argc < 2) bail_out (EXIT_NOCONF, NULL);
@@ -73,6 +74,13 @@
}
syslog (LOG_INFO, "loaded %d rules", rulecount);
+ /* check if we're running with r00t uid */
+ uid = getuid ();
+ if (uid)
+ syslog (LOG_INFO,
+ "running with UID %d, process data may be inaccurate",
+ uid);
+
/* open files for reading data and detach from console */
open_files ();
|