From owner-p4-projects@FreeBSD.ORG Sun Sep 24 12:10:44 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id E978016A412; Sun, 24 Sep 2006 12:10:43 +0000 (UTC)
X-Original-To: perforce@FreeBSD.org
Delivered-To: perforce@FreeBSD.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id C4DE916A47B
for ; Sun, 24 Sep 2006 12:10:43 +0000 (UTC)
(envelope-from als@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id BE4A143D7C
for ; Sun, 24 Sep 2006 12:10:40 +0000 (GMT)
(envelope-from als@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OCAe0g014010
for ; Sun, 24 Sep 2006 12:10:40 GMT
(envelope-from als@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OCAe0W014007
for perforce@freebsd.org; Sun, 24 Sep 2006 12:10:40 GMT
(envelope-from als@FreeBSD.org)
Date: Sun, 24 Sep 2006 12:10:40 GMT
Message-Id: <200609241210.k8OCAe0W014007@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
als@FreeBSD.org using -f
From: Alex Lyashkov
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106595 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 12:10:44 -0000
http://perforce.freebsd.org/chv.cgi?CH=106595
Change 106595 by als@als_head on 2006/09/24 12:10:08
restore set prison ip via old jail api
Affected files ...
.. //depot/projects/jail2/sys/kern/kern_jail.c#8 edit
Differences ...
==== //depot/projects/jail2/sys/kern/kern_jail.c#8 (text+ko) ====
@@ -66,7 +66,7 @@
static int sysctl_jail_list(SYSCTL_HANDLER_ARGS);
static int find_empty_prid(void);
-#define jprint(a...)
+#define jprint(a...)
/* printf(a) */
static void
@@ -118,6 +118,7 @@
if (error)
goto e_dropref;
+ pr->pr_network.pr_ip = htonl(j.ip_number);
JAIL_SET_STARTED(pr);
error = jail_migrate(td, pr);
if (error)
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 12:18:55 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 3652716A40F; Sun, 24 Sep 2006 12:18:55 +0000 (UTC)
X-Original-To: perforce@FreeBSD.org
Delivered-To: perforce@FreeBSD.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 0917716A403
for ; Sun, 24 Sep 2006 12:18:55 +0000 (UTC)
(envelope-from als@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id DAB4C43D46
for ; Sun, 24 Sep 2006 12:18:52 +0000 (GMT)
(envelope-from als@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OCIqsi014419
for ; Sun, 24 Sep 2006 12:18:52 GMT
(envelope-from als@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OCIpIo014416
for perforce@freebsd.org; Sun, 24 Sep 2006 12:18:51 GMT
(envelope-from als@FreeBSD.org)
Date: Sun, 24 Sep 2006 12:18:51 GMT
Message-Id: <200609241218.k8OCIpIo014416@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
als@FreeBSD.org using -f
From: Alex Lyashkov
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106596 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 12:18:55 -0000
http://perforce.freebsd.org/chv.cgi?CH=106596
Change 106596 by als@als_head on 2006/09/24 12:18:28
merge HEAD
Affected files ...
.. //depot/projects/jail2/sys/amd64/conf/NOTES#4 integrate
.. //depot/projects/jail2/sys/amd64/ia32/ia32_sigtramp.S#2 integrate
.. //depot/projects/jail2/sys/compat/freebsd32/freebsd32_proto.h#6 integrate
.. //depot/projects/jail2/sys/compat/freebsd32/freebsd32_syscall.h#6 integrate
.. //depot/projects/jail2/sys/compat/freebsd32/freebsd32_syscalls.c#6 integrate
.. //depot/projects/jail2/sys/compat/freebsd32/freebsd32_sysent.c#6 integrate
.. //depot/projects/jail2/sys/compat/freebsd32/syscalls.master#6 integrate
.. //depot/projects/jail2/sys/compat/linux/linux_file.c#4 integrate
.. //depot/projects/jail2/sys/compat/linux/linux_socket.c#3 integrate
.. //depot/projects/jail2/sys/conf/files.amd64#5 integrate
.. //depot/projects/jail2/sys/conf/files.i386#4 integrate
.. //depot/projects/jail2/sys/dev/acpica/Osd/OsdHardware.c#2 integrate
.. //depot/projects/jail2/sys/dev/bge/if_bge.c#6 integrate
.. //depot/projects/jail2/sys/dev/exca/exca.c#2 integrate
.. //depot/projects/jail2/sys/dev/ipmi/ipmi.c#2 integrate
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_acpi.c#1 branch
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_isa.c#1 branch
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_kcs.c#1 branch
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_pci.c#2 integrate
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_smbios.c#2 integrate
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_smbus.c#1 branch
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_smic.c#1 branch
.. //depot/projects/jail2/sys/dev/ipmi/ipmi_ssif.c#1 branch
.. //depot/projects/jail2/sys/dev/ipmi/ipmivars.h#2 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/buffer.c#3 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/buffer.h#3 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/channel.c#2 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/channel.h#2 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/channel_if.m#2 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/dsp.c#2 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/dsp.h#2 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/mixer.c#2 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/mixer.h#3 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/sound.c#4 integrate
.. //depot/projects/jail2/sys/dev/sound/pcm/sound.h#3 integrate
.. //depot/projects/jail2/sys/i386/conf/NOTES#5 integrate
.. //depot/projects/jail2/sys/kern/kern_descrip.c#8 integrate
.. //depot/projects/jail2/sys/kern/kern_event.c#2 integrate
.. //depot/projects/jail2/sys/kern/kern_proc.c#4 integrate
.. //depot/projects/jail2/sys/kern/tty.c#4 integrate
.. //depot/projects/jail2/sys/kern/tty_pty.c#2 integrate
.. //depot/projects/jail2/sys/kern/tty_tty.c#2 integrate
.. //depot/projects/jail2/sys/kern/vfs_aio.c#4 integrate
.. //depot/projects/jail2/sys/modules/ipmi/Makefile#2 integrate
.. //depot/projects/jail2/sys/net/if_bridge.c#6 integrate
.. //depot/projects/jail2/sys/netinet/if_ether.c#3 integrate
.. //depot/projects/jail2/sys/netinet/tcp_input.c#5 integrate
.. //depot/projects/jail2/sys/sys/event.h#2 integrate
.. //depot/projects/jail2/sys/sys/ipmi.h#2 integrate
.. //depot/projects/jail2/sys/sys/mbuf.h#4 integrate
.. //depot/projects/jail2/sys/sys/param.h#4 integrate
.. //depot/projects/jail2/sys/sys/soundcard.h#2 integrate
Differences ...
==== //depot/projects/jail2/sys/amd64/conf/NOTES#4 (text+ko) ====
@@ -4,7 +4,7 @@
# This file contains machine dependent kernel configuration notes. For
# machine independent notes, look in /sys/conf/NOTES.
#
-# $FreeBSD: src/sys/amd64/conf/NOTES,v 1.58 2006/07/29 18:38:53 marcel Exp $
+# $FreeBSD: src/sys/amd64/conf/NOTES,v 1.59 2006/09/22 22:11:28 jhb Exp $
#
#
@@ -346,6 +346,7 @@
#
# Miscellaneous hardware:
#
+# ipmi: Intelligent Platform Management Interface
# smbios: DMI/SMBIOS entry point
# vpd: Vital Product Data kernel interface
# cy: Cyclades serial driver
@@ -368,6 +369,7 @@
device digi_Xe
device digi_Xem
device digi_Xr
+device ipmi
# Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724)
device pbio
hint.pbio.0.at="isa"
==== //depot/projects/jail2/sys/amd64/ia32/ia32_sigtramp.S#2 (text+ko) ====
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $FreeBSD: src/sys/amd64/ia32/ia32_sigtramp.S,v 1.2 2003/08/22 23:19:02 peter Exp $
+ * $FreeBSD: src/sys/amd64/ia32/ia32_sigtramp.S,v 1.3 2006/09/23 13:42:09 davidxu Exp $
*/
#include "opt_compat.h"
@@ -45,8 +45,6 @@
calll *IA32_SIGF_HANDLER(%esp)
leal IA32_SIGF_UC(%esp),%eax /* get ucontext */
pushl %eax
- movl IA32_UC_GS(%eax),%gs /* restore %gs */
- movl IA32_UC_FS(%eax),%fs /* restore %fs */
movl IA32_UC_ES(%eax),%es /* restore %es */
movl IA32_UC_DS(%eax),%ds /* restore %ds */
movl $SYS_sigreturn,%eax
@@ -62,8 +60,6 @@
calll *IA32_SIGF_HANDLER(%esp)
leal IA32_SIGF_UC4(%esp),%eax/* get ucontext */
pushl %eax
- movl IA32_UC4_GS(%eax),%gs /* restore %gs */
- movl IA32_UC4_FS(%eax),%fs /* restore %fs */
movl IA32_UC4_ES(%eax),%es /* restore %es */
movl IA32_UC4_DS(%eax),%ds /* restore %ds */
movl $344,%eax /* 4.x SYS_sigreturn */
==== //depot/projects/jail2/sys/compat/freebsd32/freebsd32_proto.h#6 (text+ko) ====
@@ -2,8 +2,8 @@
* System call prototypes.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.65 2006/09/22 15:05:33 davidxu Exp $
- * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.78 2006/09/22 15:04:28 davidxu Exp
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.66 2006/09/23 00:27:53 davidxu Exp $
+ * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.79 2006/09/23 00:27:11 davidxu Exp
*/
#ifndef _FREEBSD32_SYSPROTO_H_
==== //depot/projects/jail2/sys/compat/freebsd32/freebsd32_syscall.h#6 (text+ko) ====
@@ -2,8 +2,8 @@
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.63 2006/09/22 15:05:33 davidxu Exp $
- * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.78 2006/09/22 15:04:28 davidxu Exp
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.64 2006/09/23 00:27:53 davidxu Exp $
+ * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.79 2006/09/23 00:27:11 davidxu Exp
*/
#define FREEBSD32_SYS_syscall 0
@@ -300,6 +300,7 @@
#define FREEBSD32_SYS_freebsd32_getcontext 421
#define FREEBSD32_SYS_freebsd32_setcontext 422
#define FREEBSD32_SYS_freebsd32_swapcontext 423
+#define FREEBSD32_SYS_sigwait 429
#define FREEBSD32_SYS_thr_exit 431
#define FREEBSD32_SYS_thr_self 432
#define FREEBSD32_SYS_thr_kill 433
==== //depot/projects/jail2/sys/compat/freebsd32/freebsd32_syscalls.c#6 (text+ko) ====
@@ -2,8 +2,8 @@
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.54 2006/09/22 15:05:33 davidxu Exp $
- * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.78 2006/09/22 15:04:28 davidxu Exp
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.55 2006/09/23 00:27:53 davidxu Exp $
+ * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.79 2006/09/23 00:27:11 davidxu Exp
*/
const char *freebsd32_syscallnames[] = {
@@ -436,7 +436,7 @@
"#426", /* 426 = __acl_set_link */
"#427", /* 427 = __acl_delete_link */
"#428", /* 428 = __acl_aclcheck_link */
- "#429", /* 429 = sigwait */
+ "sigwait", /* 429 = sigwait */
"#430", /* 430 = thr_create; */
"thr_exit", /* 431 = thr_exit */
"thr_self", /* 432 = thr_self */
==== //depot/projects/jail2/sys/compat/freebsd32/freebsd32_sysent.c#6 (text+ko) ====
@@ -2,8 +2,8 @@
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.64 2006/09/22 15:05:34 davidxu Exp $
- * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.78 2006/09/22 15:04:28 davidxu Exp
+ * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.65 2006/09/23 00:27:53 davidxu Exp $
+ * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.79 2006/09/23 00:27:11 davidxu Exp
*/
#include "opt_compat.h"
@@ -461,7 +461,7 @@
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 426 = __acl_set_link */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 427 = __acl_delete_link */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 428 = __acl_aclcheck_link */
- { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 429 = sigwait */
+ { AS(sigwait_args), (sy_call_t *)sigwait, AUE_SIGWAIT, NULL, 0, 0 }, /* 429 = sigwait */
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 430 = thr_create; */
{ AS(thr_exit_args), (sy_call_t *)thr_exit, AUE_NULL, NULL, 0, 0 }, /* 431 = thr_exit */
{ AS(thr_self_args), (sy_call_t *)thr_self, AUE_NULL, NULL, 0, 0 }, /* 432 = thr_self */
==== //depot/projects/jail2/sys/compat/freebsd32/syscalls.master#6 (text+ko) ====
@@ -1,4 +1,4 @@
- $FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.78 2006/09/22 15:04:28 davidxu Exp $
+ $FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.79 2006/09/23 00:27:11 davidxu Exp $
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
; from: src/sys/kern/syscalls.master 1.107
;
@@ -714,7 +714,8 @@
427 AUE_NULL UNIMPL __acl_delete_link
428 AUE_NULL UNIMPL __acl_aclcheck_link
; XXX implement
-429 AUE_SIGWAIT UNIMPL sigwait
+429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \
+ int *sig); }
430 AUE_NULL UNIMPL thr_create;
431 AUE_NULL NOPROTO { void thr_exit(long *state); }
432 AUE_NULL NOPROTO { int thr_self(long *id); }
==== //depot/projects/jail2/sys/compat/linux/linux_file.c#4 (text+ko) ====
@@ -27,7 +27,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/compat/linux/linux_file.c,v 1.97 2006/09/10 13:47:56 netchild Exp $");
+__FBSDID("$FreeBSD: src/sys/compat/linux/linux_file.c,v 1.98 2006/09/23 19:06:54 netchild Exp $");
#include "opt_compat.h"
#include "opt_mac.h"
@@ -49,6 +49,7 @@
#include
#include
#include
+#include
#include
#include
@@ -480,6 +481,10 @@
char *path;
int error;
+ /* linux convention */
+ if (args->flags & ~(F_OK | X_OK | W_OK | R_OK))
+ return (EINVAL);
+
LCONVPATHEXIST(td, args->path, &path);
#ifdef DEBUG
@@ -488,6 +493,7 @@
#endif
error = kern_access(td, path, UIO_SYSSPACE, args->flags);
LFREEPATH(path);
+
return (error);
}
@@ -724,12 +730,28 @@
struct linux_pread_args *uap;
{
struct pread_args bsd;
+ struct vnode *vp;
+ int error;
bsd.fd = uap->fd;
bsd.buf = uap->buf;
bsd.nbyte = uap->nbyte;
bsd.offset = uap->offset;
- return pread(td, &bsd);
+
+ error = pread(td, &bsd);
+
+ if (error == 0) {
+ /* This seems to violate POSIX but linux does it */
+ if ((error = fgetvp(td, uap->fd, &vp)) != 0)
+ return (error);
+ if (vp->v_type == VDIR) {
+ vrele(vp);
+ return (EISDIR);
+ }
+ vrele(vp);
+ }
+
+ return (error);
}
int
==== //depot/projects/jail2/sys/compat/linux/linux_socket.c#3 (text+ko) ====
@@ -27,7 +27,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/compat/linux/linux_socket.c,v 1.70 2006/07/19 18:28:52 jhb Exp $");
+__FBSDID("$FreeBSD: src/sys/compat/linux/linux_socket.c,v 1.71 2006/09/23 19:06:54 netchild Exp $");
/* XXX we use functions that might not exist. */
#include "opt_compat.h"
@@ -611,6 +611,8 @@
error = kern_bind(td, linux_args.s, sa);
free(sa, M_SONAME);
+ if (error == EADDRNOTAVAIL && linux_args.namelen != sizeof(struct sockaddr_in))
+ return (EINVAL);
return (error);
}
@@ -719,8 +721,11 @@
bsd_args.anamelen = PTRIN(linux_args.namelen);/* XXX */
error = accept(td, &bsd_args);
bsd_to_linux_sockaddr((struct sockaddr *)bsd_args.name);
- if (error)
+ if (error) {
+ if (error == EFAULT && linux_args.namelen != sizeof(struct sockaddr_in))
+ return (EINVAL);
return (error);
+ }
if (linux_args.addr) {
error = linux_sa_put(PTRIN(linux_args.addr));
if (error) {
@@ -1135,7 +1140,7 @@
break;
}
if (name == -1)
- return (EINVAL);
+ return (ENOPROTOOPT);
bsd_args.name = name;
bsd_args.val = PTRIN(linux_args.optval);
==== //depot/projects/jail2/sys/conf/files.amd64#5 (text+ko) ====
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $FreeBSD: src/sys/conf/files.amd64,v 1.93 2006/09/05 16:55:12 anholt Exp $
+# $FreeBSD: src/sys/conf/files.amd64,v 1.94 2006/09/22 22:11:28 jhb Exp $
#
# The long compile-with and dependency lines are required because of
# limitations in config: backslash-newline doesn't work in strings, and
@@ -161,7 +161,13 @@
dev/if_ndis/if_ndis_usb.c optional ndis usb
dev/io/iodev.c optional io
dev/ipmi/ipmi.c optional ipmi
-dev/ipmi/ipmi_smbios.c optional ipmi isa
+dev/ipmi/ipmi_acpi.c optional ipmi acpi
+dev/ipmi/ipmi_isa.c optional ipmi isa
+dev/ipmi/ipmi_kcs.c optional ipmi
+dev/ipmi/ipmi_smic.c optional ipmi
+dev/ipmi/ipmi_smbus.c optional ipmi smbus
+dev/ipmi/ipmi_smbios.c optional ipmi
+dev/ipmi/ipmi_ssif.c optional ipmi smbus
dev/ipmi/ipmi_pci.c optional ipmi pci
dev/fdc/fdc.c optional fdc
dev/fdc/fdc_acpi.c optional fdc
==== //depot/projects/jail2/sys/conf/files.i386#4 (text+ko) ====
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $FreeBSD: src/sys/conf/files.i386,v 1.565 2006/08/15 12:54:28 netchild Exp $
+# $FreeBSD: src/sys/conf/files.i386,v 1.566 2006/09/22 22:11:28 jhb Exp $
#
# The long compile-with and dependency lines are required because of
# limitations in config: backslash-newline doesn't work in strings, and
@@ -196,7 +196,13 @@
dev/if_ndis/if_ndis_usb.c optional ndis usb
dev/io/iodev.c optional io
dev/ipmi/ipmi.c optional ipmi
-dev/ipmi/ipmi_smbios.c optional ipmi isa
+dev/ipmi/ipmi_acpi.c optional ipmi acpi
+dev/ipmi/ipmi_isa.c optional ipmi isa
+dev/ipmi/ipmi_kcs.c optional ipmi
+dev/ipmi/ipmi_smic.c optional ipmi
+dev/ipmi/ipmi_smbus.c optional ipmi smbus
+dev/ipmi/ipmi_smbios.c optional ipmi
+dev/ipmi/ipmi_ssif.c optional ipmi smbus
dev/ipmi/ipmi_pci.c optional ipmi pci
dev/kbd/kbd.c optional atkbd | sc | ukbd | vt
dev/le/if_le_isa.c optional le isa
==== //depot/projects/jail2/sys/dev/acpica/Osd/OsdHardware.c#2 (text+ko) ====
@@ -30,7 +30,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/acpica/Osd/OsdHardware.c,v 1.20 2006/04/04 02:22:38 njl Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/acpica/Osd/OsdHardware.c,v 1.21 2006/09/24 09:39:17 hrs Exp $");
#include
@@ -126,7 +126,9 @@
error = acpi_os_check_port(InPort, Width);
if (error != 0) {
- printf("acpi: bad read from port 0x%03x (%d)\n", (int)InPort, Width);
+ if (bootverbose)
+ printf("acpi: bad read from port 0x%03x (%d)\n",
+ (int)InPort, Width);
if (error == -1)
return (AE_BAD_PARAMETER);
}
@@ -159,8 +161,9 @@
error = acpi_os_check_port(OutPort, Width);
if (error != 0) {
- printf("acpi: bad write to port 0x%03x (%d), val %#x\n", (int)OutPort,
- Width, Value);
+ if (bootverbose)
+ printf("acpi: bad write to port 0x%03x (%d), val %#x\n",
+ (int)OutPort, Width, Value);
if (error == -1)
return (AE_BAD_PARAMETER);
}
==== //depot/projects/jail2/sys/dev/bge/if_bge.c#6 (text+ko) ====
@@ -32,7 +32,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/bge/if_bge.c,v 1.148 2006/09/18 22:18:21 jkim Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/bge/if_bge.c,v 1.149 2006/09/23 18:55:49 scottl Exp $");
/*
* Broadcom BCM570x family gigabit ethernet driver for FreeBSD.
@@ -79,6 +79,7 @@
#include
#include
#include
+#include
#include
#include
@@ -419,7 +420,16 @@
DRIVER_MODULE(miibus, bge, miibus_driver, miibus_devclass, 0, 0);
static int bge_fake_autoneg = 0;
+static int bge_allow_asf = 1;
+
TUNABLE_INT("hw.bge.fake_autoneg", &bge_fake_autoneg);
+TUNABLE_INT("hw.bge.allow_asf", &bge_allow_asf);
+
+SYSCTL_NODE(_hw, OID_AUTO, bge, CTLFLAG_RD, 0, "BGE driver parameters");
+SYSCTL_INT(_hw_bge, OID_AUTO, fake_autoneg, CTLFLAG_RD, &bge_fake_autoneg, 0,
+ "Enable fake autonegotiation for certain blade systems");
+SYSCTL_INT(_hw_bge, OID_AUTO, allow_asf, CTLFLAG_RD, &bge_allow_asf, 0,
+ "Allow ASF mode if available");
static uint32_t
bge_readmem_ind(struct bge_softc *sc, int off)
@@ -2179,8 +2189,8 @@
}
sc->bge_asf_mode = 0;
- if (bge_readmem_ind(sc, BGE_SOFTWARE_GENCOMM_SIG)
- == BGE_MAGIC_NUMBER) {
+ if (bge_allow_asf && (bge_readmem_ind(sc, BGE_SOFTWARE_GENCOMM_SIG)
+ == BGE_MAGIC_NUMBER)) {
if (bge_readmem_ind(sc, BGE_SOFTWARE_GENCOMM_NICCFG)
& BGE_HWCFG_ASF) {
sc->bge_asf_mode |= ASF_ENABLE;
==== //depot/projects/jail2/sys/dev/exca/exca.c#2 (text+ko) ====
@@ -53,7 +53,7 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/exca/exca.c,v 1.24 2006/03/09 16:28:24 imp Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/exca/exca.c,v 1.25 2006/09/24 00:26:33 imp Exp $");
#include
#include
@@ -179,11 +179,7 @@
struct mem_map_index_st *map;
struct pccard_mem_handle *mem;
uint32_t offset;
-#if 0
- int mem8 = (mem->kind == PCCARD_A_MEM_ATTR);
-#else
- int mem8 = 1;
-#endif
+ int mem8 = 1 /* mem->kind == PCCARD_A_MEM_ATTR */;
map = &mem_map_index[win];
mem = &sc->mem[win];
==== //depot/projects/jail2/sys/dev/ipmi/ipmi.c#2 (text) ====
@@ -25,24 +25,21 @@
*/
#include
-__FBSDID("$FreeBSD: src/sys/dev/ipmi/ipmi.c,v 1.3 2006/05/16 14:36:26 phk Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/ipmi/ipmi.c,v 1.4 2006/09/22 22:11:29 jhb Exp $");
#include
#include
+#include
+#include
+#include
#include
#include
+#include
#include
+#include
#include
-
-#include
-#include
-#include
-
-#include
-#include
-#include
+#include
#include
-#include
#ifdef LOCAL_MODULE
#include
@@ -52,29 +49,7 @@
#include
#endif
-struct ipmi_done_list {
- u_char *data;
- int channel;
- int msgid;
- int len;
- TAILQ_ENTRY(ipmi_done_list) list;
-};
-
-#define MAX_TIMEOUT 3 * hz
-
-static int ipmi_wait_for_ibf(device_t, int);
-static int ipmi_wait_for_obf(device_t, int);
-static void ipmi_clear_obf(device_t, int);
-static void ipmi_error(device_t);
-static void ipmi_check_read(device_t);
-static int ipmi_write(device_t, u_char *, int);
-static void ipmi_wait_for_tx_okay(device_t);
-static void ipmi_wait_for_rx_okay(device_t);
-static void ipmi_wait_for_not_busy(device_t);
-static void ipmi_set_busy(device_t);
-static int ipmi_ready_to_read(device_t);
#ifdef IPMB
-static int ipmi_handle_attn(device_t dev);
static int ipmi_ipmb_checksum(u_char, int);
static int ipmi_ipmb_send_message(device_t, u_char, u_char, u_char,
u_char, u_char, int)
@@ -92,11 +67,10 @@
static int on = 1;
SYSCTL_NODE(_hw, OID_AUTO, ipmi, CTLFLAG_RD, 0, "IPMI driver parameters");
SYSCTL_INT(_hw_ipmi, OID_AUTO, on, CTLFLAG_RW,
- &on, 0, "");
+ &on, 0, "");
static struct cdevsw ipmi_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_NEEDGIANT,
.d_open = ipmi_open,
.d_close = ipmi_close,
.d_ioctl = ipmi_ioctl,
@@ -106,60 +80,126 @@
MALLOC_DEFINE(M_IPMI, "ipmi", "ipmi");
-static int
-ipmi_open(struct cdev *dev, int flags, int fmt, struct thread *td)
+static int
+ipmi_open(struct cdev *cdev, int flags, int fmt, struct thread *td)
{
+ struct ipmi_device *dev;
struct ipmi_softc *sc;
if (!on)
- return ENOENT;
+ return (ENOENT);
- sc = dev->si_drv1;
- if (sc->ipmi_refcnt) {
- return EBUSY;
+ dev = cdev->si_drv1;
+ sc = dev->ipmi_softc;
+ IPMI_LOCK(sc);
+ if (dev->ipmi_open) {
+ IPMI_UNLOCK(sc);
+ return (EBUSY);
}
- sc->ipmi_refcnt = 1;
+ dev->ipmi_open = 1;
+ IPMI_UNLOCK(sc);
- return 0;
+ return (0);
}
-static int
-ipmi_poll(struct cdev *dev, int poll_events, struct thread *td)
+static int
+ipmi_poll(struct cdev *cdev, int poll_events, struct thread *td)
{
+ struct ipmi_device *dev;
struct ipmi_softc *sc;
int revents = 0;
- sc = dev->si_drv1;
+ dev = cdev->si_drv1;
+ sc = dev->ipmi_softc;
- ipmi_check_read(sc->ipmi_dev);
-
+ IPMI_LOCK(sc);
if (poll_events & (POLLIN | POLLRDNORM)) {
- if (!TAILQ_EMPTY(&sc->ipmi_done))
+ if (!TAILQ_EMPTY(&dev->ipmi_completed_requests))
revents |= poll_events & (POLLIN | POLLRDNORM);
- if (TAILQ_EMPTY(&sc->ipmi_done) && sc->ipmi_requests == 0) {
+ if (dev->ipmi_requests == 0)
revents |= POLLERR;
- }
}
if (revents == 0) {
if (poll_events & (POLLIN | POLLRDNORM))
- selrecord(td, &sc->ipmi_select);
+ selrecord(td, &dev->ipmi_select);
}
+ IPMI_UNLOCK(sc);
+
+ return (revents);
+}
+
+static void
+ipmi_purge_completed_requests(struct ipmi_device *dev)
+{
+ struct ipmi_request *req;
- return revents;
+ while (!TAILQ_EMPTY(&dev->ipmi_completed_requests)) {
+ req = TAILQ_FIRST(&dev->ipmi_completed_requests);
+ TAILQ_REMOVE(&dev->ipmi_completed_requests, req, ir_link);
+ dev->ipmi_requests--;
+ ipmi_free_request(req);
+ }
}
-static int
-ipmi_close(struct cdev *dev, int flags, int fmt, struct thread *td)
+static int
+ipmi_close(struct cdev *cdev, int flags, int fmt, struct thread *td)
{
+ struct ipmi_request *req, *nreq;
+ struct ipmi_device *dev;
struct ipmi_softc *sc;
- int error = 0;
+#ifdef CLONING
+ int bit;
+#endif
+
+ dev = cdev->si_drv1;
+ sc = dev->ipmi_softc;
+
+ IPMI_LOCK(sc);
+ if (dev->ipmi_requests) {
+ /* Throw away any pending requests for this device. */
+ TAILQ_FOREACH_SAFE(req, &sc->ipmi_pending_requests, ir_link,
+ nreq) {
+ if (req->ir_owner == dev) {
+ TAILQ_REMOVE(&sc->ipmi_pending_requests, req,
+ ir_link);
+ dev->ipmi_requests--;
+ ipmi_free_request(req);
+ }
+ }
+
+ /* Throw away any pending completed requests for this device. */
+ ipmi_purge_completed_requests(dev);
+
+ /*
+ * If we still have outstanding requests, they must be stuck
+ * in an interface driver, so wait for those to drain.
+ */
+ dev->ipmi_closing = 1;
+ while (dev->ipmi_requests > 0) {
+ msleep(&dev->ipmi_requests, &sc->ipmi_lock, PWAIT,
+ "ipmidrain", 0);
+ ipmi_purge_completed_requests(dev);
+ }
+ }
- sc = dev->si_drv1;
+#ifdef CLONING
+ /* Detach this sub-device from the main driver. */
+ bit = minor(cdev) % 32;
+ sc->ipmi_cdev_mask &= ~(1 << bit);
+ TAILQ_REMOVE(&sc->ipmi_cdevs, dev, ipmi_link);
+ IPMI_UNLOCK(sc);
- sc->ipmi_refcnt = 0;
+ /* Cleanup. */
+ cdev->si_drv1 = NULL;
+ free(dev, M_IPMI);
+ destroy_dev(cdev);
+#else
+ dev->ipmi_open = 0;
+ IPMI_UNLOCK(sc);
+#endif
- return error;
+ return (0);
}
#ifdef IPMB
@@ -171,707 +211,384 @@
for (; len; len--) {
sum += *data++;
}
- return -sum;
+ return (-sum);
}
+/* XXX: Needs work */
static int
ipmi_ipmb_send_message(device_t dev, u_char channel, u_char netfn,
u_char command, u_char seq, u_char *data, int data_len)
{
- u_char *temp;
struct ipmi_softc *sc = device_get_softc(dev);
+ struct ipmi_request *req;
+ u_char slave_addr = 0x52;
int error;
- u_char slave_addr = 0x52;
- temp = malloc(data_len + 10, M_IPMI, M_WAITOK);
- bzero(temp, data_len + 10);
- temp[0] = IPMI_APP_REQUEST << 2;
- temp[1] = IPMI_SEND_MSG;
- temp[2] = channel;
- temp[3] = slave_addr;
- temp[4] = netfn << 2;
- temp[5] = ipmi_ipmb_check_sum(&temp[3], 2);
- temp[6] = sc->ipmi_address;
- temp[7] = seq << 2 | sc->ipmi_lun;
- temp[8] = command;
+ req = ipmi_alloc_driver_request(IPMI_ADDR(IPMI_APP_REQUEST, 0),
+ IPMI_SEND_MSG, data_len + 8, 0);
+ req->ir_request[0] = channel;
+ req->ir_request[1] = slave_addr;
+ req->ir_request[2] = IPMI_ADDR(netfn, 0);
+ req->ir_request[3] = ipmi_ipmb_checksum(&req->ir_request[1], 2);
+ req->ir_request[4] = sc->ipmi_address;
+ req->ir_request[5] = IPMI_ADDR(seq, sc->ipmi_lun);
+ req->ir_request[6] = command;
- bcopy(data, &temp[9], data_len);
- temp[data_len + 9] = ipmi_ipmb_check(&temp[6], data_len + 3);
- ipmi_write(sc->ipmi_dev, temp, data_len + 9);
- free(temp, M_IPMI);
+ bcopy(data, &req->ir_request[7], data_len);
+ temp[data_len + 7] = ipmi_ipmb_checksum(&req->ir_request[4],
+ data_len + 3);
- while (!ipmi_ready_to_read(dev))
- DELAY(1000);
- temp = malloc(IPMI_MAX_RX, M_IPMI, M_WAITOK);
- bzero(temp, IPMI_MAX_RX);
- error = ipmi_read(dev, temp, IPMI_MAX_RX);
- free(temp, M_IPMI);
+ ipmi_submit_driver_request(sc, req);
+ error = req->ir_error;
+ ipmi_free_request(req);
- return error;
+ return (error);
}
static int
-ipmi_handle_attn(device_t dev)
+ipmi_handle_attn(struct ipmi_softc *sc)
{
- u_char temp[IPMI_MAX_RX];
- struct ipmi_softc *sc = device_get_softc(dev);
+ struct ipmi_request *req;
int error;
device_printf(sc->ipmi_dev, "BMC has a message\n");
- temp[0] = IPMI_APP_REQUEST << 2;
- temp[1] = IPMI_GET_MSG_FLAGS;
- ipmi_write(sc->ipmi_dev, temp, 2);
- while (!ipmi_ready_to_read(dev))
- DELAY(1000);
- bzero(temp, IPMI_MAX_RX);
- error = ipmi_read(dev, temp, IPMI_MAX_RX);
+ req = ipmi_alloc_driver_request(IPMI_ADDR(IPMI_APP_REQUEST, 0),
+ IPMI_GET_MSG_FLAGS, 0, 1);
+
+ ipmi_submit_driver_request(sc, req);
- if (temp[2] == 0) {
- if (temp[3] & IPMI_MSG_BUFFER_FULL) {
+ if (req->ir_error == 0 && req->ir_compcode == 0) {
+ if (req->ir_reply[0] & IPMI_MSG_BUFFER_FULL) {
device_printf(sc->ipmi_dev, "message buffer full");
}
- if (temp[3] & IPMI_WDT_PRE_TIMEOUT) {
+ if (req->ir_reply[0] & IPMI_WDT_PRE_TIMEOUT) {
device_printf(sc->ipmi_dev,
"watchdog about to go off");
}
- if (temp[3] & IPMI_MSG_AVAILABLE) {
- temp[0] = IPMI_APP_REQUEST << 2;
- temp[1] = IPMI_GET_MSG;
- ipmi_write(sc->ipmi_dev, temp, 2);
- while (!ipmi_ready_to_read(dev))
- DELAY(1000);
- bzero(temp, IPMI_MAX_RX);
- error = ipmi_read(dev, temp, IPMI_MAX_RX);
+ if (req->ir_reply[0] & IPMI_MSG_AVAILABLE) {
+ ipmi_free_request(req);
+
+ req = ipmi_alloc_driver_request(
+ IPMI_ADDR(IPMI_APP_REQUEST, 0), IPMI_GET_MSG, 0,
+ 16);
device_printf(sc->ipmi_dev, "throw out message ");
dump_buf(temp, 16);
}
- } else
- return -1;
- return error;
+ }
+ error = req->ir_error;
+ ipmi_free_request(req);
+
+ return (error);
}
#endif
-static int
-ipmi_ready_to_read(device_t dev)
-{
- struct ipmi_softc *sc = device_get_softc(dev);
- int status, flags;
-
- if (sc->ipmi_bios_info.smic_mode) {
- flags = INB(sc, sc->ipmi_smic_flags);
-#ifdef IPMB
- if (flags & SMIC_STATUS_SMS_ATN) {
- ipmi_handle_attn(dev);
- return 0;
- }
-#endif
- if (flags & SMIC_STATUS_RX_RDY)
- return 1;
- } else if (sc->ipmi_bios_info.kcs_mode) {
- status = INB(sc, sc->ipmi_kcs_status_reg);
-#ifdef IPMB
- if (status & KCS_STATUS_SMS_ATN) {
- ipmi_handle_attn(dev);
- return 0;
- }
+#ifdef IPMICTL_SEND_COMMAND_32
+#define PTRIN(p) ((void *)(uintptr_t)(p))
+#define PTROUT(p) ((uintptr_t)(p))
#endif
- if (status & KCS_STATUS_OBF)
- return 1;
- } else {
- device_printf(dev,"Unsupported mode\n");
- }
-
- return 0;
-}
-void
-ipmi_intr(void *arg) {
- device_t dev = arg;
-
- ipmi_check_read(dev);
-}
-
-static void
-ipmi_check_read(device_t dev){
- struct ipmi_softc *sc = device_get_softc(dev);
- struct ipmi_done_list *item;
- int status;
- u_char *temp;
-
- if (!sc->ipmi_requests)
- return;
-
- untimeout((timeout_t *)ipmi_check_read, dev, sc->ipmi_timeout_handle);
-
- if(ipmi_ready_to_read(dev)) {
- sc->ipmi_requests--;
- temp = malloc(IPMI_MAX_RX, M_IPMI, M_WAITOK);
- bzero(temp, IPMI_MAX_RX);
- status = ipmi_read(dev, temp, IPMI_MAX_RX);
- item = malloc(sizeof(struct ipmi_done_list), M_IPMI, M_WAITOK);
- bzero(item, sizeof(struct ipmi_done_list));
- item->data = temp;
- item->len = status;
- if (ticks - sc->ipmi_timestamp > MAX_TIMEOUT) {
- device_printf(dev, "read timeout when ready\n");
- TAILQ_INSERT_TAIL(&sc->ipmi_done, item, list);
- selwakeup(&sc->ipmi_select);
- } else if (status) {
- TAILQ_INSERT_TAIL(&sc->ipmi_done, item, list);
- selwakeup(&sc->ipmi_select);
- }
- } else {
- if (ticks - sc->ipmi_timestamp > MAX_TIMEOUT) {
- sc->ipmi_requests--;
- device_printf(dev, "read timeout when not ready\n");
- temp = malloc(IPMI_MAX_RX, M_IPMI, M_WAITOK);
- bzero(temp, IPMI_MAX_RX);
- sc->ipmi_busy = 0;
- wakeup(&sc->ipmi_busy);
- status = -1;
- item = malloc(sizeof(struct ipmi_done_list),
- M_IPMI, M_WAITOK);
- bzero(item, sizeof(struct ipmi_done_list));
- item->data = temp;
- item->len = status;
- TAILQ_INSERT_TAIL(&sc->ipmi_done, item, list);
- selwakeup(&sc->ipmi_select);
- }
- }
- if (sc->ipmi_requests)
- sc->ipmi_timeout_handle
- = timeout((timeout_t *)ipmi_check_read, dev, hz/30);
-}
-
static int
-ipmi_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data,
+ipmi_ioctl(struct cdev *cdev, u_long cmd, caddr_t data,
int flags, struct thread *td)
{
struct ipmi_softc *sc;
+ struct ipmi_device *dev;
+ struct ipmi_request *kreq;
struct ipmi_req *req = (struct ipmi_req *)data;
struct ipmi_recv *recv = (struct ipmi_recv *)data;
struct ipmi_addr addr;
- struct ipmi_done_list *item;
- u_char *temp;
+#ifdef IPMICTL_SEND_COMMAND_32
+ struct ipmi_req32 *req32 = (struct ipmi_req32 *)data;
+ struct ipmi_recv32 *recv32 = (struct ipmi_recv32 *)data;
+ union {
+ struct ipmi_req req;
+ struct ipmi_recv recv;
+ } thunk32;
+#endif
int error, len;
- sc = dev->si_drv1;
+ dev = cdev->si_drv1;
+ sc = dev->ipmi_softc;
+
+#ifdef IPMICTL_SEND_COMMAND_32
+ /* Convert 32-bit structures to native. */
+ switch (cmd) {
+ case IPMICTL_SEND_COMMAND_32:
+ req = &thunk32.req;
+ req->addr = PTRIN(req32->addr);
+ req->addr_len = req32->addr_len;
+ req->msgid = req32->msgid;
+ req->msg.netfn = req32->msg.netfn;
+ req->msg.cmd = req32->msg.cmd;
+ req->msg.data_len = req32->msg.data_len;
+ req->msg.data = PTRIN(req32->msg.data);
+ break;
+ case IPMICTL_RECEIVE_MSG_TRUNC_32:
+ case IPMICTL_RECEIVE_MSG_32:
+ recv = &thunk32.recv;
+ recv->addr = PTRIN(recv32->addr);
+ recv->addr_len = recv32->addr_len;
+ recv->msg.data_len = recv32->msg.data_len;
+ recv->msg.data = PTRIN(recv32->msg.data);
+ break;
+ }
+#endif
switch (cmd) {
+#ifdef IPMICTL_SEND_COMMAND_32
+ case IPMICTL_SEND_COMMAND_32:
+#endif
case IPMICTL_SEND_COMMAND:
+ /*
+ * XXX: Need to add proper handling of this.
>>> TRUNCATED FOR MAIL (1000 lines) <<<
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 15:36:03 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 1E79716A40F; Sun, 24 Sep 2006 15:36:03 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id C807616A415
for ; Sun, 24 Sep 2006 15:36:02 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 9304343D45
for ; Sun, 24 Sep 2006 15:36:02 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OFa2UI036499
for ; Sun, 24 Sep 2006 15:36:02 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OFa2vf036496
for perforce@freebsd.org; Sun, 24 Sep 2006 15:36:02 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 15:36:02 GMT
Message-Id: <200609241536.k8OFa2vf036496@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106602 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 15:36:03 -0000
http://perforce.freebsd.org/chv.cgi?CH=106602
Change 106602 by rwatson@rwatson_peppercorn on 2006/09/24 15:35:32
Remove audit_warn todo item for generating an event on rotate, it's
done; add one for documenting the list of events audit_warn will
see.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/TODO#8 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/TODO#8 (text+ko) ====
@@ -17,10 +17,7 @@
just at the beginning of a record. This will make it easier to use
praudit in test suites processing single-token files without header and
trailer context.
-- Teach auditd how to notify a script when it is done with trail files so
- that the script can archive them, compress them, delete them, whatever.
- It should walk any trail files found at startup also, assuming it
- successfully registers.
- Put hostname in trail file name.
+- Document audit_warn event arguments.
-$P4: //depot/projects/trustedbsd/openbsm/TODO#7 $
+$P4: //depot/projects/trustedbsd/openbsm/TODO#8 $
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 15:37:05 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 1146516A40F; Sun, 24 Sep 2006 15:37:05 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id E183116A417
for ; Sun, 24 Sep 2006 15:37:04 +0000 (UTC)
(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 7598D43D45
for ; Sun, 24 Sep 2006 15:37:04 +0000 (GMT)
(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OFb4N7036651
for ; Sun, 24 Sep 2006 15:37:04 GMT
(envelope-from csjp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OFb4MB036648
for perforce@freebsd.org; Sun, 24 Sep 2006 15:37:04 GMT
(envelope-from csjp@freebsd.org)
Date: Sun, 24 Sep 2006 15:37:04 GMT
Message-Id: <200609241537.k8OFb4MB036648@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
csjp@freebsd.org using -f
From: "Christian S.J. Peron"
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106603 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 15:37:05 -0000
http://perforce.freebsd.org/chv.cgi?CH=106603
Change 106603 by csjp@csjp_xor on 2006/09/24 15:36:33
Add support for regular expression based pathname matching. This should be
functionally equivalent to how the Solaris auditreduce handles things.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.1#12 edit
.. //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#17 edit
.. //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.h#5 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.1#12 (text+ko) ====
@@ -25,7 +25,7 @@
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.1#11 $
+.\" $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.1#12 $
.\"
.Dd January 24, 2004
.Dt AUDITREDUCE 1
@@ -105,12 +105,17 @@
.It Fl o Ar object=value
.Bl -tag -width Ds
.It Nm file
-Select records containing the given path name.
-file="/usr" matches paths
-starting with
-.Pa usr .
-file="~/usr" matches paths not starting with
-.Pa usr .
+Select records containing path tokens, where the pathname matches
+one of the comma delimited extended regular expression contained in
+given specification.
+Regular expressions which are prefixed with a tilde (~) are excluded
+from the search results.
+These extended regular expressions are processed from left to right,
+and a path will either be selected or deslected based on the first match.
+.Pp
+Since commas are used to delimit the regular expressions, a backslash (\\)
+character should be used to escape the comma if it's a part of the search
+pattern.
.It Nm msgqid
Select records containing the given message queue id.
.It Nm pid
@@ -141,6 +146,25 @@
file, or via standard output to the
.Xr praudit 1
command.
+.Pp
+Select all records containing a path token where the pathname contains
+.Pa /etc/master.passwd
+.Pp
+.Nm
+-ofile="/etc/master.passwd" /var/audit/20031016184719.20031017122634
+.Pp
+Select all records containing path tokens, where the pathname is a TTY
+device:
+.Pp
+.Nm
+-ofile="/dev/tty[a-zA-Z][0-9]+" /var/audit/20031016184719.20031017122634
+.Pp
+Select all records containing path tokens, where the pathname is a TTY
+except for
+.Pa /dev/ttyp2
+.Pp
+.Nm
+-ofile="~/dev/ttyp2,/dev/tty[a-zA-Z][0-9]+" /var/audit/20031016184719.20031017122634
.Sh SEE ALSO
.Xr praudit 1 ,
.Xr audit_control 5 ,
==== //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#17 (text+ko) ====
@@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#16 $
+ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#17 $
*/
/*
@@ -40,6 +40,7 @@
* XXX the records present within the file and between the files themselves
*/
+#include
#include
#include
@@ -51,9 +52,14 @@
#include
#include
#include
+#include
+#include
#include "auditreduce.h"
+static TAILQ_HEAD(tailhead, re_entry) re_head =
+ TAILQ_HEAD_INITIALIZER(re_head);
+
extern char *optarg;
extern int optind, optopt, opterr,optreset;
@@ -81,6 +87,53 @@
static uint32_t opttochk = 0;
static void
+parse_regexp(char *re_string)
+{
+ char *orig, *copy, re_error[64];
+ struct re_entry *rep;
+ int error, nstrs, i, len;
+
+ copy = strdup(re_string);
+ orig = copy;
+ len = strlen(copy);
+ for (nstrs = 0, i = 0; i < len; i++) {
+ if (copy[i] == ',' && i > 0) {
+ if (copy[i - 1] == '\\')
+ strcpy(©[i - 1], ©[i]);
+ else {
+ nstrs++;
+ copy[i] = '\0';
+ }
+ }
+ }
+ TAILQ_INIT(&re_head);
+ for (i = 0; i < nstrs + 1; i++) {
+ rep = calloc(1, sizeof(*rep));
+ if (rep == NULL) {
+ (void) fprintf(stderr, "calloc: %s\n",
+ strerror(errno));
+ exit(1);
+ }
+ if (*copy == '~') {
+ copy++;
+ rep->re_negate = 1;
+ }
+ rep->re_pattern = strdup(copy);
+ error = regcomp(&rep->re_regexp, rep->re_pattern,
+ REG_EXTENDED | REG_NOSUB);
+ if (error != 0) {
+ regerror(error, &rep->re_regexp, re_error, 64);
+ (void) fprintf(stderr, "regcomp: %s\n", re_error);
+ exit(1);
+ }
+ TAILQ_INSERT_TAIL(&re_head, rep, re_glue);
+ len = strlen(copy);
+ copy += len + 1;
+ }
+ free(orig);
+}
+
+static void
usage(const char *msg)
{
fprintf(stderr, "%s\n", msg);
@@ -258,23 +311,20 @@
static int
select_filepath(char *path, uint32_t *optchkd)
{
- char *loc;
+ struct re_entry *rep;
+ int match;
SETOPT((*optchkd), OPT_of);
+ match = 1;
if (ISOPTSET(opttochk, OPT_of)) {
- if (p_fileobj[0] == '~') {
- /* Object should not be in path. */
- loc = strstr(path, p_fileobj + 1);
- if ((loc != NULL) && (loc == path))
- return (0);
- } else {
- /* Object should be in path. */
- loc = strstr(path, p_fileobj);
- if ((loc == NULL) || (loc != path))
- return (0);
+ match = 0;
+ TAILQ_FOREACH(rep, &re_head, re_glue) {
+ if (regexec(&rep->re_regexp, path, 0, NULL,
+ 0) != REG_NOMATCH)
+ return (!rep->re_negate);
}
}
- return (1);
+ return (match);
}
/*
@@ -525,6 +575,7 @@
if (!strcmp(name, FILEOBJ)) {
p_fileobj = val;
+ parse_regexp(val);
SETOPT(opttochk, OPT_of);
} else if (!strcmp(name, MSGQIDOBJ)) {
p_msgqobj = val;
==== //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.h#5 (text+ko) ====
@@ -26,13 +26,20 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.h#4 $
+ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.h#5 $
*/
#ifndef _AUDITREDUCE_H_
#define _AUDITREDUCE_H_
+struct re_entry {
+ char *re_pattern;
+ int re_negate;
+ regex_t re_regexp;
+ TAILQ_ENTRY(re_entry) re_glue;
+};
+
#define OPT_a 0x00000001
#define OPT_b 0x00000002
#define OPT_c 0x00000004
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 15:41:10 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 442F616A40F; Sun, 24 Sep 2006 15:41:10 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 07B1E16A407
for ; Sun, 24 Sep 2006 15:41:10 +0000 (UTC)
(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id C8CBB43D49
for ; Sun, 24 Sep 2006 15:41:09 +0000 (GMT)
(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OFf933036912
for ; Sun, 24 Sep 2006 15:41:09 GMT
(envelope-from csjp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OFf9SL036909
for perforce@freebsd.org; Sun, 24 Sep 2006 15:41:09 GMT
(envelope-from csjp@freebsd.org)
Date: Sun, 24 Sep 2006 15:41:09 GMT
Message-Id: <200609241541.k8OFf9SL036909@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
csjp@freebsd.org using -f
From: "Christian S.J. Peron"
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106604 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 15:41:10 -0000
http://perforce.freebsd.org/chv.cgi?CH=106604
Change 106604 by csjp@csjp_xor on 2006/09/24 15:41:03
Update HISTORY with the new auditreduce pathname functionality.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/HISTORY#38 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/HISTORY#38 (text+ko) ====
@@ -11,6 +11,10 @@
line; this was the documented behavior previously, but it was not
implemented. Be more specific in auditreduce(1)'s examples section about
what might be done with the output of auditreduce.
+- auditreduce(1) now uses regular expressions for pathname matching. Users can
+ now supply one or more (comma delimited) regular expressions for searching
+ the pathnames. If one of the regular expressions is prefixed with a tilde
+ (~), and a path matches, it will be excluded from the search results.
OpenBSM 1.0 alpha 11
@@ -257,4 +261,4 @@
to support reloading of kernel event table.
- Allow comments in /etc/security configuration files.
-$P4: //depot/projects/trustedbsd/openbsm/HISTORY#37 $
+$P4: //depot/projects/trustedbsd/openbsm/HISTORY#38 $
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 15:46:17 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id F270416A417; Sun, 24 Sep 2006 15:46:16 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id C564116A403
for ; Sun, 24 Sep 2006 15:46:16 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 902AB43D4C
for ; Sun, 24 Sep 2006 15:46:16 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OFkG9I037362
for ; Sun, 24 Sep 2006 15:46:16 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OFkGDq037359
for perforce@freebsd.org; Sun, 24 Sep 2006 15:46:16 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 15:46:16 GMT
Message-Id: <200609241546.k8OFkGDq037359@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106605 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 15:46:17 -0000
http://perforce.freebsd.org/chv.cgi?CH=106605
Change 106605 by rwatson@rwatson_lethe on 2006/09/24 15:45:34
Use config.h to determine which queue.h to include; this allows
auditreduce's regexp code to compile on Linux again.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#18 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#18 (text+ko) ====
@@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#17 $
+ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#18 $
*/
/*
@@ -40,7 +40,13 @@
* XXX the records present within the file and between the files themselves
*/
+#include
+#ifdef HAVE_FULL_QUEUE_H
#include
+#else
+#include
+#endif
+
#include
#include
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 18:19:31 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 5DE1616A415; Sun, 24 Sep 2006 18:19:31 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 205B516A40F
for ; Sun, 24 Sep 2006 18:19:31 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id DD17B43D58
for ; Sun, 24 Sep 2006 18:19:30 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OIJUr2056632
for ; Sun, 24 Sep 2006 18:19:30 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OIJUQv056629
for perforce@freebsd.org; Sun, 24 Sep 2006 18:19:30 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 18:19:30 GMT
Message-Id: <200609241819.k8OIJUQv056629@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106609 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 18:19:31 -0000
http://perforce.freebsd.org/chv.cgi?CH=106609
Change 106609 by rwatson@rwatson_fledge on 2006/09/24 18:19:09
Add history item about new audit_warn event.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/HISTORY#39 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/HISTORY#39 (text+ko) ====
@@ -11,6 +11,9 @@
line; this was the documented behavior previously, but it was not
implemented. Be more specific in auditreduce(1)'s examples section about
what might be done with the output of auditreduce.
+- Add audit_warn(5) closefile event so that administrators can hook
+ termination of an audit trail file. For example, this might be used to
+ compress the trail file after it is closed.
- auditreduce(1) now uses regular expressions for pathname matching. Users can
now supply one or more (comma delimited) regular expressions for searching
the pathnames. If one of the regular expressions is prefixed with a tilde
@@ -261,4 +264,4 @@
to support reloading of kernel event table.
- Allow comments in /etc/security configuration files.
-$P4: //depot/projects/trustedbsd/openbsm/HISTORY#38 $
+$P4: //depot/projects/trustedbsd/openbsm/HISTORY#39 $
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 19:23:55 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 2CACC16A415; Sun, 24 Sep 2006 19:23:55 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 01D1A16A40F
for ; Sun, 24 Sep 2006 19:23:55 +0000 (UTC)
(envelope-from mjacob@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id A815143D46
for ; Sun, 24 Sep 2006 19:23:54 +0000 (GMT)
(envelope-from mjacob@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OJNsd4062951
for ; Sun, 24 Sep 2006 19:23:54 GMT
(envelope-from mjacob@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OJNs6Q062948
for perforce@freebsd.org; Sun, 24 Sep 2006 19:23:54 GMT
(envelope-from mjacob@freebsd.org)
Date: Sun, 24 Sep 2006 19:23:54 GMT
Message-Id: <200609241923.k8OJNs6Q062948@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
mjacob@freebsd.org using -f
From: Matt Jacob
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106612 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 19:23:55 -0000
http://perforce.freebsd.org/chv.cgi?CH=106612
Change 106612 by mjacob@newisp on 2006/09/24 19:23:24
Fix compile errors at least.
Affected files ...
.. //depot/projects/newisp/dev/isp/isp_sbus.c#4 edit
Differences ...
==== //depot/projects/newisp/dev/isp/isp_sbus.c#4 (text+ko) ====
@@ -51,8 +51,10 @@
#include
-static uint32_t isp_sbus_rd_reg(ispsoftc_t *, int);
-static void isp_sbus_wr_reg(ispsoftc_t *, int, uint32_t);
+static uint32_t
+isp_sbus_rd_reg(ispsoftc_t *, int);
+static void
+isp_sbus_wr_reg(ispsoftc_t *, int, uint32_t);
static int
isp_sbus_rd_isr(ispsoftc_t *, uint32_t *, uint32_t *, uint32_t *);
static int isp_sbus_mbxdma(ispsoftc_t *);
@@ -394,7 +396,7 @@
isp_sbus_intr(void *arg)
{
ispsoftc_t *isp = arg;
- uint16_t isr, sema, mbox;
+ uint32_t isr, sema, mbox;
ISP_LOCK(isp);
isp->isp_intcnt++;
@@ -417,8 +419,7 @@
bus_space_read_2(sbc->sbus_st, sbc->sbus_sh, off)
static int
-isp_sbus_rd_isr(ispsoftc_t *isp, uint16_t *isrp,
- uint16_t *semap, uint16_t *mbp)
+isp_sbus_rd_isr(ispsoftc_t *isp, uint32_t *isrp, uint32_t *semap, uint32_t *mbp)
{
struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
uint16_t isr, sema;
@@ -438,7 +439,7 @@
return (1);
}
-static uint16_t
+static uint32_t
isp_sbus_rd_reg(ispsoftc_t *isp, int regoff)
{
uint16_t rval;
@@ -452,7 +453,7 @@
}
static void
-isp_sbus_wr_reg(ispsoftc_t *isp, int regoff, uint16_t val)
+isp_sbus_wr_reg(ispsoftc_t *isp, int regoff, uint32_t val)
{
struct isp_sbussoftc *sbs = (struct isp_sbussoftc *) isp;
int offset = sbs->sbus_poff[(regoff & _BLK_REG_MASK) >> _BLK_REG_SHFT];
@@ -605,8 +606,8 @@
ispsoftc_t *isp;
void *cmd_token;
void *rq;
- uint16_t *nxtip;
- uint16_t optr;
+ uint32_t *nxtip;
+ uint32_t optr;
int error;
} mush_t;
@@ -721,7 +722,7 @@
static int
isp_sbus_dmasetup(ispsoftc_t *isp, struct ccb_scsiio *csio, ispreq_t *rq,
- uint16_t *nxtip, uint16_t optr)
+ uint32_t *nxtip, uint32_t optr)
{
struct isp_sbussoftc *sbs = (struct isp_sbussoftc *)isp;
ispreq_t *qep;
@@ -822,7 +823,7 @@
}
static void
-isp_sbus_dmateardown(ispsoftc_t *isp, XS_T *xs, uint16_t handle)
+isp_sbus_dmateardown(ispsoftc_t *isp, XS_T *xs, uint32_t handle)
{
struct isp_sbussoftc *sbs = (struct isp_sbussoftc *)isp;
bus_dmamap_t *dp = &sbs->dmaps[isp_handle_index(handle)];
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 20:28:17 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 86AC016A415; Sun, 24 Sep 2006 20:28:17 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 3B2D316A403
for ; Sun, 24 Sep 2006 20:28:17 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 01C0943D4C
for ; Sun, 24 Sep 2006 20:28:17 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OKSGEa067658
for ; Sun, 24 Sep 2006 20:28:16 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OKSGWp067655
for perforce@freebsd.org; Sun, 24 Sep 2006 20:28:16 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 20:28:16 GMT
Message-Id: <200609242028.k8OKSGWp067655@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106616 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 20:28:17 -0000
http://perforce.freebsd.org/chv.cgi?CH=106616
Change 106616 by rwatson@rwatson_fledge on 2006/09/24 20:27:29
OpenBSM 1.0 alpha 12 on the web site.
Affected files ...
.. //depot/projects/trustedbsd/www/downloads/openbsm-1.0-alpha12.tgz#1 add
.. //depot/projects/trustedbsd/www/openbsm.page#17 edit
Differences ...
==== //depot/projects/trustedbsd/www/openbsm.page#17 (text+ko) ====
@@ -29,7 +29,7 @@
- $P4: //depot/projects/trustedbsd/www/openbsm.page#16 $
+ $P4: //depot/projects/trustedbsd/www/openbsm.page#17 $
@@ -120,6 +120,17 @@
Please see the file README present in the OpenBSM distribution for
build and installation instructions.
+ 2006-09-24 - OpenBSM 1.0 alpha 12 release is a test release of the
+ OpenBSM code base, and matches what is present in FreeBSD CVS at
+ this date.
+ In this revision, an audit_control(5) filesz configuration
+ parameter is added in order to support automated rotation of audit
+ trails based on file size, regular expression matching for paths is
+ added to auditreduce, an audit_warn event is generated on rotation,
+ and a number of other bug fixes and documentation improvements are
+ present.
+ Download (480K).
+
2006-09-20 - OpenBSM 1.0 alpha 11 release is a test release of the
OpenBSM code base, and matches what is present in FreeBSD CVS at
this date.
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 20:31:26 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id CD45516A47E; Sun, 24 Sep 2006 20:31:25 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 8ABA716A407
for ; Sun, 24 Sep 2006 20:31:25 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 369F943D6D
for ; Sun, 24 Sep 2006 20:31:22 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OKVM69067855
for ; Sun, 24 Sep 2006 20:31:22 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OKVL4X067852
for perforce@freebsd.org; Sun, 24 Sep 2006 20:31:21 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 20:31:21 GMT
Message-Id: <200609242031.k8OKVL4X067852@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106617 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 20:31:26 -0000
http://perforce.freebsd.org/chv.cgi?CH=106617
Change 106617 by rwatson@rwatson_zoo on 2006/09/24 20:30:27
Integrate OpenBSM 1.0 alpha 12 into TrustedBSD audit3 branch.
Affected files ...
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#16 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/TODO#11 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/VERSION#14 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/audit_warn.c#5 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.c#16 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.h#5 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.1#8 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.c#9 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.h#4 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bsm/libbsm.h#19 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/configure#14 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#15 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_control#7 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_event#17 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/au_control.3#6 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#11 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/libbsm.3#9 integrate
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/man/audit_control.5#9 integrate
.. //depot/projects/trustedbsd/audit3/sys/bsm/audit_kevents.h#29 integrate
Differences ...
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#16 (text+ko) ====
@@ -1,3 +1,24 @@
+OpenBSM 1.0 alpha 12
+
+- Correct bug in auditreduce which prevented the -c option from working
+ correctly when the user specifies to process successful or failed events.
+ The problem stemmed from not having access to the return token at the time
+ the initial preselection occurred, but now a second preselection process
+ occurs while processing the return token.
+- getacfilesz(3) API added to read new audit_control(5) filesz setting,
+ which auditd(8) now sets the kernel audit trail rotation size to.
+- auditreduce(1) now uses stdin if no file names are specified on the command
+ line; this was the documented behavior previously, but it was not
+ implemented. Be more specific in auditreduce(1)'s examples section about
+ what might be done with the output of auditreduce.
+- Add audit_warn(5) closefile event so that administrators can hook
+ termination of an audit trail file. For example, this might be used to
+ compress the trail file after it is closed.
+- auditreduce(1) now uses regular expressions for pathname matching. Users can
+ now supply one or more (comma delimited) regular expressions for searching
+ the pathnames. If one of the regular expressions is prefixed with a tilde
+ (~), and a path matches, it will be excluded from the search results.
+
OpenBSM 1.0 alpha 11
- Reclassify certain read/write operations as having no class rather than the
@@ -243,4 +264,4 @@
to support reloading of kernel event table.
- Allow comments in /etc/security configuration files.
-$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#15 $
+$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/HISTORY#16 $
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/TODO#11 (text+ko) ====
@@ -17,10 +17,7 @@
just at the beginning of a record. This will make it easier to use
praudit in test suites processing single-token files without header and
trailer context.
-- Teach auditd how to notify a script when it is done with trail files so
- that the script can archive them, compress them, delete them, whatever.
- It should walk any trail files found at startup also, assuming it
- successfully registers.
- Put hostname in trail file name.
+- Document audit_warn event arguments.
-$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/TODO#10 $
+$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/TODO#11 $
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/VERSION#14 (text+ko) ====
@@ -1,1 +1,1 @@
-OPENBSM_1_0_ALPHA_11
+OPENBSM_1_0_ALPHA_12
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/audit_warn.c#5 (text+ko) ====
@@ -30,7 +30,7 @@
*
* @APPLE_BSD_LICENSE_HEADER_END@
*
- * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/audit_warn.c#4 $
+ * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/audit_warn.c#5 $
*/
#include
@@ -125,6 +125,21 @@
}
/*
+ * Indicate that a trail file has been closed, so can now be post-processed.
+ */
+int
+audit_warn_closefile(char *filename)
+{
+ char *args[3];
+
+ args[0] = CLOSEFILE_WARN;
+ args[1] = filename;
+ args[2] = NULL;
+
+ return (auditwarnlog(args));
+}
+
+/*
* Indicates that the audit deammn is already running
*/
int
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.c#16 (text+ko) ====
@@ -30,7 +30,7 @@
*
* @APPLE_BSD_LICENSE_HEADER_END@
*
- * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.c#15 $
+ * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.c#16 $
*/
#include
@@ -163,9 +163,11 @@
syslog(LOG_ERR,
"Could not rename %s to %s: %m", oldname,
lastfile);
- else
+ else {
syslog(LOG_INFO, "renamed %s to %s",
oldname, lastfile);
+ audit_warn_closefile(lastfile);
+ }
}
free(lastfile);
free(oldname);
@@ -727,6 +729,8 @@
char naeventstr[NA_EVENT_STR_SIZE];
char polstr[POL_STR_SIZE];
long policy;
+ au_fstat_t au_fstat;
+ size_t filesz;
/*
* Process the audit event file, obtaining a class mapping for each
@@ -806,6 +810,17 @@
"Failed to set default audit policy: %m");
}
+ /*
+ * Set trail rotation size.
+ */
+ if (getacfilesz(&filesz) == 0) {
+ bzero(&au_fstat, sizeof(au_fstat));
+ au_fstat.af_filesz = filesz;
+ if (auditon(A_SETFSIZE, &au_fstat, sizeof(au_fstat)) < 0)
+ syslog(LOG_ERR, "Failed to set filesz: %m");
+ } else
+ syslog(LOG_ERR, "Failed to obtain filesz: %m");
+
return (0);
}
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.h#5 (text+ko) ====
@@ -30,7 +30,7 @@
*
* @APPLE_BSD_LICENSE_HEADER_END@
*
- * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.h#4 $
+ * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditd/auditd.h#5 $
*/
#ifndef _AUDITD_H_
@@ -62,6 +62,7 @@
#define HARDLIM_ALL_WARN "allhard"
#define SOFTLIM_ALL_WARN "allsoft"
#define AUDITOFF_WARN "auditoff"
+#define CLOSEFILE_WARN "closefile"
#define EBUSY_WARN "ebusy"
#define GETACDIR_WARN "getacdir"
#define HARDLIM_WARN "hard"
@@ -76,6 +77,7 @@
int audit_warn_allhard(int count);
int audit_warn_allsoft(void);
int audit_warn_auditoff(void);
+int audit_warn_closefile(char *filename);
int audit_warn_ebusy(void);
int audit_warn_getacdir(char *filename);
int audit_warn_hard(char *filename);
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.1#8 (text+ko) ====
@@ -25,7 +25,7 @@
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.1#7 $
+.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.1#8 $
.\"
.Dd January 24, 2004
.Dt AUDITREDUCE 1
@@ -105,12 +105,17 @@
.It Fl o Ar object=value
.Bl -tag -width Ds
.It Nm file
-Select records containing the given path name.
-file="/usr" matches paths
-starting with
-.Pa usr .
-file="~/usr" matches paths not starting with
-.Pa usr .
+Select records containing path tokens, where the pathname matches
+one of the comma delimited extended regular expression contained in
+given specification.
+Regular expressions which are prefixed with a tilde (~) are excluded
+from the search results.
+These extended regular expressions are processed from left to right,
+and a path will either be selected or deslected based on the first match.
+.Pp
+Since commas are used to delimit the regular expressions, a backslash (\\)
+character should be used to escape the comma if it's a part of the search
+pattern.
.It Nm msgqid
Select records containing the given message queue id.
.It Nm pid
@@ -136,6 +141,30 @@
.Pp
.Nm
-m AUE_SETLOGIN /var/audit/20031016184719.20031017122634
+.Pp
+Output from the above command lines will typically be piped to a new trail
+file, or via standard output to the
+.Xr praudit 1
+command.
+.Pp
+Select all records containing a path token where the pathname contains
+.Pa /etc/master.passwd
+.Pp
+.Nm
+-ofile="/etc/master.passwd" /var/audit/20031016184719.20031017122634
+.Pp
+Select all records containing path tokens, where the pathname is a TTY
+device:
+.Pp
+.Nm
+-ofile="/dev/tty[a-zA-Z][0-9]+" /var/audit/20031016184719.20031017122634
+.Pp
+Select all records containing path tokens, where the pathname is a TTY
+except for
+.Pa /dev/ttyp2
+.Pp
+.Nm
+-ofile="~/dev/ttyp2,/dev/tty[a-zA-Z][0-9]+" /var/audit/20031016184719.20031017122634
.Sh SEE ALSO
.Xr praudit 1 ,
.Xr audit_control 5 ,
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.c#9 (text+ko) ====
@@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.c#8 $
+ * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.c#9 $
*/
/*
@@ -40,6 +40,13 @@
* XXX the records present within the file and between the files themselves
*/
+#include
+#ifdef HAVE_FULL_QUEUE_H
+#include
+#else
+#include
+#endif
+
#include
#include
@@ -51,9 +58,14 @@
#include
#include
#include
+#include
+#include
#include "auditreduce.h"
+static TAILQ_HEAD(tailhead, re_entry) re_head =
+ TAILQ_HEAD_INITIALIZER(re_head);
+
extern char *optarg;
extern int optind, optopt, opterr,optreset;
@@ -81,10 +93,57 @@
static uint32_t opttochk = 0;
static void
+parse_regexp(char *re_string)
+{
+ char *orig, *copy, re_error[64];
+ struct re_entry *rep;
+ int error, nstrs, i, len;
+
+ copy = strdup(re_string);
+ orig = copy;
+ len = strlen(copy);
+ for (nstrs = 0, i = 0; i < len; i++) {
+ if (copy[i] == ',' && i > 0) {
+ if (copy[i - 1] == '\\')
+ strcpy(©[i - 1], ©[i]);
+ else {
+ nstrs++;
+ copy[i] = '\0';
+ }
+ }
+ }
+ TAILQ_INIT(&re_head);
+ for (i = 0; i < nstrs + 1; i++) {
+ rep = calloc(1, sizeof(*rep));
+ if (rep == NULL) {
+ (void) fprintf(stderr, "calloc: %s\n",
+ strerror(errno));
+ exit(1);
+ }
+ if (*copy == '~') {
+ copy++;
+ rep->re_negate = 1;
+ }
+ rep->re_pattern = strdup(copy);
+ error = regcomp(&rep->re_regexp, rep->re_pattern,
+ REG_EXTENDED | REG_NOSUB);
+ if (error != 0) {
+ regerror(error, &rep->re_regexp, re_error, 64);
+ (void) fprintf(stderr, "regcomp: %s\n", re_error);
+ exit(1);
+ }
+ TAILQ_INSERT_TAIL(&re_head, rep, re_glue);
+ len = strlen(copy);
+ copy += len + 1;
+ }
+ free(orig);
+}
+
+static void
usage(const char *msg)
{
fprintf(stderr, "%s\n", msg);
- fprintf(stderr, "Usage: auditreduce [options] audit-trail-file [....] \n");
+ fprintf(stderr, "Usage: auditreduce [options] [file ...]\n");
fprintf(stderr, "\tOptions are : \n");
fprintf(stderr, "\t-A : all records\n");
fprintf(stderr, "\t-a YYYYMMDD[HH[[MM[SS]]] : after date\n");
@@ -258,23 +317,20 @@
static int
select_filepath(char *path, uint32_t *optchkd)
{
- char *loc;
+ struct re_entry *rep;
+ int match;
SETOPT((*optchkd), OPT_of);
+ match = 1;
if (ISOPTSET(opttochk, OPT_of)) {
- if (p_fileobj[0] == '~') {
- /* Object should not be in path. */
- loc = strstr(path, p_fileobj + 1);
- if ((loc != NULL) && (loc == path))
- return (0);
- } else {
- /* Object should be in path. */
- loc = strstr(path, p_fileobj);
- if ((loc == NULL) || (loc != path))
- return (0);
+ match = 0;
+ TAILQ_FOREACH(rep, &re_head, re_glue) {
+ if (regexec(&rep->re_regexp, path, 0, NULL,
+ 0) != REG_NOMATCH)
+ return (!rep->re_negate);
}
}
- return (1);
+ return (match);
}
/*
@@ -328,6 +384,24 @@
return (1);
}
+static int
+select_return32(tokenstr_t tok_ret32, tokenstr_t tok_hdr32, uint32_t *optchkd)
+{
+ int sorf;
+
+ SETOPT((*optchkd), (OPT_c));
+ if (tok_ret32.tt.ret32.status == 0)
+ sorf = AU_PRS_SUCCESS;
+ else
+ sorf = AU_PRS_FAILURE;
+ if (ISOPTSET(opttochk, OPT_c)) {
+ if (au_preselect(tok_hdr32.tt.hdr32.e_type, &maskp, sorf,
+ AU_PRS_USECACHE) != 1)
+ return (0);
+ }
+ return (1);
+}
+
/*
* Return 1 if checks for the the following succeed
* auid,
@@ -395,6 +469,7 @@
static int
select_records(FILE *fp)
{
+ tokenstr_t tok_hdr32_copy;
u_char *buf;
tokenstr_t tok;
int reclen;
@@ -423,6 +498,8 @@
case AU_HEADER_32_TOKEN:
selected = select_hdr32(tok,
&optchkd);
+ bcopy(&tok, &tok_hdr32_copy,
+ sizeof(tok));
break;
case AU_PROCESS_32_TOKEN:
@@ -451,6 +528,11 @@
tok.tt.path.path, &optchkd);
break;
+ case AU_RETURN_32_TOKEN:
+ selected = select_return32(tok,
+ tok_hdr32_copy, &optchkd);
+ break;
+
/*
* The following tokens dont have any relevant
* attributes that we can select upon.
@@ -465,7 +547,6 @@
case AU_IPCPERM_TOKEN:
case AU_IPORT_TOKEN:
case AU_OPAQUE_TOKEN:
- case AU_RETURN_32_TOKEN:
case AU_SEQ_TOKEN:
case AU_TEXT_TOKEN:
case AU_ARB_TOKEN:
@@ -500,6 +581,7 @@
if (!strcmp(name, FILEOBJ)) {
p_fileobj = val;
+ parse_regexp(val);
SETOPT(opttochk, OPT_of);
} else if (!strcmp(name, MSGQIDOBJ)) {
p_msgqobj = val;
@@ -679,8 +761,12 @@
argv += optind;
argc -= optind;
- if (argc == 0)
- usage("Filename needed");
+ if (argc == 0) {
+ if (select_records(stdin) == -1)
+ errx(EXIT_FAILURE,
+ "Couldn't select records from stdin");
+ exit(EXIT_SUCCESS);
+ }
/*
* XXX: We should actually be merging records here.
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.h#4 (text+ko) ====
@@ -26,13 +26,20 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.h#3 $
+ * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bin/auditreduce/auditreduce.h#4 $
*/
#ifndef _AUDITREDUCE_H_
#define _AUDITREDUCE_H_
+struct re_entry {
+ char *re_pattern;
+ int re_negate;
+ regex_t re_regexp;
+ TAILQ_ENTRY(re_entry) re_glue;
+};
+
#define OPT_a 0x00000001
#define OPT_b 0x00000002
#define OPT_c 0x00000004
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/bsm/libbsm.h#19 (text+ko) ====
@@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bsm/libbsm.h#18 $
+ * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/bsm/libbsm.h#19 $
*/
#ifndef _LIBBSM_H_
@@ -78,6 +78,7 @@
#define DIR_CONTROL_ENTRY "dir"
#define MINFREE_CONTROL_ENTRY "minfree"
+#define FILESZ_CONTROL_ENTRY "filesz"
#define FLAGS_CONTROL_ENTRY "flags"
#define NA_CONTROL_ENTRY "naflags"
#define POLICY_CONTROL_ENTRY "policy"
@@ -719,6 +720,7 @@
void endac(void);
int getacdir(char *name, int len);
int getacmin(int *min_val);
+int getacfilesz(size_t *size_val);
int getacflg(char *auditstr, int len);
int getacna(char *auditstr, int len);
int getacpol(char *auditstr, size_t len);
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/configure#14 (xtext) ====
@@ -1,7 +1,7 @@
#! /bin/sh
-# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#31 .
+# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#32 .
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for OpenBSM 1.0a11.
+# Generated by GNU Autoconf 2.59 for OpenBSM 1.0a12.
#
# Report bugs to .
#
@@ -424,8 +424,8 @@
# Identity of this package.
PACKAGE_NAME='OpenBSM'
PACKAGE_TARNAME='openbsm'
-PACKAGE_VERSION='1.0a11'
-PACKAGE_STRING='OpenBSM 1.0a11'
+PACKAGE_VERSION='1.0a12'
+PACKAGE_STRING='OpenBSM 1.0a12'
PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
ac_unique_file="bin/auditreduce/auditreduce.c"
@@ -955,7 +955,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures OpenBSM 1.0a11 to adapt to many kinds of systems.
+\`configure' configures OpenBSM 1.0a12 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1021,7 +1021,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of OpenBSM 1.0a11:";;
+ short | recursive ) echo "Configuration of OpenBSM 1.0a12:";;
esac
cat <<\_ACEOF
@@ -1162,7 +1162,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-OpenBSM configure 1.0a11
+OpenBSM configure 1.0a12
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1176,7 +1176,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by OpenBSM $as_me 1.0a11, which was
+It was created by OpenBSM $as_me 1.0a12, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -19278,7 +19278,7 @@
# Define the identity of the package.
PACKAGE=OpenBSM
- VERSION=1.0a11
+ VERSION=1.0a12
cat >>confdefs.h <<_ACEOF
@@ -23479,7 +23479,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by OpenBSM $as_me 1.0a11, which was
+This file was extended by OpenBSM $as_me 1.0a12, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -23542,7 +23542,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-OpenBSM config.status 1.0a11
+OpenBSM config.status 1.0a12
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#15 (text+ko) ====
@@ -2,8 +2,8 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT([OpenBSM], [1.0a11], [trustedbsd-audit@TrustesdBSD.org],[openbsm])
-AC_REVISION([$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#14 $])
+AC_INIT([OpenBSM], [1.0a12], [trustedbsd-audit@TrustesdBSD.org],[openbsm])
+AC_REVISION([$P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/configure.ac#15 $])
AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_HEADER([config/config.h])
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_control#7 (text+ko) ====
@@ -1,5 +1,5 @@
#
-# $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_control#6 $
+# $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_control#7 $
# $FreeBSD: src/contrib/openbsm/etc/audit_control,v 1.2 2006/03/26 01:44:35 rwatson Exp $
#
dir:/var/audit
@@ -7,3 +7,4 @@
minfree:20
naflags:lo
policy:cnt
+filesz:0
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_event#17 (text+ko) ====
@@ -1,5 +1,5 @@
#
-# $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_event#16 $
+# $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/etc/audit_event#17 $
# $FreeBSD: src/contrib/openbsm/etc/audit_event,v 1.3 2006/06/27 18:09:54 rwatson Exp $
#
0:AUE_NULL:indir system call:no
@@ -419,6 +419,10 @@
43114:AUE_KENV:kenv(8):ad
43115:AUE_JAIL_ATTACH:jail_attach(2):ad
43116:AUE_SYSCTL_WRITE:sysctl(3):ad
+43117:AUE_IOPERM:linux ioperm:ad
+43118:AUE_READDIR:readdir(3):no
+43119:AUE_IOPL:linux iopl:ad
+43120:AUE_VM86:linux vm86:pc
#
# User space system events.
#
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/au_control.3#6 (text+ko) ====
@@ -1,5 +1,5 @@
.\"-
-.\" Copyright (c) 2005 Robert N. M. Watson
+.\" Copyright (c) 2005-2006 Robert N. M. Watson
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/au_control.3#5 $
+.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/au_control.3#6 $
.\"
.Dd April 19, 2005
.Dt AU_CONTROL 3
@@ -33,6 +33,7 @@
.Nm endac ,
.Nm getacdir ,
.Nm getacmin ,
+.Nm getacfilesz ,
.Nm getacflg ,
.Nm getacna ,
.Nm getacpol ,
@@ -52,6 +53,8 @@
.Ft int
.Fn getacmin "int *min_val"
.Ft int
+.Fn getacfilesz "size_t *size_val"
+.Ft int
.Fn getacflg "char *auditstr" "int len"
.Ft int
.Fn getacna "char *auditstr" "int len"
@@ -88,6 +91,10 @@
.Va min_val
variable.
.Pp
+.Fn getacfilesz
+returns the audit trail rotation size in the passed size_t buffer
+.Fa size_val .
+.Pp
.Fn getacflg
returns the audit system flags via the the passed character buffer
.Va auditstr
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#11 (text+ko) ====
@@ -27,7 +27,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#10 $
+ * $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/bsm_control.c#11 $
*/
#include
@@ -396,6 +396,46 @@
}
/*
+ * Return the desired trail rotation size from the audit control file.
+ */
+int
+getacfilesz(size_t *filesz_val)
+{
+ char *filesz, *dummy;
+ long long ll;
+
+ pthread_mutex_lock(&mutex);
+ setac_locked();
+ if (getstrfromtype_locked(FILESZ_CONTROL_ENTRY, &filesz) < 0) {
+ pthread_mutex_unlock(&mutex);
+ return (-2);
+ }
+ if (filesz == NULL) {
+ pthread_mutex_unlock(&mutex);
+ errno = EINVAL;
+ return (1);
+ }
+ ll = strtoll(filesz, &dummy, 10);
+ if (*dummy != '\0') {
+ pthread_mutex_unlock(&mutex);
+ errno = EINVAL;
+ return (-1);
+ }
+ /*
+ * The file size must either be 0 or >= MIN_AUDIT_FILE_SIZE. 0
+ * indicates no rotation size.
+ */
+ if (ll < 0 || (ll > 0 && ll < MIN_AUDIT_FILE_SIZE)) {
+ pthread_mutex_unlock(&mutex);
+ errno = EINVAL;
+ return (-1);
+ }
+ *filesz_val = ll;
+ pthread_mutex_unlock(&mutex);
+ return (0);
+}
+
+/*
* Return the system audit value from the audit contol file.
*/
int
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/libbsm.3#9 (text+ko) ====
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/libbsm.3#8 $
+.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/libbsm/libbsm.3#9 $
.\"
.Dd April 19, 2005
.Dt LIBBSM 3
@@ -84,6 +84,7 @@
.Xr endac 3 ,
.Xr setac 3 ,
.Xr getacdir 3 ,
+.Xr getacfilesz 3 ,
.Xr getacflg 3 ,
.Xr getacmin 3 ,
.Xr getacna 3 ,
==== //depot/projects/trustedbsd/audit3/contrib/openbsm/man/audit_control.5#9 (text+ko) ====
@@ -1,4 +1,5 @@
.\" Copyright (c) 2004 Apple Computer, Inc.
+.\" Copyright (c) 2006 Robert N. M. Watson
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -25,7 +26,7 @@
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/man/audit_control.5#8 $
+.\" $P4: //depot/projects/trustedbsd/audit3/contrib/openbsm/man/audit_control.5#9 $
.\"
.Dd January 4, 2006
.Dt AUDIT_CONTROL 5
@@ -66,6 +67,12 @@
.It Va policy
A list of global audit policy flags specifying various behaviors, such as
fail stop, auditing of paths and arguments, etc.
+.It Va filesz
+Maximum trail size in bytes; if set to a non-0 value, the audit daemon will
+rotate the audit trail file at around this size.
+Sizes less than the minimum trail size (default of 512K) will be rejected as
+invalid.
+If 0, trail files will not be automatically rotated based on file size.
.El
.Sh AUDIT FLAGS
Audit flags are a comma-delimited list of audit classes as defined in the
@@ -78,12 +85,14 @@
The following prefixes may be used for each class:
.Pp
.Bl -tag -width Ds -compact -offset indent
+.It (none)
+Record both successful and failed events
.It +
Record successful events
.It -
Record failed events
.It ^
-Record both successful and failed events
+Record neither successful nor failed events
.It ^+
Do not record successful events
.It ^-
@@ -146,6 +155,7 @@
minfree:20
naflags:lo
policy:cnt
+filesz:0
.Ed
.Pp
The
@@ -156,7 +166,8 @@
.Va policy
parameter specifies that the system should neither fail stop nor suspend
processes when the audit store fills.
-will be audited.
+The trail file will not be automatically rotated by the audit daemon based on
+file size.
.Sh FILES
.Bl -tag -width "/etc/security/audit_control" -compact
.It Pa /etc/security/audit_control
==== //depot/projects/trustedbsd/audit3/sys/bsm/audit_kevents.h#29 (text+ko) ====
@@ -30,7 +30,7 @@
*
* @APPLE_BSD_LICENSE_HEADER_END@
*
- * $P4: //depot/projects/trustedbsd/audit3/sys/bsm/audit_kevents.h#28 $
+ * $P4: //depot/projects/trustedbsd/audit3/sys/bsm/audit_kevents.h#29 $
* $FreeBSD: src/sys/bsm/audit_kevents.h,v 1.7 2006/08/26 08:17:58 rwatson Exp $
*/
@@ -471,6 +471,10 @@
#define AUE_KENV 43114 /* FreeBSD. */
#define AUE_JAIL_ATTACH 43115 /* FreeBSD. */
#define AUE_SYSCTL_WRITE 43116 /* FreeBSD. */
+#define AUE_IOPERM 43117 /* Linux. */
+#define AUE_READDIR 43118 /* Linux. */
+#define AUE_IOPL 43119 /* Linux. */
+#define AUE_VM86 43120 /* Linux. */
/*
* Darwin BSM uses a number of AUE_O_* definitions, which are aliased to the
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 20:32:24 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 91F5916A415; Sun, 24 Sep 2006 20:32:24 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 586B216A403
for ; Sun, 24 Sep 2006 20:32:24 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 0C29943D46
for ; Sun, 24 Sep 2006 20:32:24 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OKWN07068100
for ; Sun, 24 Sep 2006 20:32:23 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OKWNaV068097
for perforce@freebsd.org; Sun, 24 Sep 2006 20:32:23 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 20:32:23 GMT
Message-Id: <200609242032.k8OKWNaV068097@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106618 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 20:32:24 -0000
http://perforce.freebsd.org/chv.cgi?CH=106618
Change 106618 by rwatson@rwatson_zoo on 2006/09/24 20:32:18
Match set of vendor deleted files in CVS for OpenBSM: don't
replicate some include files in both src/sys/bsm and
contrib/openbsm/bsm.
Affected files ...
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bsm/audit.h#19 delete
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bsm/audit_internal.h#13 delete
.. //depot/projects/trustedbsd/audit3/contrib/openbsm/bsm/audit_kevents.h#28 delete
Differences ...
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 21:07:09 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C78D916A412; Sun, 24 Sep 2006 21:07:09 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id A439A16A407
for ; Sun, 24 Sep 2006 21:07:09 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 58AFB43D45
for ; Sun, 24 Sep 2006 21:07:09 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8OL79gD082751
for ; Sun, 24 Sep 2006 21:07:09 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8OL79LB082748
for perforce@freebsd.org; Sun, 24 Sep 2006 21:07:09 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 21:07:09 GMT
Message-Id: <200609242107.k8OL79LB082748@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106620 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 21:07:10 -0000
http://perforce.freebsd.org/chv.cgi?CH=106620
Change 106620 by rwatson@rwatson_peppercorn on 2006/09/24 21:06:34
auditreduce now relies on the OpenBSM config.h so needs a pointer to
the OpenBSM tree.
Affected files ...
.. //depot/projects/trustedbsd/audit3/usr.sbin/auditreduce/Makefile#4 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/usr.sbin/auditreduce/Makefile#4 (text+ko) ====
@@ -5,6 +5,8 @@
OPENBSMDIR=${.CURDIR}/../../contrib/openbsm
.PATH: ${OPENBSMDIR}/bin/auditreduce
+CFLAGS+= -I${OPENBSMDIR}
+
PROG= auditreduce
MAN= auditreduce.1
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 23:26:06 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 2C48A16A412; Sun, 24 Sep 2006 23:26:06 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id D43FD16A407
for ; Sun, 24 Sep 2006 23:26:05 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 9C1EE43D45
for ; Sun, 24 Sep 2006 23:26:05 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8ONQ5Kd096327
for ; Sun, 24 Sep 2006 23:26:05 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8ONQ4aL096324
for perforce@freebsd.org; Sun, 24 Sep 2006 23:26:04 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 23:26:04 GMT
Message-Id: <200609242326.k8ONQ4aL096324@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106621 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 23:26:06 -0000
http://perforce.freebsd.org/chv.cgi?CH=106621
Change 106621 by rwatson@rwatson_peppercorn on 2006/09/24 23:25:19
Submit untested Mac OS X clock_gettime() compat code so that it's
in the tree where csjp can get to it.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/bin/auditfilterd/auditfilterd.c#10 edit
.. //depot/projects/trustedbsd/openbsm/compat/clock_gettime.h#1 add
Differences ...
==== //depot/projects/trustedbsd/openbsm/bin/auditfilterd/auditfilterd.c#10 (text+ko) ====
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/bin/auditfilterd/auditfilterd.c#9 $
+ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditfilterd/auditfilterd.c#10 $
*/
/*
@@ -48,6 +48,10 @@
#include
#endif
+#ifndef HAVE_CLOCK_GETTIME
+#include
+#endif
+
#include
#include
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 23:27:08 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id F001C16A47E; Sun, 24 Sep 2006 23:27:07 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id CE92016A407
for ; Sun, 24 Sep 2006 23:27:07 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 68B2C43D49
for ; Sun, 24 Sep 2006 23:27:07 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8ONR74t096463
for ; Sun, 24 Sep 2006 23:27:07 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8ONR727096460
for perforce@freebsd.org; Sun, 24 Sep 2006 23:27:07 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 23:27:07 GMT
Message-Id: <200609242327.k8ONR727096460@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106622 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 23:27:08 -0000
http://perforce.freebsd.org/chv.cgi?CH=106622
Change 106622 by rwatson@rwatson_sesame on 2006/09/24 23:26:29
Now we're working on OpenBSM 1.0 alpha 13.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/HISTORY#40 edit
.. //depot/projects/trustedbsd/openbsm/VERSION#14 edit
.. //depot/projects/trustedbsd/openbsm/configure.ac#33 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/HISTORY#40 (text+ko) ====
@@ -1,3 +1,5 @@
+OpenBSM 1.0 alpha 13
+
OpenBSM 1.0 alpha 12
- Correct bug in auditreduce which prevented the -c option from working
@@ -264,4 +266,4 @@
to support reloading of kernel event table.
- Allow comments in /etc/security configuration files.
-$P4: //depot/projects/trustedbsd/openbsm/HISTORY#39 $
+$P4: //depot/projects/trustedbsd/openbsm/HISTORY#40 $
==== //depot/projects/trustedbsd/openbsm/VERSION#14 (text+ko) ====
@@ -1,1 +1,1 @@
-OPENBSM_1_0_ALPHA_12
+OPENBSM_1_0_ALPHA_13
==== //depot/projects/trustedbsd/openbsm/configure.ac#33 (text+ko) ====
@@ -2,8 +2,8 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT([OpenBSM], [1.0a12], [trustedbsd-audit@TrustesdBSD.org],[openbsm])
-AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#32 $])
+AC_INIT([OpenBSM], [1.0a13], [trustedbsd-audit@TrustesdBSD.org],[openbsm])
+AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#33 $])
AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_HEADER([config/config.h])
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 23:28:09 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C054116A415; Sun, 24 Sep 2006 23:28:09 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 86CAE16A40F
for ; Sun, 24 Sep 2006 23:28:09 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 4293643D46
for ; Sun, 24 Sep 2006 23:28:09 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8ONS9RA096576
for ; Sun, 24 Sep 2006 23:28:09 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8ONS8VW096573
for perforce@freebsd.org; Sun, 24 Sep 2006 23:28:08 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 23:28:08 GMT
Message-Id: <200609242328.k8ONS8VW096573@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106623 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 23:28:10 -0000
http://perforce.freebsd.org/chv.cgi?CH=106623
Change 106623 by rwatson@rwatson_sesame on 2006/09/24 23:27:29
Regenerate.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/configure#30 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/configure#30 (xtext) ====
@@ -1,7 +1,7 @@
#! /bin/sh
-# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#32 .
+# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#33 .
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for OpenBSM 1.0a12.
+# Generated by GNU Autoconf 2.59 for OpenBSM 1.0a13.
#
# Report bugs to .
#
@@ -424,8 +424,8 @@
# Identity of this package.
PACKAGE_NAME='OpenBSM'
PACKAGE_TARNAME='openbsm'
-PACKAGE_VERSION='1.0a12'
-PACKAGE_STRING='OpenBSM 1.0a12'
+PACKAGE_VERSION='1.0a13'
+PACKAGE_STRING='OpenBSM 1.0a13'
PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
ac_unique_file="bin/auditreduce/auditreduce.c"
@@ -955,7 +955,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures OpenBSM 1.0a12 to adapt to many kinds of systems.
+\`configure' configures OpenBSM 1.0a13 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1021,7 +1021,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of OpenBSM 1.0a12:";;
+ short | recursive ) echo "Configuration of OpenBSM 1.0a13:";;
esac
cat <<\_ACEOF
@@ -1162,7 +1162,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-OpenBSM configure 1.0a12
+OpenBSM configure 1.0a13
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1176,7 +1176,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by OpenBSM $as_me 1.0a12, which was
+It was created by OpenBSM $as_me 1.0a13, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -19278,7 +19278,7 @@
# Define the identity of the package.
PACKAGE=OpenBSM
- VERSION=1.0a12
+ VERSION=1.0a13
cat >>confdefs.h <<_ACEOF
@@ -23479,7 +23479,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by OpenBSM $as_me 1.0a12, which was
+This file was extended by OpenBSM $as_me 1.0a13, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -23542,7 +23542,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-OpenBSM config.status 1.0a12
+OpenBSM config.status 1.0a13
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 23:38:22 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C036216A415; Sun, 24 Sep 2006 23:38:22 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 9884416A407
for ; Sun, 24 Sep 2006 23:38:22 +0000 (UTC)
(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 65E8743D46
for ; Sun, 24 Sep 2006 23:38:22 +0000 (GMT)
(envelope-from csjp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8ONcMCJ097053
for ; Sun, 24 Sep 2006 23:38:22 GMT
(envelope-from csjp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8ONcMjX097050
for perforce@freebsd.org; Sun, 24 Sep 2006 23:38:22 GMT
(envelope-from csjp@freebsd.org)
Date: Sun, 24 Sep 2006 23:38:22 GMT
Message-Id: <200609242338.k8ONcMjX097050@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
csjp@freebsd.org using -f
From: "Christian S.J. Peron"
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106624 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 23:38:23 -0000
http://perforce.freebsd.org/chv.cgi?CH=106624
Change 106624 by csjp@csjp_xor on 2006/09/24 23:38:03
Fix build on Darwin:
s,tv_msec,tv_usec,g
Affected files ...
.. //depot/projects/trustedbsd/openbsm/compat/clock_gettime.h#2 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/compat/clock_gettime.h#2 (text+ko) ====
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/compat/clock_gettime.h#1 $
+ * $P4: //depot/projects/trustedbsd/openbsm/compat/clock_gettime.h#2 $
*/
/*
@@ -49,6 +49,6 @@
if (gettimeofday(&tv, NULL) < 0)
return (-1);
ts->tv_sec = tv.tv_sec;
- ts->tv_nsec = tv.tv_msec * 1000;
+ ts->tv_nsec = tv.tv_usec * 1000;
return (0);
}
From owner-p4-projects@FreeBSD.ORG Sun Sep 24 23:46:35 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 1031F16A518; Sun, 24 Sep 2006 23:46:35 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id DF29116A500
for ; Sun, 24 Sep 2006 23:46:34 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id A55F443D45
for ; Sun, 24 Sep 2006 23:46:34 +0000 (GMT)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8ONkYe6097482
for ; Sun, 24 Sep 2006 23:46:34 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8ONkYHb097479
for perforce@freebsd.org; Sun, 24 Sep 2006 23:46:34 GMT
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Date: Sun, 24 Sep 2006 23:46:34 GMT
Message-Id: <200609242346.k8ONkYHb097479@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
bb+lists.freebsd.perforce@cyrus.watson.org using -f
From: Robert Watson
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106625 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 24 Sep 2006 23:46:35 -0000
http://perforce.freebsd.org/chv.cgi?CH=106625
Change 106625 by rwatson@rwatson_peppercorn on 2006/09/24 23:46:12
We now build on Mac OS X again.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/HISTORY#41 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/HISTORY#41 (text+ko) ====
@@ -1,5 +1,8 @@
OpenBSM 1.0 alpha 13
+- compat/clock_gettime.h now provides a compatibility implementation of
+ clock_gettime(), which fixes building on Mac OS X.
+
OpenBSM 1.0 alpha 12
- Correct bug in auditreduce which prevented the -c option from working
@@ -266,4 +269,4 @@
to support reloading of kernel event table.
- Allow comments in /etc/security configuration files.
-$P4: //depot/projects/trustedbsd/openbsm/HISTORY#40 $
+$P4: //depot/projects/trustedbsd/openbsm/HISTORY#41 $
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 05:13:25 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id E578E16A412; Mon, 25 Sep 2006 05:13:24 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id A44F116A403
for ; Mon, 25 Sep 2006 05:13:24 +0000 (UTC)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 5B14643D45
for ; Mon, 25 Sep 2006 05:13:24 +0000 (GMT)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8P5DOMW039578
for ; Mon, 25 Sep 2006 05:13:24 GMT
(envelope-from imp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8P5DOD7039575
for perforce@freebsd.org; Mon, 25 Sep 2006 05:13:24 GMT
(envelope-from imp@freebsd.org)
Date: Mon, 25 Sep 2006 05:13:24 GMT
Message-Id: <200609250513.k8P5DOD7039575@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
imp@freebsd.org using -f
From: Warner Losh
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106630 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 05:13:25 -0000
http://perforce.freebsd.org/chv.cgi?CH=106630
Change 106630 by imp@imp_lighthouse on 2006/09/25 05:13:09
Add mmc bus.
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/at91_mci.c#3 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/at91_mci.c#3 (text+ko) ====
@@ -166,9 +166,8 @@
AT91_MCI_LOCK_DESTROY(sc);
goto out;
}
-
- AT91_MCI_UNLOCK(sc);
-
+ device_add_child(dev, "mmc", 0);
+ err = bus_generic_attach(dev);
out:;
if (err)
at91_mci_deactivate(dev);
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 05:26:41 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id AC8F816A416; Mon, 25 Sep 2006 05:26:41 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 89CC216A403
for ; Mon, 25 Sep 2006 05:26:41 +0000 (UTC)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 42EFF43D46
for ; Mon, 25 Sep 2006 05:26:41 +0000 (GMT)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8P5QfAc040213
for ; Mon, 25 Sep 2006 05:26:41 GMT
(envelope-from imp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8P5Qf0e040210
for perforce@freebsd.org; Mon, 25 Sep 2006 05:26:41 GMT
(envelope-from imp@freebsd.org)
Date: Mon, 25 Sep 2006 05:26:41 GMT
Message-Id: <200609250526.k8P5Qf0e040210@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
imp@freebsd.org using -f
From: Warner Losh
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106631 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 05:26:41 -0000
http://perforce.freebsd.org/chv.cgi?CH=106631
Change 106631 by imp@imp_lighthouse on 2006/09/25 05:26:03
oops. Let's call a .m file a .m file.
Affected files ...
.. //depot/projects/arm/src/sys/dev/mmc/mmcbus_if.h#2 delete
.. //depot/projects/arm/src/sys/dev/mmc/mmcbus_if.m#1 branch
Differences ...
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 06:51:30 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 9154B16A416; Mon, 25 Sep 2006 06:51:30 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id DF29816A40F
for ; Mon, 25 Sep 2006 06:51:29 +0000 (UTC)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 85AD143D79
for ; Mon, 25 Sep 2006 06:51:29 +0000 (GMT)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8P6pTVi046010
for ; Mon, 25 Sep 2006 06:51:29 GMT
(envelope-from imp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8P6pTwu046007
for perforce@freebsd.org; Mon, 25 Sep 2006 06:51:29 GMT
(envelope-from imp@freebsd.org)
Date: Mon, 25 Sep 2006 06:51:29 GMT
Message-Id: <200609250651.k8P6pTwu046007@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
imp@freebsd.org using -f
From: Warner Losh
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106636 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 06:51:30 -0000
http://perforce.freebsd.org/chv.cgi?CH=106636
Change 106636 by imp@imp_lighthouse on 2006/09/25 06:51:28
Flesh out the host adapter concept a little. Fill in the right
default values for the atmel device.
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/at91_mci.c#4 edit
.. //depot/projects/arm/src/sys/dev/mmc/bridge.h#2 edit
.. //depot/projects/arm/src/sys/dev/mmc/mmcreg.h#4 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/at91_mci.c#4 (text+ko) ====
@@ -53,6 +53,8 @@
#include
#include
#include
+#include
+#include
struct at91_mci_softc {
void *intrhand; /* Interrupt handle */
@@ -62,9 +64,7 @@
struct mtx sc_mtx;
bus_dma_tag_t dmatag;
bus_dmamap_t map;
- struct disk *disk; /* XXX support only one card for */
- int nb_cards;
- struct proc *p;
+ struct mmc_host host;
};
static inline uint32_t
@@ -133,6 +133,7 @@
/* XXX: asumes MCK = 60MHz */
struct at91_mci_softc *sc = device_get_softc(dev);
int err;
+ device_t child;
sc->dev = dev;
err = at91_mci_activate(dev);
@@ -166,7 +167,12 @@
AT91_MCI_LOCK_DESTROY(sc);
goto out;
}
- device_add_child(dev, "mmc", 0);
+ sc->host.f_min = 375000;
+ sc->host.f_max = 25000000;
+ sc->host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340;
+ sc->host.caps = MMC_CAP_4_BIT_DATA;
+ child = device_add_child(dev, "mmc", 0);
+ device_set_ivars(dev, &sc->host);
err = bus_generic_attach(dev);
out:;
if (err)
==== //depot/projects/arm/src/sys/dev/mmc/bridge.h#2 (text+ko) ====
@@ -73,16 +73,24 @@
struct mmc_ios {
uint32_t clock; /* Speed of the clock in Hz to move data */
- enum mmc_vdd vdd; /* Voltage to apply to the power pins */
+ enum mmc_vdd vdd; /* Voltage to apply to the power pins/ */
enum mmc_bus_mode bus_mode;
enum mmc_chip_select chip_select;
enum mmc_bus_width bus_width;
};
-#define MMC_CAP_4_BIT_DATA (1UL << 0) /* Host can do 4-bit xfers */
-
enum mmc_card_mode {
mode_mmc, mode_sd
};
+struct mmc_host {
+ int f_min;
+ int f_max;
+ uint32_t host_ocr;
+ uint32_t caps;
+#define MMC_CAP_4_BIT_DATA (1 << 0) /* Can do 4-bit data transfers */
+#define MMC_CAP_8_BIT_DATA (1 << 1) /* Can do 8-bit data transfers */
+ enum mmc_card_mode mode;
+};
+
#endif /* DEV_MMC_BRIDGE_H */
==== //depot/projects/arm/src/sys/dev/mmc/mmcreg.h#4 (text+ko) ====
@@ -389,4 +389,31 @@
////////////////////////////////////////////////////////////////////////////////
+/* OCR bits */
+#define MMC_OCR_145_150 (1U << 0) /* Vdd voltage 1.45 ~ 1.50 */
+#define MMC_OCR_150_155 (1U << 1) /* Vdd voltage 1.50 ~ 1.50 */
+#define MMC_OCR_155_160 (1U << 2) /* Vdd voltage 1.55 ~ 1.60 */
+#define MMC_OCR_160_165 (1U << 3) /* Vdd voltage 1.60 ~ 1.65 */
+#define MMC_OCR_165_170 (1U << 4) /* Vdd voltage 1.65 ~ 1.70 */
+#define MMC_OCR_170_180 (1U << 5) /* Vdd voltage 1.70 ~ 1.80 */
+#define MMC_OCR_180_190 (1U << 6) /* Vdd voltage 1.80 ~ 1.90 */
+#define MMC_OCR_190_200 (1U << 7) /* Vdd voltage 1.90 ~ 2.00 */
+#define MMC_OCR_200_210 (1U << 8) /* Vdd voltage 2.00 ~ 2.10 */
+#define MMC_OCR_210_220 (1U << 9) /* Vdd voltage 2.10 ~ 2.20 */
+#define MMC_OCR_220_230 (1U << 10) /* Vdd voltage 2.20 ~ 2.30 */
+#define MMC_OCR_230_240 (1U << 11) /* Vdd voltage 2.30 ~ 2.40 */
+#define MMC_OCR_240_250 (1U << 12) /* Vdd voltage 2.40 ~ 2.50 */
+#define MMC_OCR_250_260 (1U << 13) /* Vdd voltage 2.50 ~ 2.60 */
+#define MMC_OCR_260_270 (1U << 14) /* Vdd voltage 2.60 ~ 2.70 */
+#define MMC_OCR_270_280 (1U << 15) /* Vdd voltage 2.70 ~ 2.80 */
+#define MMC_OCR_280_290 (1U << 16) /* Vdd voltage 2.80 ~ 2.90 */
+#define MMC_OCR_290_300 (1U << 17) /* Vdd voltage 2.90 ~ 3.00 */
+#define MMC_OCR_300_310 (1U << 18) /* Vdd voltage 3.00 ~ 3.10 */
+#define MMC_OCR_310_320 (1U << 19) /* Vdd voltage 3.10 ~ 3.20 */
+#define MMC_OCR_320_330 (1U << 20) /* Vdd voltage 3.20 ~ 3.30 */
+#define MMC_OCR_330_340 (1U << 21) /* Vdd voltage 3.30 ~ 3.40 */
+#define MMC_OCR_340_350 (1U << 22) /* Vdd voltage 3.40 ~ 3.50 */
+#define MMC_OCR_350_360 (1U << 23) /* Vdd voltage 3.50 ~ 3.60 */
+#define MMC_OCR_CARD_BUSY (1U << 31) /* Card Power up status */
+
#endif /* DEV_MMCREG_H */
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 06:53:33 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id AFB1F16A415; Mon, 25 Sep 2006 06:53:33 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 5492E16A412
for ; Mon, 25 Sep 2006 06:53:33 +0000 (UTC)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id B4B2043D7B
for ; Mon, 25 Sep 2006 06:53:32 +0000 (GMT)
(envelope-from imp@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8P6rWUi046072
for ; Mon, 25 Sep 2006 06:53:32 GMT
(envelope-from imp@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8P6rWHo046069
for perforce@freebsd.org; Mon, 25 Sep 2006 06:53:32 GMT
(envelope-from imp@freebsd.org)
Date: Mon, 25 Sep 2006 06:53:32 GMT
Message-Id: <200609250653.k8P6rWHo046069@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
imp@freebsd.org using -f
From: Warner Losh
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106637 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 06:53:33 -0000
http://perforce.freebsd.org/chv.cgi?CH=106637
Change 106637 by imp@imp_lighthouse on 2006/09/25 06:52:50
stub out the mmc bus and mmc/sd flash card drivers. More to
follow.
Affected files ...
.. //depot/projects/arm/src/sys/arm/conf/TSC4370#9 edit
.. //depot/projects/arm/src/sys/conf/files#44 edit
.. //depot/projects/arm/src/sys/dev/mmc/mmc.c#1 add
.. //depot/projects/arm/src/sys/dev/mmc/mmcsd.c#1 add
Differences ...
==== //depot/projects/arm/src/sys/arm/conf/TSC4370#9 (text+ko) ====
@@ -95,9 +95,8 @@
device at91_ssc
device at91_tc
device at91_mci
-#device mmcsd # mmc/sd bus
-#device mmc # mmc flash card
-#device sd # sd flash card
+device mmc # mmc/sd bus
+device mmcsd # mmc/sd flash cards
# iic
device iic
device iicbus
==== //depot/projects/arm/src/sys/conf/files#44 (text+ko) ====
@@ -752,6 +752,8 @@
dev/mlx/mlx_disk.c optional mlx
dev/mlx/mlx_pci.c optional mlx pci
dev/mly/mly.c optional mly
+dev/mmc/mmc.c optional mmc
+dev/mmc/mmcsd.c optional mmcsd
dev/mpt/mpt.c optional mpt
dev/mpt/mpt_cam.c optional mpt
dev/mpt/mpt_debug.c optional mpt
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 08:38:57 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id D72A016A416; Mon, 25 Sep 2006 08:38:56 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 90B8B16A40F
for ; Mon, 25 Sep 2006 08:38:56 +0000 (UTC)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 4A60543D4C
for ; Mon, 25 Sep 2006 08:38:56 +0000 (GMT)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8P8cu7q054061
for ; Mon, 25 Sep 2006 08:38:56 GMT
(envelope-from soc-andrew@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8P8ctcP054058
for perforce@freebsd.org; Mon, 25 Sep 2006 08:38:55 GMT
(envelope-from soc-andrew@freebsd.org)
Date: Mon, 25 Sep 2006 08:38:55 GMT
Message-Id: <200609250838.k8P8ctcP054058@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
soc-andrew@freebsd.org using -f
From: soc-andrew
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106641 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 08:38:57 -0000
http://perforce.freebsd.org/chv.cgi?CH=106641
Change 106641 by soc-andrew@soc-andrew_serv on 2006/09/25 08:38:51
Rename the BSDInstaller backend Lua modules to the new upstream names
Affected files ...
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Bitwise.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Capacity.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/CmdChain.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/ConfigFile.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Disk.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Flow.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/FlowStep.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Installation.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/InstallationUI.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Menu.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/MenuItem.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/NavContainer.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/NavLeaf.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Network.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/NetworkUI.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Package.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageGraph.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageList.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageSet.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageUI.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Partition.lua#1 add
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/StorageSystem.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/StorageSystemUI.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Subpartition.lua#1 branch
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/bitwise.lua#3 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/cmdchain.lua#4 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/configvars.lua#3 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/flow.lua#3 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/menu.lua#3 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/network.lua#5 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/network_ui.lua#3 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/package.lua#6 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/package_ui.lua#3 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/storage.lua#7 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/storage_ui.lua#3 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/target_system.lua#10 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/target_system_ui.lua#4 delete
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/uinav.lua#5 delete
Differences ...
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 12:36:16 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 5AC7316A417; Mon, 25 Sep 2006 12:36:16 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 2FA9416A403
for ; Mon, 25 Sep 2006 12:36:16 +0000 (UTC)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id C966C43D62
for ; Mon, 25 Sep 2006 12:36:06 +0000 (GMT)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8PCa6op096381
for ; Mon, 25 Sep 2006 12:36:06 GMT
(envelope-from soc-andrew@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8PCa3JQ096378
for perforce@freebsd.org; Mon, 25 Sep 2006 12:36:03 GMT
(envelope-from soc-andrew@freebsd.org)
Date: Mon, 25 Sep 2006 12:36:03 GMT
Message-Id: <200609251236.k8PCa3JQ096378@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
soc-andrew@freebsd.org using -f
From: soc-andrew
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106658 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 12:36:16 -0000
http://perforce.freebsd.org/chv.cgi?CH=106658
Change 106658 by soc-andrew@soc-andrew_serv on 2006/09/25 12:35:07
Update the BSDInstaller backend to a recent CVS snapshot
Affected files ...
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/200_install.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/400_configure.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/500_create_geom_mirror.lua#1 add
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/600_upgrade.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/800_netboot.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/950_reboot.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/Makefile#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/BSDInstaller.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/DragonFly.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/FreeBSD.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/NetBSD.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/OpenBSD.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/100_choose_where_from.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/200_select_disk.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/300_select_part.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/400_mount_target_system.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/450_init_configuration.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/500_menu.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/550_write_configuration.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/600_unmount_target_system.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/main.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/menu/100_set_root_password.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/menu/200_add_user.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/menu/300_set_timezone.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/menu/350_set_datetime.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/menu/400_change_console_settings.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/menu/500_install_packages.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/menu/550_remove_packages.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/100_welcome.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/200_select_disk.lua#5 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/220_format_disk.lua#6 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/250_partition_disk.lua#7 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/270_install_bootblocks.lua#5 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/300_select_part.lua#5 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/400_select_subparts.lua#5 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/405_warn_omitted_subparts.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/407_create_subparts.lua#4 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/410_select_additional_filesystems.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/420_preselect_packages.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/450_select_packages.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/490_confirm_install_os.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/500_install_os.lua#10 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/800_finished.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/900_reboot.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/install/main.lua#3 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Bitwise.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Capacity.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/CmdChain.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/ConfigFile.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Disk.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Flow.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/FlowStep.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Installation.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/InstallationUI.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Menu.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/MenuItem.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/NavContainer.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/NavLeaf.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Network.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/NetworkUI.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Package.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageGraph.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageList.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageSet.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/PackageUI.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Partition.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/StorageSystem.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/StorageSystemUI.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/lib/Subpartition.lua#2 edit
.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/main.lua#4 edit
Differences ...
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/200_install.lua#3 (text+ko) ====
@@ -1,30 +1,34 @@
--- $Id: 200_install.lua,v 1.12 2005/08/30 00:39:05 cpressey Exp $
+-- $Id: 200_install.lua,v 1.13 2006/09/13 23:43:25 cpressey Exp $
--
--- Menu.Item scriptlet that generates the install menu item.
+-- MenuItem scriptlet that generates the install menu item.
-- Note that, if we detect that we weren't started from the
-- installation media, we don't provide this menu item.
--
-if not App.conf.booted_from_install_media then
- return nil, "not booted from install media"
+id = "install_os"
+name = _("Install %s", App.conf.product.name)
+short_desc = _("Install %s on this computer system",
+ App.conf.product.name)
+
+condition = function()
+ if not App.conf.booted_from_install_media then
+ return false, "not booted from install media"
+ end
+ return true
end
-return {
- id = "install_os",
- name = _("Install %s", App.conf.product.name),
- short_desc = _("Install %s on this computer system",
- App.conf.product.name),
- effect = function()
- --
- -- Make a recording of the install session.
- -- XXX this might make more sense elsewhere, like as
- -- Flow.Steps during the install itself?
- --
- CmdChain.record_to(App.expand("${tmp}install-session.sh"))
- App.descend("install")
- CmdChain.stop_recording()
+effect = function()
+ --
+ -- Make a recording of the install session.
+ --
+ -- XXX this might make more sense elsewhere, like as
+ -- a pair of FlowSteps at the beginning and end of the
+ -- install sequence itself?
+ --
+ CmdChain.record_to(App.expand("${tmp}install-session.sh"))
+ App.descend("install")
+ CmdChain.stop_recording()
- return Menu.CONTINUE
- end
-}
+ return Menu.CONTINUE
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/400_configure.lua#3 (text+ko) ====
@@ -1,26 +1,25 @@
--- $Id: 400_configure.lua,v 1.7 2005/08/26 04:25:24 cpressey Exp $
+-- $Id: 400_configure.lua,v 1.8 2006/09/13 23:43:25 cpressey Exp $
+
+id = "configure_installed_system"
+name = _("Configure an Installed System")
+short_desc = _("Configure an existing %s installation",
+ App.conf.product.name)
-return {
- id = "configure_installed_system",
- name = _("Configure an Installed System"),
- short_desc = _("Configure an existing %s installation",
- App.conf.product.name),
- effect = function()
- --
- -- If there is currently a target system mounted,
- -- unmount it before starting.
- --
- if App.state.target ~= nil and App.state.target:is_mounted() then
- if not App.state.target:unmount() then
- App.ui:inform(
- _("Warning: already-mounted target system could " ..
- "not be correctly unmounted first.")
- )
- return step:prev()
- end
+effect = function()
+ --
+ -- If there is currently a target system mounted,
+ -- unmount it before starting.
+ --
+ if App.state.target ~= nil and App.state.target:is_mounted() then
+ if not App.state.target:unmount() then
+ App.ui:inform(
+ _("Warning: already-mounted target system could " ..
+ "not be correctly unmounted first.")
+ )
+ return step:prev()
end
+ end
- App.descend("configure")
- return Menu.CONTINUE
- end
-}
+ App.descend("configure")
+ return Menu.CONTINUE
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/600_upgrade.lua#3 (text+ko) ====
@@ -1,11 +1,10 @@
--- $Id: 600_upgrade.lua,v 1.2 2005/04/09 19:04:20 cpressey Exp $
+-- $Id: 600_upgrade.lua,v 1.3 2006/09/13 23:43:25 cpressey Exp $
+
+id = "upgrade_installed_system"
+name = _("Upgrade an Installed System")
+short_desc = _("Upgrade a system with to the newest available version")
-return {
- id = "upgrade_installed_system",
- name = _("Upgrade an Installed System"),
- short_desc = _("Upgrade a system with to the newest available version"),
- effect = function()
- App.descend("upgrade")
- return Menu.CONTINUE
- end
-}
+effect = function()
+ App.descend("upgrade")
+ return Menu.CONTINUE
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/800_netboot.lua#3 (text+ko) ====
@@ -1,12 +1,11 @@
--- $Id: 800_netboot.lua,v 1.3 2005/04/12 13:28:31 den Exp $
+-- $Id: 800_netboot.lua,v 1.4 2006/09/13 23:43:25 cpressey Exp $
+
+id = "set_up_netboot"
+name = _("Set Up NetBoot Server")
+short_desc = _("Make this computer a boot server " ..
+ "for other machines on the network")
-return {
- id = "set_up_netboot",
- name = _("Set Up NetBoot Server"),
- short_desc = _("Make this computer a boot server " ..
- "for other machines on the network"),
- effect = function()
- App.descend("netboot")
- return Menu.CONTINUE
- end
-}
+effect = function()
+ App.descend("netboot")
+ return Menu.CONTINUE
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/950_reboot.lua#2 (text+ko) ====
@@ -1,17 +1,16 @@
--- $Id: 950_reboot.lua,v 1.2 2005/08/13 18:46:09 cpressey Exp $
+-- $Id: 950_reboot.lua,v 1.4 2006/09/13 23:43:25 cpressey Exp $
+
+id = "reboot"
+name = _("Reboot")
+short_desc = _("Reboot this computer")
-return {
- id = "reboot",
- name = _("Reboot"),
- short_desc = _("Reboot this computer"),
- effect = function()
- if TargetSystemUI.ask_reboot{
- cancel_desc = _("Return to Select Task") -- XXX this_menu_name
- } then
- App.state.do_reboot = true
- return nil
- else
- return Menu.CONTINUE
- end
+effect = function()
+ if App.state.source:ask_reboot{
+ cancel_desc = _("Return to Select Task") -- XXX this_menu_name
+ } then
+ App.state.do_reboot = true
+ return nil
+ else
+ return Menu.CONTINUE
end
-}
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/Makefile#3 (text+ko) ====
@@ -1,5 +1,5 @@
# Makefile for dfuibe_lua.
-# $Id: Makefile,v 1.55 2005/08/27 08:04:49 cpressey Exp $
+# $Id: Makefile,v 1.56 2006/07/29 18:02:50 cpressey Exp $
BASE?=../..
include ${BASE}/Config
@@ -37,7 +37,7 @@
test:
su root -c "env LD_LIBRARY_PATH='../../lib/libaura:../../lib/libdfui:$(LUA)/lib' \
- LUA_PATH='../../lib/lua/?/?.lua;../../lib/lua/luasocket/lua/?.lua' \
+ LUA_PATH='../../lib/lua/?/?.lua;../../lib/lua/luasocket/lua/?.lua;./lib/?.lua' \
LUA_CPATH='../../lib/lua/posix/?.so;../../lib/lua/pty/?.so;../../lib/lua/dfui/?.so;../../lib/lua/luasocket/?.so' \
$(LUA)/bin/lua -lcompat-5.1 main.lua \
./conf/BSDInstaller.lua ./conf/${OSNAME}.lua \
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/BSDInstaller.lua#3 (text+ko) ====
@@ -1,6 +1,6 @@
--
-- conf/BSDInstaller.lua
--- $Id: BSDInstaller.lua,v 1.13 2005/10/05 21:29:03 cpressey Exp $
+-- $Id: BSDInstaller.lua,v 1.20 2006/09/04 18:01:33 cpressey Exp $
--
-- The monolithic default configuration file for the BSD Installer.
--
@@ -154,7 +154,7 @@
["usr/local"] = "etc/mtree/BSD.local.dist",
["usr/X11R6"] = "etc/mtree/BSD.x11-4.dist"
}
-
+
--
-- upgrade_items: similar to "install_items", except for upgrading purposes
-- instead of initial installation.
@@ -219,24 +219,29 @@
-- space on the device to install anything at all.
--
-mountpoints = function(part_cap, ram_cap)
+mountpoints = function(part_megs, ram_megs)
--
-- First, calculate suggested swap size:
--
- local swap = 2 * ram_cap
- if ram_cap > (part_cap / 2) or part_cap < 4096 then
- swap = ram_cap
+ local swap_megs = 2 * ram_megs
+ if ram_megs > (part_megs / 2) or part_megs < 4096 then
+ swap_megs = ram_megs
end
- swap = tostring(swap) .. "M"
+ swap = tostring(swap_megs) .. "M"
+
+ --
+ -- The megabytes available on disk for non-swap use.
+ --
+ local avail_megs = part_megs - swap_megs
--
-- Now, based on the capacity of the partition,
-- return an appropriate list of suggested mountpoints.
--
- if part_cap < 300 then
+ if avail_megs < 300 then
return {}
- elseif part_cap < 523 then
+ elseif avail_megs < 523 then
return {
{ mountpoint = "/", capstring = "70M" },
{ mountpoint = "swap", capstring = swap },
@@ -245,7 +250,7 @@
{ mountpoint = "/usr", capstring = "174M" },
{ mountpoint = "/home", capstring = "*" }
}
- elseif part_cap < 1024 then
+ elseif avail_megs < 1024 then
return {
{ mountpoint = "/", capstring = "96M" },
{ mountpoint = "swap", capstring = swap },
@@ -254,7 +259,7 @@
{ mountpoint = "/usr", capstring = "256M" },
{ mountpoint = "/home", capstring = "*" }
}
- elseif part_cap < 4096 then
+ elseif avail_megs < 4096 then
return {
{ mountpoint = "/", capstring = "128M" },
{ mountpoint = "swap", capstring = swap },
@@ -263,7 +268,7 @@
{ mountpoint = "/usr", capstring = "512M" },
{ mountpoint = "/home", capstring = "*" }
}
- elseif part_cap < 10240 then
+ elseif avail_megs < 10240 then
return {
{ mountpoint = "/", capstring = "256M" },
{ mountpoint = "swap", capstring = swap },
@@ -309,7 +314,7 @@
}
--
--- limits: Limiting values specified by the installation; the most
+-- limits: Limiting values specified by the installation; the most
-- significant of these is the minimum disk space required to
-- install the software.
--
@@ -447,6 +452,7 @@
KLDLOAD = "sbin/kldload",
KLDUNLOAD = "sbin/kldunload",
KLDSTAT = "sbin/kldstat",
+ TUNEFS = "sbin/tunefs",
TOUCH = "usr/bin/touch",
YES = "usr/bin/yes",
@@ -577,6 +583,16 @@
offlimits_devices = { "fd%d+", "md%d+", "cd%d+" }
--
+-- extra_devices: devices which the installer should consider installing
+-- onto, even though it might not detect them through normal means. This
+-- should not generally be needed, and should be reserved for debugging.
+-- These are not Lua regexps; they are plain device names that include the
+-- device number (e.g. "vn0".)
+--
+
+extra_devices = { }
+
+--
-- has_softupdates: whether the operating system supports creating
-- a filesystem with softupdates, i.e. the -U flag to newfs.
--
@@ -592,6 +608,33 @@
window_subpartitions = { "c" }
+--
+-- offlimits_mounts: BSDInstaller will ignore these mount points.
+--
+-- example: offlimits_mounts = { "unionfs" }
+--
+
+offlimits_mounts = { }
+
+--
+-- needs_makedev: if true, the operating system needs to run the MAKEDEV
+-- script for accessing a device node to ensure that it exists. If false,
+-- the OS has a devfs or similar and doesn't need to run MAKEDEV.
+--
+
+needs_makedev = true
+
+--
+-- disklabel_offset: the number of sectors away from the beginning of the
+-- disk (or partition) that the disklabel should start at. Different OSes
+-- have different preferred values for this:
+--
+-- DragonFlyBSD starts at an offset of 0, whereas bsdlabel on FreeBSD
+-- suggests a starting point of 16. Net/Open starts at an offset of 32.
+--
+
+disklabel_offset = 0
+
-------------------------------------------------------------------
-- Natural Language Services (NLS)
-------------------------------------------------------------------
@@ -652,4 +695,3 @@
--
fatal_errors = false
-
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/DragonFly.lua#3 (text+ko) ====
@@ -1,6 +1,6 @@
--
-- conf/DragonFly.lua
--- $Id: DragonFly.lua,v 1.8 2005/12/21 22:49:26 cpressey Exp $
+-- $Id: DragonFly.lua,v 1.11 2006/09/04 18:01:33 cpressey Exp $
--
-- This file contains DragonFly-specific overrides to BSDInstaller.lua.
--
@@ -60,4 +60,6 @@
disklabel_on_disk = false
has_softupdates = true
window_subpartitions = { "c" }
+needs_makedev = true
+disklabel_offset = 0
use_cpdup = true
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/FreeBSD.lua#2 (text+ko) ====
@@ -1,6 +1,6 @@
--
-- conf/FreeBSD.lua
--- $Id: FreeBSD.lua,v 1.7 2005/09/16 22:41:10 cpressey Exp $
+-- $Id: FreeBSD.lua,v 1.11 2006/09/04 18:01:33 cpressey Exp $
--
-- This file contains FreeBSD-specific overrides to BSDInstaller.lua.
--
@@ -50,7 +50,7 @@
}
sysids = {
- { "FreeBSD/DragonFly", 165 },
+ { "FreeBSD", 165 },
{ "OpenBSD", 166 },
{ "NetBSD", 169 },
{ "MS-DOS", 15 },
@@ -65,4 +65,6 @@
disklabel_on_disk = false
has_softupdates = true
window_subpartitions = { "c" }
+needs_makedev = false
+disklabel_offset = 16
use_cpdup = false
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/NetBSD.lua#2 (text+ko) ====
@@ -1,6 +1,6 @@
--
-- conf/NetBSD.lua
--- $Id: NetBSD.lua,v 1.8 2005/08/27 20:24:59 cpressey Exp $
+-- $Id: NetBSD.lua,v 1.11 2006/09/04 18:01:33 cpressey Exp $
--
-- This file contains NetBSD-specific overrides to conf/BSDInstaller.lua.
--
@@ -61,4 +61,6 @@
has_softupdates = false
window_subpartitions = { "c", "d" }
enable_crashdumps = false
+needs_makedev = true
+disklabel_offset = 32
use_cpdup = false
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/conf/OpenBSD.lua#2 (text+ko) ====
@@ -1,6 +1,6 @@
--
-- conf/OpenBSD.lua
--- $Id: OpenBSD.lua,v 1.5 2005/08/27 20:24:59 cpressey Exp $
+-- $Id: OpenBSD.lua,v 1.8 2006/09/04 18:01:33 cpressey Exp $
--
-- This file contains OpenBSD-specific overrides to conf/BSDInstaller.lua.
--
@@ -31,4 +31,6 @@
disklabel_on_disk = true
has_softupdates = false
window_subpartitions = { "c", "d" }
+needs_makedev = true
+disklabel_offset = 32
use_cpdup = false
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/100_choose_where_from.lua#3 (text+ko) ====
@@ -1,4 +1,4 @@
--- $Id: 100_choose_where_from.lua,v 1.16 2005/08/30 00:39:05 cpressey Exp $
+-- $Id: 100_choose_where_from.lua,v 1.18 2006/09/13 23:43:25 cpressey Exp $
--
-- Allow the user to select which system to configure.
@@ -9,57 +9,61 @@
-- we skip straight to selecting which disk/partition to configure.
--
-if App.conf.booted_from_install_media then
- return nil, "was booted from install media"
+
+id = "choose_target_system"
+name = _("Choose Target System")
+
+condition = function()
+ if App.conf.booted_from_install_media then
+ return false, "was booted from install media"
+ else
+ return true
+ end
end
-return {
- id = "choose_target_system",
- name = _("Choose Target System"),
- effect = function(step)
- --
- -- If the user has already selected a TargetSystem (e.g. they are
- -- coming here directly from the end of an install,) skip ahead.
- --
- if App.state.target ~= nil then
- return step:next()
- end
+effect = function(step)
+ --
+ -- If the user has already selected an Installation (e.g. they are
+ -- coming here directly from the end of an install,) skip ahead.
+ --
+ if App.state.target ~= nil then
+ return step:next()
+ end
- --
- -- Ask the user where to configure.
- --
- local action_id = App.ui:present({
- id = "choose_target_system",
- name = _("Choose Target System"),
- short_desc = _(
- "Please choose which installed system you want to configure."
- ),
- actions = {
- {
- id = "this",
- name = _("Configure the Running System")
- },
- {
- id = "disk",
- name = _("Configure a System on Disk")
- },
- {
- id = "cancel",
- accelerator = "ESC",
- name = _("Return to %s", step:get_prev_name()),
- }
- },
- role = "menu"
- }).action_id
+ --
+ -- Ask the user where to configure.
+ --
+ local action_id = App.ui:present({
+ id = "choose_target_system",
+ name = _("Choose Target System"),
+ short_desc = _(
+ "Please choose which installed system you want to configure."
+ ),
+ actions = {
+ {
+ id = "this",
+ name = _("Configure the Running System")
+ },
+ {
+ id = "disk",
+ name = _("Configure a System on Disk")
+ },
+ {
+ id = "cancel",
+ accelerator = "ESC",
+ name = _("Return to %s", step:get_prev_name()),
+ }
+ },
+ role = "menu"
+ }).action_id
- if action_id == "cancel" then
- return step:prev()
- elseif action_id == "disk" then
- return step:next()
- else -- "this"
- App.state.target = App.state.source
- -- Jump straight to the menu.
- return "configuration_menu"
- end
+ if action_id == "cancel" then
+ return step:prev()
+ elseif action_id == "disk" then
+ return step:next()
+ else -- "this"
+ App.state.target = App.state.source
+ -- Jump straight to the menu.
+ return "configuration_menu"
end
-}
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/200_select_disk.lua#3 (text+ko) ====
@@ -1,57 +1,56 @@
--- $Id: 200_select_disk.lua,v 1.15 2005/08/26 04:25:24 cpressey Exp $
+-- $Id: 200_select_disk.lua,v 1.18 2006/09/13 23:43:25 cpressey Exp $
--
-- Allow the user to select the disk where the OS installation
-- they want to configure resides.
--
-return {
- id = "select_disk",
- name = _("Select Disk"),
- req_state = { "storage" },
- effect = function(step)
- --
- -- If the user has already selected a TargetSystem (e.g. they are
- -- coming here directly from the end of an install,) skip ahead.
- --
- if App.state.target ~= nil then
- return step:next()
- end
+id = "select_disk"
+name = _("Select Disk")
+req_state = { "storage" }
+
+effect = function(step)
+ --
+ -- If the user has already selected an Installation (e.g. they are
+ -- coming here directly from the end of an install,) skip ahead.
+ --
+ if App.state.target ~= nil then
+ return step:next()
+ end
- --
- -- Allow the user to select a disk.
- --
- App.state.sel_disk = nil
- App.state.sel_part = nil
+ --
+ -- Allow the user to select a disk.
+ --
+ App.state.sel_disk = nil
+ App.state.sel_part = nil
- -- XXX there might be a better place to handle this.
- if App.state.storage:get_disk_count() == 0 then
- App.ui:inform(_(
- "The installer could not find any suitable disks " ..
- "attached to this computer. If you wish to " ..
- "configure an installation of %s " ..
- "on an unorthodox storage device, you will have to " ..
- "exit to a %s command prompt and configure it " ..
- "manually, using the file /README as a guide.",
- App.conf.product.name, App.conf.media_name)
- )
- return nil
- end
+ -- XXX there might be a better place to handle this.
+ if App.state.storage:get_disk_count() == 0 then
+ App.ui:inform(_(
+ "The installer could not find any suitable disks " ..
+ "attached to this computer. If you wish to " ..
+ "configure an installation of %s " ..
+ "on an unorthodox storage device, you will have to " ..
+ "exit to a %s command prompt and configure it " ..
+ "manually, using the file /README as a guide.",
+ App.conf.product.name, App.conf.media_name)
+ )
+ return nil
+ end
- local dd = StorageUI.select_disk({
- sd = App.state.storage,
- short_desc = _(
- "Select the disk on which the installation of %s " ..
- "that you wish to configure resides.",
- App.conf.product.name),
- cancel_desc = _("Return to %s", step:get_prev_name())
- })
+ local dd = App.state.storage:select_disk{
+ short_desc = _(
+ "Select the disk on which the installation of %s " ..
+ "that you wish to configure resides.",
+ App.conf.product.name
+ ),
+ cancel_desc = _("Return to %s", step:get_prev_name())
+ }
- if dd then
- App.state.sel_disk = dd
- return step:next()
- else
- return step:prev()
- end
+ if dd then
+ App.state.sel_disk = dd
+ return step:next()
+ else
+ return step:prev()
end
-}
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/300_select_part.lua#3 (text+ko) ====
@@ -1,52 +1,51 @@
--- $Id: 300_select_part.lua,v 1.13 2005/08/26 04:25:24 cpressey Exp $
+-- $Id: 300_select_part.lua,v 1.17 2006/09/13 23:43:25 cpressey Exp $
--
-- Allow the user to select the BIOS partition where the OS
-- they want to configure resides.
--
-return {
- id = "select_part",
- name = _("Select Partition"),
- req_state = { "storage", "sel_disk" },
- effect = function(step)
- --
- -- If the user has already selected a TargetSystem (e.g. they are
- -- coming here directly from the end of an install,) skip ahead.
- --
- if App.state.target ~= nil then
- return step:next()
- end
+id = "select_part"
+name = _("Select Partition")
+req_state = { "storage", "sel_disk" }
- --
- -- Allow the user to select a partition.
- --
- App.state.sel_part = nil
- local pd = StorageUI.select_part({
- dd = App.state.sel_disk,
- short_desc = _(
- "Select the primary partition of %s " ..
- "on which the installation of %s resides.",
- App.state.sel_disk:get_name(),
- App.conf.product.name),
- cancel_desc = _("Return to %s", step:get_prev_name())
- })
+effect = function(step)
+ --
+ -- If the user has already selected an Installation (e.g. they are
+ -- coming here directly from the end of an install,) skip ahead.
+ --
+ if App.state.target ~= nil then
+ return step:next()
+ end
- if pd then
- if pd:is_mounted() then
- App.ui:inform(_(
- "One or more subpartitions on the selected " ..
- "primary partition already in use (they are " ..
- "currently mounted in the filesystem.) " ..
- "You should unmount them before proceeding."
- ))
- return step
- end
+ --
+ -- Allow the user to select a partition.
+ --
+ App.state.sel_part = nil
+ local pd = App.state.sel_disk:select_part{
+ short_desc = _(
+ "Select the primary partition of %s " ..
+ "on which the installation of %s resides.",
+ App.state.sel_disk:get_name(),
+ App.conf.product.name
+ ),
+ cancel_desc = _("Return to %s", step:get_prev_name())
+ }
- App.state.sel_part = pd
- return step:next()
- else
- return step:prev()
+ if pd then
+ if pd:is_mounted() then
+ App.ui:inform(_(
+ "One or more subpartitions on the selected " ..
+ "primary partition already in use (they are " ..
+ "currently mounted in the filesystem.) " ..
+ "You should unmount them before proceeding."
+ ))
+ return step
end
+
+ App.state.sel_part = pd
+ return step:next()
+ else
+ return step:prev()
end
-}
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/400_mount_target_system.lua#3 (text+ko) ====
@@ -1,48 +1,47 @@
--- $Id: 400_mount_target_system.lua,v 1.22 2005/08/04 22:00:40 cpressey Exp $
+-- $Id: 400_mount_target_system.lua,v 1.24 2006/09/13 23:43:25 cpressey Exp $
--
-- Mount the chosen system as the target system for configuration.
--
-return {
- id = "mount_target_system",
- name = _("Mount Target System"),
- interactive = false,
- req_state = { "storage", "sel_disk", "sel_part" },
- effect = function(step)
- --
- -- If the user has already mounted a TargetSystem (e.g. they are
- -- coming here directly from the end of an install,) skip ahead.
- --
- if App.state.target ~= nil and App.state.target:is_mounted() then
- return step:next()
- end
+id = "mount_target_system"
+name = _("Mount Target System")
+interactive = false
+req_state = { "storage", "sel_disk", "sel_part" }
- App.state.target = TargetSystem.new{
- partition = App.state.sel_part,
- base = "mnt"
- }
- local ok, errmsg = App.state.target:probe()
- if not ok then
- App.log(errmsg)
- App.ui:inform(_(
- "The target system could not be successfully probed:\n\n%s",
- errmsg
- ))
- App.state.target = nil
- return step:prev()
- end
- local ok, errmsg = App.state.target:mount()
- if not ok then
- App.log(errmsg)
- App.ui:inform(_(
- "The target system could not be successfully mounted:\n\n%s",
- errmsg
- ))
- App.state.target = nil
- return step:prev()
- end
+effect = function(step)
+ --
+ -- If the user has already mounted an Installation (e.g. they are
+ -- coming here directly from the end of an install,) skip ahead.
+ --
+ if App.state.target ~= nil and App.state.target:is_mounted() then
+ return step:next()
+ end
- return step:next()
+ App.state.target = InstallationUI.new{
+ partition = App.state.sel_part,
+ base = "mnt"
+ }
+ local ok, errmsg = App.state.target:probe()
+ if not ok then
+ App.log(errmsg)
+ App.ui:inform(_(
+ "The target system could not be successfully probed:\n\n%s",
+ errmsg
+ ))
+ App.state.target = nil
+ return step:prev()
+ end
+ local ok, errmsg = App.state.target:mount()
+ if not ok then
+ App.log(errmsg)
+ App.ui:inform(_(
+ "The target system could not be successfully mounted:\n\n%s",
+ errmsg
+ ))
+ App.state.target = nil
+ return step:prev()
end
-}
+
+ return step:next()
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/450_init_configuration.lua#2 (text+ko) ====
@@ -1,18 +1,15 @@
--- $Id: 450_init_configuration.lua,v 1.1 2005/07/12 21:15:05 cpressey Exp $
+-- $Id: 450_init_configuration.lua,v 1.3 2006/09/13 23:43:25 cpressey Exp $
--
-- Initialize the configuration variables.
--
-return {
- id = "init_configuation",
- name = _("Initialize Configuration"),
- interactive = false,
- req_state = { "storage", "sel_disk", "sel_part" },
- effect = function(step)
+id = "init_configuation"
+name = _("Initialize Configuration")
+interactive = false
+req_state = { "storage", "sel_disk", "sel_part" }
- App.state.rc_conf = ConfigVars.new()
-
- return step:next()
- end
-}
+effect = function(step)
+ App.state.rc_conf = ConfigFile.new()
+ return step:next()
+end
==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/backend/lua/configure/500_menu.lua#3 (text+ko) ====
@@ -1,15 +1,14 @@
--- $Id: 500_menu.lua,v 1.8 2005/07/08 21:24:09 cpressey Exp $
+-- $Id: 500_menu.lua,v 1.9 2006/09/13 23:43:25 cpressey Exp $
--
-- Display the configuration menu.
--
-return {
- id = "configuration_menu",
- name = _("Configuration Menu"),
- req_state = { "target" },
- effect = function(step)
- App.descend("menu")
- return step:next()
- end
-}
+id = "configuration_menu"
+name = _("Configuration Menu")
+req_state = { "target" }
+
+effect = function(step)
>>> TRUNCATED FOR MAIL (1000 lines) <<<
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 12:40:21 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 516CB16A4DA; Mon, 25 Sep 2006 12:40:21 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id 1227616A4C8
for ; Mon, 25 Sep 2006 12:40:21 +0000 (UTC)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 6860043D69
for ; Mon, 25 Sep 2006 12:40:12 +0000 (GMT)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8PCeCIX096584
for ; Mon, 25 Sep 2006 12:40:12 GMT
(envelope-from soc-andrew@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8PCeC9g096581
for perforce@freebsd.org; Mon, 25 Sep 2006 12:40:12 GMT
(envelope-from soc-andrew@freebsd.org)
Date: Mon, 25 Sep 2006 12:40:12 GMT
Message-Id: <200609251240.k8PCeC9g096581@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
soc-andrew@freebsd.org using -f
From: soc-andrew
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106659 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 12:40:21 -0000
http://perforce.freebsd.org/chv.cgi?CH=106659
Change 106659 by soc-andrew@soc-andrew_serv on 2006/09/25 12:39:37
IFC
Affected files ...
.. //depot/projects/soc2005/bsdinstaller/src/release/Makefile#52 integrate
.. //depot/projects/soc2005/bsdinstaller/src/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml#19 integrate
.. //depot/projects/soc2005/bsdinstaller/src/release/picobsd/bridge/PICOBSD#3 integrate
Differences ...
==== //depot/projects/soc2005/bsdinstaller/src/release/Makefile#52 (text+ko) ====
@@ -1,4 +1,4 @@
-# $FreeBSD: src/release/Makefile,v 1.913 2006/09/08 19:54:36 ru Exp $
+# $FreeBSD: src/release/Makefile,v 1.914 2006/09/11 13:15:09 ru Exp $
#
# make release [BUILDNAME=somename] CHROOTDIR=/some/dir CVSROOT=/cvs/dir \
# [RELEASETAG=tag]
@@ -592,7 +592,7 @@
# Install the system into the various distributions.
release.2:
- cd ${.CURDIR}/.. && make distrib-dirs DESTDIR=${RD}/trees/base
+ cd ${.CURDIR}/.. && ${CROSSMAKE} distrib-dirs DESTDIR=${RD}/trees/base
cd ${.CURDIR}/.. && ${CROSSMAKE} ${WORLD_FLAGS} distributeworld \
DISTDIR=${RD}/trees
touch ${.TARGET}
==== //depot/projects/soc2005/bsdinstaller/src/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml#19 (text+ko) ====
@@ -3,7 +3,7 @@
The &os; Project
- $FreeBSD: src/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml,v 1.974 2006/09/07 23:49:26 bmah Exp $
+ $FreeBSD: src/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml,v 1.975 2006/09/16 03:58:07 bmah Exp $
2000
@@ -1023,7 +1023,7 @@
disk. Note that the encryption algorithm is now specified to
the &man.geli.8; control program using the -e
option; the -a option is now used to specify
- the authentication algorithm
+ the authentication algorithm. &merged;
The &man.umass.4; driver now supports
PLAY_MSF ,
@@ -1329,7 +1329,7 @@
late keyword in &man.fstab.5;, along with a
corresponding -l command-line option to specify
that these late
file systems should be
- mounted.
+ mounted. &merged;
The &man.moused.8; daemon now supports an -H flag
to enable horizontal virtual scrolling similar to the
==== //depot/projects/soc2005/bsdinstaller/src/release/picobsd/bridge/PICOBSD#3 (text+ko) ====
@@ -1,5 +1,5 @@
#
-# $FreeBSD: src/release/picobsd/bridge/PICOBSD,v 1.18 2005/09/27 18:10:43 mlaier Exp $
+# $FreeBSD: src/release/picobsd/bridge/PICOBSD,v 1.19 2006/09/18 06:34:51 marck Exp $
#
# Line starting with #PicoBSD contains PicoBSD build parameters
#marker def_sz init MFS_inodes floppy_inodes
@@ -41,7 +41,6 @@
options DUMMYNET
device if_bridge
options HZ=1000
-#options NMBCLUSTERS=4096
device isa
device pci
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 12:42:55 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C6D1316A4AB; Mon, 25 Sep 2006 12:42:55 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id A10E416A4DA
for ; Mon, 25 Sep 2006 12:42:55 +0000 (UTC)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id DE83643DC4
for ; Mon, 25 Sep 2006 12:42:17 +0000 (GMT)
(envelope-from soc-andrew@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8PCgFkk096785
for ; Mon, 25 Sep 2006 12:42:15 GMT
(envelope-from soc-andrew@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8PCgFa1096782
for perforce@freebsd.org; Mon, 25 Sep 2006 12:42:15 GMT
(envelope-from soc-andrew@freebsd.org)
Date: Mon, 25 Sep 2006 12:42:15 GMT
Message-Id: <200609251242.k8PCgFa1096782@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
soc-andrew@freebsd.org using -f
From: soc-andrew
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 106661 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 25 Sep 2006 12:42:56 -0000
http://perforce.freebsd.org/chv.cgi?CH=106661
Change 106661 by soc-andrew@soc-andrew_serv on 2006/09/25 12:42:11
Fix release Makefile to be closer to the CVS version
Affected files ...
.. //depot/projects/soc2005/bsdinstaller/src/release/Makefile#53 edit
Differences ...
==== //depot/projects/soc2005/bsdinstaller/src/release/Makefile#53 (text+ko) ====
@@ -617,7 +617,8 @@
rm -rf ${j}_crunch
mkdir ${j}_crunch
cd ${j}_crunch; ${WMAKEENV} MAKEFLAGS="-m ${.CURDIR}/../share/mk" \
- crunchgen -o ${.CURDIR}/${TARGET}/${j}_crunch.conf
+ crunchgen -o \
+ ${.CURDIR}/${TARGET}/${j}_crunch.conf
cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk subclean
cd ${.CURDIR}/..; ${BINMAKE} -f Makefile.inc1 _build-tools
cd ${j}_crunch; CFLAGS="-Os -pipe" ${WMAKE} -f ${j}_crunch.mk \
From owner-p4-projects@FreeBSD.ORG Mon Sep 25 12:43:49 2006
Return-Path:
X-Original-To: p4-projects@freebsd.org
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 420C216A47B; Mon, 25 Sep 2006 12:43:49 +0000 (UTC)
X-Original-To: perforce@freebsd.org
Delivered-To: perforce@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id D4C0316A412
for ; Mon, 25 Sep 2006 12:43:48 +0000 (UTC)
(envelope-from bb+lists.freebsd.perforce@cyrus.watson.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP id 032DC43D46
for