summaryrefslogtreecommitdiff
path: root/bin/systrace
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2002-12-11 16:55:29 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2002-12-11 16:55:29 +0000
commite41c3d090e131c31117be4405641af3bae013faa (patch)
treec2fc403eb2c89d4876a834e38b06292c44bc958f /bin/systrace
parenteb5fd297b208d56e46e5620151cc47d6388a4f52 (diff)
rename log->dolog, from thorpej@netbsd, ok provos
Diffstat (limited to 'bin/systrace')
-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);