Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/sys Pull up revision 1.13 (requested by elad in ticke...
details: https://anonhg.NetBSD.org/src/rev/00cfe39144b2
branches: netbsd-3
changeset: 576418:00cfe39144b2
user: tron <tron%NetBSD.org@localhost>
date: Sat Jul 02 17:53:25 2005 +0000
description:
Pull up revision 1.13 (requested by elad in ticket #487):
>From marius@openbsd:
Add an exec message so that whenever a set-uid/gid process executes a new
image which we may control, the exec does not go by unnoticed.
diffstat:
sys/sys/systrace.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (44 lines):
diff -r 88ce287d7e1d -r 00cfe39144b2 sys/sys/systrace.h
--- a/sys/sys/systrace.h Sat Jul 02 17:39:10 2005 +0000
+++ b/sys/sys/systrace.h Sat Jul 02 17:53:25 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace.h,v 1.12 2003/10/31 03:28:14 simonb Exp $ */
+/* $NetBSD: systrace.h,v 1.12.14.1 2005/07/02 17:53:25 tron Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -48,6 +48,10 @@
gid_t gid;
};
+struct str_msg_execve {
+ char path[MAXPATHLEN];
+};
+
#define SYSTR_MAX_POLICIES 64
#define SYSTR_MAXARGS 64
#define SYSTR_MAXFNAME 8
@@ -72,6 +76,7 @@
#define SYSTR_MSG_CHILD 4
#define SYSTR_MSG_UGID 5
#define SYSTR_MSG_POLICYFREE 6
+#define SYSTR_MSG_EXECVE 7
#define SYSTR_MSG_NOPROCESS(x) \
((x)->msg.msg_type == SYSTR_MSG_CHILD || \
@@ -87,6 +92,7 @@
struct str_msg_ugid msg_ugid;
struct str_msg_ask msg_ask;
struct str_msg_child msg_child;
+ struct str_msg_execve msg_execve;
} msg_data;
};
@@ -216,6 +222,7 @@
void systrace_sys_exit(struct proc *);
void systrace_sys_fork(struct proc *, struct proc *);
void systrace_init(void);
+void systrace_execve(char *, struct proc *);
#endif /* _KERNEL */
#endif /* !_SYSTRACE_H_ */
Home |
Main Index |
Thread Index |
Old Index