Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/systrace Add comments.
details: https://anonhg.NetBSD.org/src/rev/3757bcd0be87
branches: trunk
changeset: 583544:3757bcd0be87
user: elad <elad%NetBSD.org@localhost>
date: Wed Aug 10 21:33:36 2005 +0000
description:
Add comments.
diffstat:
bin/systrace/policy.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r e6628082da24 -r 3757bcd0be87 bin/systrace/policy.c
--- a/bin/systrace/policy.c Wed Aug 10 20:32:57 2005 +0000
+++ b/bin/systrace/policy.c Wed Aug 10 21:33:36 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: policy.c,v 1.18 2005/08/10 18:19:21 elad Exp $ */
+/* $NetBSD: policy.c,v 1.19 2005/08/10 21:33:36 elad Exp $ */
/* $OpenBSD: policy.c,v 1.15 2002/08/07 00:34:17 vincent Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -30,7 +30,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: policy.c,v 1.18 2005/08/10 18:19:21 elad Exp $");
+__RCSID("$NetBSD: policy.c,v 1.19 2005/08/10 21:33:36 elad Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -334,10 +334,12 @@
if (userpolicy) {
file = systrace_policyfilename(policydir, name);
+ /* Check if the user policy file exists */
if (file != NULL && access(file, R_OK) == -1)
file = NULL;
}
+ /* Read global policy */
if (file == NULL)
file = systrace_policyfilename(POLICY_PATH, name);
Home |
Main Index |
Thread Index |
Old Index