summaryrefslogtreecommitdiff
path: root/bin/systrace/systrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/systrace/systrace.c')
-rw-r--r--bin/systrace/systrace.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c
index 50cf86bc90c..03224aa7b0f 100644
--- a/bin/systrace/systrace.c
+++ b/bin/systrace/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.40 2002/12/09 07:24:56 itojun Exp $ */
+/* $OpenBSD: systrace.c,v 1.41 2002/12/11 16:55:28 avsm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -150,7 +150,7 @@ trans_cb(int fd, pid_t pid, int policynr,
const char *binname = NULL;
char output[_POSIX2_LINE_MAX];
pid_t ppid;
- int log = 0;
+ int dolog = 0;
action = ICPOLICY_PERMIT;
@@ -212,7 +212,7 @@ trans_cb(int fd, pid_t pid, int policynr,
if (policy->flags & POLICY_UNSUPERVISED) {
action = ICPOLICY_NEVER;
- log = 1;
+ dolog = 1;
goto out;
}
@@ -231,7 +231,7 @@ trans_cb(int fd, pid_t pid, int policynr,
}
replace:
if (ipid->uflags & SYSCALL_LOG)
- log = 1;
+ dolog = 1;
if (action < ICPOLICY_NEVER) {
/* If we can not rewrite the arguments, system call fails */
@@ -239,7 +239,7 @@ trans_cb(int fd, pid_t pid, int policynr,
action = ICPOLICY_NEVER;
}
out:
- if (log)
+ if (dolog)
syslog(LOG_WARNING, "%s user: %s, prog: %s",
action < ICPOLICY_NEVER ? "permit" : "deny",
ipid->username, output);
@@ -257,7 +257,7 @@ gen_cb(int fd, pid_t pid, int policynr, const char *name, int code,
struct filterq *pflq = NULL;
short action = ICPOLICY_PERMIT;
short future;
- int len, off, log = 0;
+ int len, off, dolog = 0;
if (policynr == -1)
goto out;
@@ -289,7 +289,7 @@ gen_cb(int fd, pid_t pid, int policynr, const char *name, int code,
if (policy->flags & POLICY_UNSUPERVISED) {
action = ICPOLICY_NEVER;
- log = 1;
+ dolog = 1;
goto out;
}
@@ -306,7 +306,7 @@ gen_cb(int fd, pid_t pid, int policynr, const char *name, int code,
return (ICPOLICY_NEVER);
}
out:
- if (log)
+ if (dolog)
syslog(LOG_WARNING, "%s user: %s, prog: %s",
action < ICPOLICY_NEVER ? "permit" : "deny",
ipid->username, output);