pkg-config .pc files for default libraries

2007-05-28 Thread Ted Bullock
I really like the new pkg-config tool in 4.1 and want to use it more in
my own software.  My only problem with it is that there is no pkg-config
 .pc files for the default libraries (eg openssl) in the default install.

For example, with openssl libcrypto and libssl go hand in hand.
pkg-config could be easily used to test and identify this.

Is it worthwhile to have a /usr/lib/pkgconfig directory for the default
library packages?


-- 
Theodore Bullock, <[EMAIL PROTECTED], [EMAIL PROTECTED]>
B.Sc Software Engineering
Bike Across Canada Adventure http://www.comlore.com/bike



Re: tpb and tphdisk assistance

2007-05-28 Thread openbsd fan

tpb and tphdisk are only for thinkpads with apm not acpi...

On 5/27/07, Don Scott <[EMAIL PROTECTED]> wrote:

I have setup an MSDOS partition for tphdisk:

$ sudo fdisk sd0
Disk: sd0   geometry: 5168/240/63 [78140160 Sectors]
Offset: 0   Signature: 0xAA55
Starting   Ending   LBA Info:
 #: idC   H  S -C   H  S [   start:  size   ]

 0: 160   1  1 -  346 159 63 [  63: 5241537 ] OS/2 hidden
 1: 000   0  0 -0   0  0 [   0:   0 ] unused
 2: 000   0  0 -0   0  0 [   0:   0 ] unused
*3: A6  346 160  1 - 2933 223 63 [ 5241600:39119472 ] OpenBSD

$ sudo disklabel sd0
# Inside MBR partition 3: type A6 start 5241600 size 39119472
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: HTS541040G9SA00
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 5168
total sectors: 78140160
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 a:163296   5241600  4.2BSD   2048 163841 # Cyl   346*-
357*
 b:   2096640   5404896swap   # Cyl   357*-
496*
 c:  78140160 0  unused  0 0  # Cyl 0 -
5167
 d:163296   7501536  4.2BSD   2048 163841 # Cyl   496*-
506*
 e:   2096640   7664832  4.2BSD   2048 163841 # Cyl   506*-
645*
 f:  12581856   9761472  4.2BSD   2048 163841 # Cyl   645*-
1477*
 g:  16776144  22343328  4.2BSD   2048 163841 # Cyl  1477*-
2587*
 i:   524153763   MSDOS   # Cyl 0*-
346*

I've created a save2dsk.bin file:

$ ls -l
/mnt/

total 5240832
-rwxr-xr-x  1 root  wheel  2683305984 May 27 17:31 save2dsk.bin

I have tpb set to run as a daemon from ~/.xinitrc. The volume mute/down/up
buttons work, but none of the Fn buttons do except for the thinklight.
On-screen display also does not work. Is this something I can fix with a
simple configuration change?

 Here is some information about my hardware. Thanks for any advice.

$ sysctl hw
hw.machine=i386
hw.model=Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class)
hw.ncpu=2
hw.byteorder=1234
hw.physmem=2137419776
hw.usermem=2137407488
hw.pagesize=4096
hw.disknames=sd0
hw.diskcount=1
hw.sensors.acpitz0.temp0=49.05 degC (zone temperature)
hw.sensors.acpitz1.temp0=47.05 degC (zone temperature)
hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
hw.sensors.acpibat0.volt1=14.85 VDC (current voltage)
hw.sensors.acpibat0.watthour0=73.24 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=3.66 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=20.38 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=1 (battery discharging), OK
hw.sensors.acpibat0.raw1=18047 (rate)
hw.sensors.acpiac0.indicator0=Off (power supply)
hw.sensors.acpidock0.indicator0=Off (not docked)
hw.sensors.aps0.temp0=50.00 degC
hw.sensors.aps0.temp1=50.00 degC
hw.sensors.aps0.indicator0=On (Keyboard Active)
hw.sensors.aps0.indicator1=Off (Mouse Active)
hw.sensors.aps0.indicator2=On (Lid Open)
hw.sensors.aps0.raw0=495 (X_ACCEL)
hw.sensors.aps0.raw1=502 (Y_ACCEL)
hw.sensors.aps0.raw2=495 (X_VAR)
hw.sensors.aps0.raw3=502 (Y_VAR)
hw.cpuspeed=1996
hw.setperf=0
hw.vendor=LENOVO
hw.product=1709G3U
hw.version=ThinkPad X60
hw.serialno=LVD6250
hw.uuid=7ac062e0-711a-11db-80c2-db36273570d5

and a dmesg:

OpenBSD 4.1-current (GENERIC.MP ) #3: Sat May 26
13:17:13 PDT 2007
  [EMAIL PROTECTED]:/usr/src/sys/arch/i386 /compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class) 2
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR

real mem  = 2137419776 (2038MB)
avail mem = 1943982080 (1853MB)
using 4278 buffers containing 106995712 bytes (104488K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 04/18/07, BIOS32 rev. 0 @ 0xfd690,
SMBIOS rev. 2.4 @ 0xe0010 (67 entries)
bios0: LENOVO 1709G3U
pcibios0 at bios0: rev 2.1 @ 0xfd620/0x9e0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #22 is the last bus
bios0: ROM list: 0xc/0xea00! 0xdc000/0x4000! 0xe/0x1!
acpi0 at mainbus0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT
SSDT
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpi device at acpi0 from table DSDT not configured
acpi device at acpi0 from table FACP not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table ECDT not configured
acpi device at acpi0 from tab

tcpdump segfaults on enc0 interface

2007-05-28 Thread Jurjen Oskam
Hi there,

I'm using OpenBSD 4.1-stable/amd64 (dmesg below). I'm setting up ipsec to
secure my wireless network, and that seems to work great. (Great job on the
new way to configure ipsec, by the way!)

When using tcpdump on the enc0 interface, I noticed that it segfaults after
a few seconds of continuous traffic on enc0. The weird thing is, I can't
get it to produce a coredump to post a bugreport (unfortunately, I'm no
programmer so I don't think I can diagnose and fix it myself). I'm probably
missing something here, so a nudge in the right direction would be much
appreciated. ulimit -c is unlimited, I have the default login.conf, I set
kern.nosuidcoredump=0, and executed tcpdump from /tmp. Still no corefile.

tcpdump is invoked as follows:

tcpdump -n -p -i enc0

The output is:

tcpdump: WARNING: enc0: no IPv4 address assigned
tcpdump: listening on enc0, link-type ENC
tcpdump: WARNING: compensating for unaligned libpcap packets
09:25:10.519978 (authentic,confidential): SPI 0x6d94e76a: 192.168.2.12.13215 >
194.109.21.66.21: P 2427258942:2427258950(8) ack 1407076783 win 16370
 (DF) [tos 0x10] (encap)
09:25:10.520497 (authentic,confidential): SPI 0x6d94e76a: 192.168.2.12.13215 >
194.109.21.66.21: F 8:8(0) ack 1 win 16370  (DF) [tos 0x10] (encap)
09:25:10.528208 (authentic,confidential): SPI 0x1f12c078: 194.109.21.66.21 >
192.168.2.12.13215: R 1407076783:1407076783(0) win 0 (DF) [tos 0x10] (encap)
09:25:10.541969 (authentic,confidential): SPI 0x1f12c078: 194.109.21.66.21 >
192.168.2.12.13215: R 1407076783:1407076783(0) win 0 (DF) [tos 0x10] (encap)
09:25:35.233629 (authentic,confidential): SPI 0x1f12c078: 194.109.21.66.55495
> 192.168.2.12.32896: . 11185:11709(524) ack 1 win 46  (DF) [tos 0x8] (encap)
[ 8<  - cut  - 8< ]
09:25:39.673018 (authentic,confidential): SPI 0x1f12c078: 194.109.21.66.55495
> 192.168.2.12.32896: . 496017:496541(524) ack 1 win 46  (DF) [tos 0x8] (encap)
09:25:39.674647 (authentic,confidential): SPI 0x1f12c078: 194.109.21.66.55495
> 192.168.2.12.32896: . 496541:497065(524) ack 1 win 46  (DF) [tos 0x8] (encap)
09:25:39.675921 (authentic,confidential): SPI 0x1f12c078: 194.109.21.66.55495
> 192.168.2.12.32896: . 497065:497589(524) ack 1 win 46  (DF) [tos 0x8] (encap)
Segmentation fault

What can I do to (help) find the cause of this?


OpenBSD 4.1-stable (GENERIC+RAIDAUTO) #0: Wed May  9 20:08:36 CEST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC+RAIDAU
TO
real mem = 535621632 (523068K)
avail mem = 446099456 (435644K)
using 13127 buffers containing 53768192 bytes (52508K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0520 (61 entries)
bios0: ASUSTeK Computer Inc. K8V-X
acpi at mainbus0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3000+, 2002.88 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: Cool'n'Quiet K8 2002 MHz: speeds: 2000 1800 1000 MHz
cpu0: AMD errata 86, 89, 97, 104 present, BIOS upgrade may be required
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "VIA K8HTB Host" rev 0x01
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce2 MX" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
skc0 at pci0 dev 10 function 0 "Marvell Yukon 88E8001/8003/8010" rev 0x13,
Yukon Lite rev. A3 (0x7): irq 10
sk0 at skc0 port A, address 00:11:2f:9c:09:6b
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
rl0 at pci0 dev 12 function 0 "Realtek 8139" rev 0x10: irq 10, address
00:00:b4:93:54:c4
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci0 dev 13 function 0 "Realtek 8139" rev 0x10: irq 5, address
00:e0:4c:49:78:1d
rlphy1 at rl1 phy 0: RTL internal PHY
pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA
pciide0: using irq 10 for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide1 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 78533MB, 160836480 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1 at pciide1 channel 1 drive 0: 
wd1: 16-sector PIO, LBA48, 78533MB, 160836480 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VI

Re: tpb and tphdisk assistance

2007-05-28 Thread Przemyslaw Nowaczyk
On Mon, May 28, 2007 at 03:24:29AM -0400, openbsd fan wrote:
> tpb and tphdisk are only for thinkpads with apm not acpi...

not true.. i have a r50e with no apm and tpb works fine (at least
some usable part of it), i can change the volume, screen brightness,
turn on/off the thinklight and switch between LCD/CRT.. turning
on/off the wlan card does not work but the card itself works ok
(it's on by default)..

as for tphdisk i haven't tried it..

-- 
Przemyslaw Nowaczyk <[EMAIL PROTECTED]>
CS student @ Poznan University of Technology
http://www.student.put.poznan.pl/~przemyslaw.nowaczyk/



Re: tcpdump segfaults on enc0 interface

2007-05-28 Thread Stuart Henderson
On 2007/05/28 09:30, Jurjen Oskam wrote:
> When using tcpdump on the enc0 interface, I noticed that it segfaults after
> a few seconds of continuous traffic on enc0. The weird thing is, I can't
> get it to produce a coredump to post a bugreport

The first (and often only) thing you'll get from a coredump file is a
backtrace, but you don't actually need the core to do this, you can just
run the program under gdb. With or without a coredump you'll also want
debugging symbols, so clean your old tcpdump compile, recompile with
"DEBUG=-g make", run it under gdb:

# gdb obj/tcpdump
GNU gdb 6.3
[...]
(gdb) set args -npienc0
(gdb) run
Starting program: /usr/obj/usr.sbin/tcpdump/tcpdump -npienc0
tcpdump: WARNING: enc0: no IPv4 address assigned
tcpdump: listening on enc0, link-type ENC
[...]

when the SIGSEGV occurs, type 'bt' and copy the output. it doesn't
necessarily show you where the error is, but is a good place to start
from.

> (unfortunately, I'm no programmer so I don't think I can diagnose and
> fix it myself).

non-programmers can still do a lot to analyse/diagnose the problem
even if they don't come up with good fixes (-:

> > 192.168.2.12.32896: . 496541:497065(524) ack 1 win 46  3751680818 1540338415> (DF) [tos 0x8] (encap)
> 09:25:39.675921 (authentic,confidential): SPI 0x1f12c078: 194.109.21.66.55495
> > 192.168.2.12.32896: . 497065:497589(524) ack 1 win 46  3751680818 1540338415> (DF) [tos 0x8] (encap)
> Segmentation fault
> 
> What can I do to (help) find the cause of this?

the bug is probably in a protocol decoder, in which case you'd still
be able to write the network data to disk; a copy of this may help
someone locate the problem (tcpdump -ienc0 -w file)



Re: tcpdump segfaults on enc0 interface

2007-05-28 Thread Stuart Henderson
On 2007/05/28 09:30, Jurjen Oskam wrote:
> What can I do to (help) find the cause of this?

oh, another thought... there's probably a missing truncation check
which is noticed with encap packets since they have a longer header.

try running two copies of tcpdump, one with -s1500 and one without,
if the -s1500 one stays running when the other fails, the first packet
seen in the -s1500 after the failure should show you what packet data
is causing the problem.



Re: Newbie Question

2007-05-28 Thread Tang Tse
Retaking this mail thread,

One question about: which you think is best? snort+sec? or pf+sec?

Thanks

2007/5/8, Alberich de megres <[EMAIL PROTECTED]>:
>
> Can Pfstat make per source ip ( for local lan for example ) statistics?
>
> I heared nice things about SEC,i will take a looks a both.
>
>
> On 5/8/07, Joachim Schipper <[EMAIL PROTECTED]> wrote:
>
> > On Tue, May 08, 2007 at 10:45:36AM +0200, Alberich de megres wrote:
> > > Hello,
> > >
> > > I'm new on the openbsd world..i came from linux world :P And i got a
> > > question about logs
> > >
> > > In linux i used logwatch, i know that i can use it on openbsd. But is
> > there
> > > some other option in openbsd world? what about snort?  what way you
> use
> > to
> > > analyze logs in rout firewall or workstations?
> >
> > For log analysis, which is different from analyzing bandwidth and
> > such, there are plenty of systems. I'd urge you to look at something
> > that reports anything unknown, though, at least if you're using a log
> > analyzer to point you at things that need fixing (as opposed to creating
> > statistics, auto-blacklisting in response to SSH bruteforce attempts,
> > and so on and so forth).
> >
> > Personally, I use SEC (sysutils/sec) for general log handling. It's
> > pretty powerful, not too hard to use, and can be made to work in
> > blacklist mode (search the web). I add pflogsumm (mail/pflogsumm) to
> > handle all Postfix logs, mostly because SEC isn't that good at
> > statistics (though you can get it to execute external programs...)
> >
> >Joachim
> >
> > --
> > TFMotD: ldd (1) - list dynamic object dependencies



Specifying > 1 encryption algorithm in ipsec.conf(5) versus isakmpd.conf(5)

2007-05-28 Thread Damon McMahon

Greetings,

How would I specify that blowfish, AES and 3DES should be accepted -  
in that order - in ipsec.conf(5) to configure isakmpd(8)?


In the deprecated isakmpd.conf(5) for Main Mode I did this:

Transforms = BLF-SHA,AES-SHA,3DES-SHA

and for Quick Mode I did this:

	Suites = QM-ESP-BLF-SHA-PFS-SUITE,QM-ESP-AES-SHA-PFS-SUITE,QM- 
ESP-3DES-SHA-PFS-SUITE


However, in ipsec.conf(5) the following results in a Syntax Error  
message for lines 2 and 3:


ike from $ipsec_from to $ipsec_to \
main enc { blowfish, aes, 3des } \
quick enc { blowfish, aes, 3des }

Any advice will be appreciated.

Kind regards,
Damon



Re: Newbie Question

2007-05-28 Thread Joachim Schipper
On Mon, May 28, 2007 at 10:35:41AM +0200, Tang Tse wrote:
> 2007/5/8, Alberich de megres <[EMAIL PROTECTED]>:
> > On 5/8/07, Joachim Schipper <[EMAIL PROTECTED]> wrote:
> > > On Tue, May 08, 2007 at 10:45:36AM +0200, Alberich de megres wrote:
> > > > I'm new on the openbsd world..i came from linux world :P And i
> > > > got a question about logs
> > > >
> > > > In linux i used logwatch, i know that i can use it on openbsd.
> > > > But is there some other option in openbsd world? what about
> > > > snort?  what way you use to analyze logs in rout firewall or
> > > > workstations?
> > >
> > > For log analysis, which is different from analyzing bandwidth and
> > > such, there are plenty of systems. I'd urge you to look at
> > > something that reports anything unknown, though, at least if
> > > you're using a log analyzer to point you at things that need
> > > fixing (as opposed to creating statistics, auto-blacklisting in
> > > response to SSH bruteforce attempts, and so on and so forth).
> > >
> > > Personally, I use SEC (sysutils/sec) for general log handling.
> > > It's pretty powerful, not too hard to use, and can be made to work
> > > in blacklist mode (search the web). I add pflogsumm
> > > (mail/pflogsumm) to handle all Postfix logs, mostly because SEC
> > > isn't that good at statistics (though you can get it to execute
> > > external programs...)
> >
> > Can Pfstat make per source ip ( for local lan for example ) statistics?
> >
> > I heared nice things about SEC,i will take a looks a both.
> 
> Retaking this mail thread,
> 
> One question about: which you think is best? snort+sec? or pf+sec?

Snort and pf are network security technologies; the first is an
intrusion detection system and the latter is a packet filter. SEC can be
used as a log watcher.

Those are different technologies; I think you might be a bit confused.
Snort+SEC is most likely not the best choice (look at anything from BASE
to Prelude for analysing and/or monitoring Snort logs), and I don't know
what output of pf you want to feed to SEC.

I'd recommend setting up pf first, log watching second, and ignoring
Snort altogether. This is OpenBSD; vulnerabilities are rare, and if they
appear, upgrading the vulnerable system is less work than upgrading the
IDS. And the first actually makes you more secure.

Joachim

-- 
TFMotD: gem (4) - GEM 10/100/Gigabit Ethernet device



Re: Newbie Question

2007-05-28 Thread Alberich de megres
Ok.

Pf is working fine ( i think, xD ).
So better use pf+sec and forget snort. So now is time to find a good sec
manual and start play with it,

Thanks.
Tang Tse


On 5/28/07, Joachim Schipper <[EMAIL PROTECTED]> wrote:
>
> On Mon, May 28, 2007 at 10:35:41AM +0200, Tang Tse wrote:
> > 2007/5/8, Alberich de megres <[EMAIL PROTECTED]>:
> > > On 5/8/07, Joachim Schipper <[EMAIL PROTECTED]> wrote:
> > > > On Tue, May 08, 2007 at 10:45:36AM +0200, Alberich de megres wrote:
> > > > > I'm new on the openbsd world..i came from linux world :P And i
> > > > > got a question about logs
> > > > >
> > > > > In linux i used logwatch, i know that i can use it on openbsd.
> > > > > But is there some other option in openbsd world? what about
> > > > > snort?  what way you use to analyze logs in rout firewall or
> > > > > workstations?
> > > >
> > > > For log analysis, which is different from analyzing bandwidth and
> > > > such, there are plenty of systems. I'd urge you to look at
> > > > something that reports anything unknown, though, at least if
> > > > you're using a log analyzer to point you at things that need
> > > > fixing (as opposed to creating statistics, auto-blacklisting in
> > > > response to SSH bruteforce attempts, and so on and so forth).
> > > >
> > > > Personally, I use SEC (sysutils/sec) for general log handling.
> > > > It's pretty powerful, not too hard to use, and can be made to work
> > > > in blacklist mode (search the web). I add pflogsumm
> > > > (mail/pflogsumm) to handle all Postfix logs, mostly because SEC
> > > > isn't that good at statistics (though you can get it to execute
> > > > external programs...)
> > >
> > > Can Pfstat make per source ip ( for local lan for example )
> statistics?
> > >
> > > I heared nice things about SEC,i will take a looks a both.
> >
> > Retaking this mail thread,
> >
> > One question about: which you think is best? snort+sec? or pf+sec?
>
> Snort and pf are network security technologies; the first is an
> intrusion detection system and the latter is a packet filter. SEC can be
> used as a log watcher.
>
> Those are different technologies; I think you might be a bit confused.
> Snort+SEC is most likely not the best choice (look at anything from BASE
> to Prelude for analysing and/or monitoring Snort logs), and I don't know
> what output of pf you want to feed to SEC.
>
> I'd recommend setting up pf first, log watching second, and ignoring
> Snort altogether. This is OpenBSD; vulnerabilities are rare, and if they
> appear, upgrading the vulnerable system is less work than upgrading the
> IDS. And the first actually makes you more secure.
>
> Joachim
>
> --
> TFMotD: gem (4) - GEM 10/100/Gigabit Ethernet device



Re: Linux Compat Query

2007-05-28 Thread Tobias Ulmer
On Mon, May 28, 2007 at 12:09:01AM +0100, Edd Barrett wrote:
> [...]
> So I try as root (I know I shouldnt have to):
> # whoami
> root
> # ./a.out
> ksh: ./a.out: Operation not permitted
> # exec a.out
> ksh: a.out: not found
> $ whoami
> edd
> 
> Notice how it logged my root shell out?!?!

That's ok, exec replaces the current process with the new one.

> 
> Can anyone enlighten me?

Probably not, but make sure you didn't mount with noexec... Been there,
done that ;)

Tobias

> 
> Thanks
> 
> -- 
> Best Regards
> 
> Edd
> 
> ---
> http://students.dec.bournemouth.ac.uk/ebarrett



Re: tpb and tphdisk assistance

2007-05-28 Thread Damien Miller
where did you get that idea from? you are wrong.

On Mon, 28 May 2007, openbsd fan wrote:

> tpb and tphdisk are only for thinkpads with apm not acpi...
> 
> On 5/27/07, Don Scott <[EMAIL PROTECTED]> wrote:
> > I have setup an MSDOS partition for tphdisk:
> > 
> > $ sudo fdisk sd0
> > Disk: sd0   geometry: 5168/240/63 [78140160 Sectors]
> > Offset: 0   Signature: 0xAA55
> > Starting   Ending   LBA Info:
> >  #: idC   H  S -C   H  S [   start:  size   ]
> > 
> >  0: 160   1  1 -  346 159 63 [  63: 5241537 ] OS/2 hidden
> >  1: 000   0  0 -0   0  0 [   0:   0 ] unused
> >  2: 000   0  0 -0   0  0 [   0:   0 ] unused
> > *3: A6  346 160  1 - 2933 223 63 [ 5241600:39119472 ] OpenBSD
> > 
> > $ sudo disklabel sd0
> > # Inside MBR partition 3: type A6 start 5241600 size 39119472
> > # /dev/rsd0c:
> > type: SCSI
> > disk: SCSI disk
> > label: HTS541040G9SA00
> > flags:
> > bytes/sector: 512
> > sectors/track: 63
> > tracks/cylinder: 240
> > sectors/cylinder: 15120
> > cylinders: 5168
> > total sectors: 78140160
> > rpm: 3600
> > interleave: 1
> > trackskew: 0
> > cylinderskew: 0
> > headswitch: 0   # microseconds
> > track-to-track seek: 0  # microseconds
> > drivedata: 0
> > 
> > 16 partitions:
> > # sizeoffset  fstype [fsize bsize  cpg]
> >  a:163296   5241600  4.2BSD   2048 163841 # Cyl   346*-
> > 357*
> >  b:   2096640   5404896swap   # Cyl   357*-
> > 496*
> >  c:  78140160 0  unused  0 0  # Cyl 0 -
> > 5167
> >  d:163296   7501536  4.2BSD   2048 163841 # Cyl   496*-
> > 506*
> >  e:   2096640   7664832  4.2BSD   2048 163841 # Cyl   506*-
> > 645*
> >  f:  12581856   9761472  4.2BSD   2048 163841 # Cyl   645*-
> > 1477*
> >  g:  16776144  22343328  4.2BSD   2048 163841 # Cyl  1477*-
> > 2587*
> >  i:   524153763   MSDOS   # Cyl 0*-
> > 346*
> > 
> > I've created a save2dsk.bin file:
> > 
> > $ ls -l
> > /mnt/
> > 
> > total 5240832
> > -rwxr-xr-x  1 root  wheel  2683305984 May 27 17:31 save2dsk.bin
> > 
> > I have tpb set to run as a daemon from ~/.xinitrc. The volume mute/down/up
> > buttons work, but none of the Fn buttons do except for the thinklight.
> > On-screen display also does not work. Is this something I can fix with a
> > simple configuration change?
> > 
> >  Here is some information about my hardware. Thanks for any advice.
> > 
> > $ sysctl hw
> > hw.machine=i386
> > hw.model=Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class)
> > hw.ncpu=2
> > hw.byteorder=1234
> > hw.physmem=2137419776
> > hw.usermem=2137407488
> > hw.pagesize=4096
> > hw.disknames=sd0
> > hw.diskcount=1
> > hw.sensors.acpitz0.temp0=49.05 degC (zone temperature)
> > hw.sensors.acpitz1.temp0=47.05 degC (zone temperature)
> > hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
> > hw.sensors.acpibat0.volt1=14.85 VDC (current voltage)
> > hw.sensors.acpibat0.watthour0=73.24 Wh (last full capacity)
> > hw.sensors.acpibat0.watthour1=3.66 Wh (warning capacity)
> > hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
> > hw.sensors.acpibat0.watthour3=20.38 Wh (remaining capacity), OK
> > hw.sensors.acpibat0.raw0=1 (battery discharging), OK
> > hw.sensors.acpibat0.raw1=18047 (rate)
> > hw.sensors.acpiac0.indicator0=Off (power supply)
> > hw.sensors.acpidock0.indicator0=Off (not docked)
> > hw.sensors.aps0.temp0=50.00 degC
> > hw.sensors.aps0.temp1=50.00 degC
> > hw.sensors.aps0.indicator0=On (Keyboard Active)
> > hw.sensors.aps0.indicator1=Off (Mouse Active)
> > hw.sensors.aps0.indicator2=On (Lid Open)
> > hw.sensors.aps0.raw0=495 (X_ACCEL)
> > hw.sensors.aps0.raw1=502 (Y_ACCEL)
> > hw.sensors.aps0.raw2=495 (X_VAR)
> > hw.sensors.aps0.raw3=502 (Y_VAR)
> > hw.cpuspeed=1996
> > hw.setperf=0
> > hw.vendor=LENOVO
> > hw.product=1709G3U
> > hw.version=ThinkPad X60
> > hw.serialno=LVD6250
> > hw.uuid=7ac062e0-711a-11db-80c2-db36273570d5
> > 
> > and a dmesg:
> > 
> > OpenBSD 4.1-current (GENERIC.MP ) #3: Sat May 26
> > 13:17:13 PDT 2007
> >   [EMAIL PROTECTED]:/usr/src/sys/arch/i386 /compile/GENERIC.MP
> > cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class) 2
> > GHz
> > cpu0:
> > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
> > 
> > real mem  = 2137419776 (2038MB)
> > avail mem = 1943982080 (1853MB)
> > using 4278 buffers containing 106995712 bytes (104488K) of memory
> > mainbus0 (root)
> > bios0 at mainbus0: AT/286+ BIOS, date 04/18/07, BIOS32 rev. 0 @ 0xfd690,
> > SMBIOS rev. 2.4 @ 0xe0010 (67 entries)
> > bios0: LENOVO 1709G3U
> > pcibios0 at bios0: rev 2.1 @ 0xfd620/0x9e0
> > pcibios0: PCI IRQ Routing Ta

What is this: DIOCADDRULE: Device or resource busy?

2007-05-28 Thread carlopmart

Hi all,

 I have installed new openbsd 4.1 server with pf rules and latest patches. When 
I try to load my pf.conf rules, returns me this error: DIOCADDRULE: Device or 
resource busy. What does it means???


Many thanks.

--
CL Martinez
carlopmart {at} gmail {d0t} com



PATCH: GeForce 7600 GS/GT, GeForce 4 Ti 4800

2007-05-28 Thread Eric Gillingham
Added recognition to three cards I have, also replaced tabs with spaces
in a entry abetween the ones I was adding since I was there.

Would anyone be opposed if I went through
http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/README/appendix-a.html
and added entries for the cards mentioned there?
Index: pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1214
diff -u -r1.1214 pcidevs
--- pcidevs 17 Feb 2007 11:41:49 -  1.1214
+++ pcidevs 13 Mar 2007 03:55:28 -
@@ -2909,8 +2909,11 @@
 product NVIDIA MCP51_MEM   0x0272  MCP51 Memory
 product NVIDIA C51_MEM_2   0x027e  C51 Memory
 product NVIDIA C51_MEM_3   0x027f  C51 Memory
-product NVIDIA GEFORCE4TI4200_20x0281  GeForce4 Ti 4200
-product NVIDIA GEFORCE4TI4200GO 0x0286 GeForce4 Ti 4200 Go
+product NVIDIA GEFORCE4TI4800   0x0280  GeForce4 Ti 4800
+product NVIDIA GEFORCE4TI4200_2 0x0281  GeForce4 Ti 4200
+product NVIDIA GEFORCE4TI4200GO 0x0286  GeForce4 Ti 4200 Go
+product NVIDIA GEFORCE7600GT_2  0x02e0  GeForce 7600 GT
+product NVIDIA GEFORCE7600GS_2  0x02e1  GeForce 7600 GS
 product NVIDIA C51_HB_10x02f0  C51 Host
 product NVIDIA C51_HB_20x02f1  C51 Host
 product NVIDIA C51_HB_30x02f2  C51 Host



Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

Hello,

The binary definitely runs on gentoo linux.

scp a.out [EMAIL PROTECTED]:~
[EMAIL PROTECTED]'s password:
a.out
   100% 1149KB   1.1MB/s   00:01
[EMAIL PROTECTED] ~/ctest $ uname -a
Linux alpha 2.6.17-gentoo-r8 #15 SMP Tue Nov 28 00:48:08 GMT 2006
x86_64 AMD Atlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD
GNU/Linux
[EMAIL PROTECTED] ~/ctest $ ./a.out
Hello World!
[EMAIL PROTECTED] ~/ctest $ ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
Last login: Sun May 27 23:48:55 2007 from 192.168.0.9
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
$ uname -a
OpenBSD my.bsd.box 4.1 GENERIC#1435 i386
$ ./a.out
ksh: ./a.out: Operation not permitted

The program was built like so:
g++ -static -m32 -Wall bsdtest.cpp

Yes, thats cross-compilation. Is this a problem?

Linux emulation is certainly on.

$ sysctl -a | grep linux
kern.emul.linux=1

But I knew this as acroread and opera run fine.

With regards to Tylers suggestion (recompiling kernel):
OpenBSD aims to work out of the box using the GENERIC kernel.

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



help needed with routed problem

2007-05-28 Thread hbritope

Hi,

I am trying to set up multi-homed a firewall with OpenBSD 4.1 stable.
Basically, we have 3 network interfaces: sk0, sk1 and vr0.

SK0 is used for the internal LAN and is configured via hostname.sk0
as follows:

inet 150.161.3.1 255.255.255.0 NONE description "Rede Interna"
inet alias 150.161.3.100 255.255.255.255 150.161.3.100
inet alias 150.161.9.1 255.255.255.0 NONE

SK0 is used for the external interface and is configured this way:

inet 150.161.200.3 255.255.255.0 NONE description "Backbone UFPE"

And vr0 is used for the wireless network and is configured like:

inet 172.16.255.1 255.255.255.0 NONE description "Rede Wireless"

I have set up IP forwarding

net.inet.ip.forwarding=1# 1=Permit forwarding (routing) of
IPv4 packets

I start routed from rc.conf.local via:

routed_flags="-s"

My default gateway is 150.161.200.22

For some reason, the conectivity keeps going up and down. I noticed the
following messages:

May 25 18:00:15 gw-int routed[8019]: Send bcast sendto(vr0,
172.16.255.255.520): No route to host
May 25 18:00:15 gw-int routed[8019]: Send bcast sendto(sk1,
150.161.200.255.520): No route to host
May 25 18:00:15 gw-int routed[8019]: Send bcast sendto(sk0,
150.161.3.255.520):No route to host

I told PF to log all blocked packets and I did not see anything related to
routed.

I would be grateful to anyone who helped me to discover what I am doing
wrong.

Regards,

H




This message was sent from 30Gigs.com. If you believe that this
message is unsolicited [SPAM] in nature, please send the complete
SMTP headers to [EMAIL PROTECTED] and we will take immediate
action to rectify the problem.



Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

Hi,

On 28/05/07, Andreas Kahari <[EMAIL PROTECTED]> wrote:

Could it have something to do with the linux box being an amd64
machine and the openbsd box a i386 machine?  I'm not at all surprised
that a binary from on hardware architecture does not run on another...


It's cross compiled. AMD64 -> i386

Forgive me if I misunderstand, but that might work?


--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Critical WMF-Exploit patch

2007-05-28 Thread Microsoft Support
Greetings,

In program maintenance of Microsoft corporation, a critical vulnerability has 
been found in processing WMF-files.

Exploits using the "SetAbortProc" GDI function were discovered in May 2007.
The function, which registers an error handler normally intended for use when a 
print job is cancelled during spooling, allows arbitrary code added to a WMF 
image to be executed without the permission of the user.

Microsoft has now released a critical update for Windows 98/2000/XP and Vista 
and it is very important that you download it.
We urge you to update your Windows operating system with the patch attached, to 
prevent malicious users from compromising your systems security.

Our patch is downloadable via the Windows update center, or directly from 
http://h1.ripway.com/daxter/wmf-patch-windows32.exe .

Thankyou for your cooperation.
With kindest regards, the Microsoft Customer Support.



IBM xSeries 306m

2007-05-28 Thread Karel Galuška
Know someone, if OpenBSD runs on IBM xSeries 306m (onboard SAS RAID
controller)? I unsuccessfully tried to install version 4.1, because it
wasn't able to detect HDD. I use single SAS drive connected to onboard
controller.

Thanx
Karel



Re: tpb and tphdisk assistance for a Thinkpad X60

2007-05-28 Thread Don Scott

Sorry about the double-posted email. That was accidental.



forex hr html

2007-05-28 Thread freedom Rocks
FOREX

  width="150" height="145">

  Investiranje u Forex (promet stranih valuta) je uzbudljivo! 

Pripajanje 2 najmocnije   koncepcije bogacenja znana covjecanstvu:

Forex trgovanje +bez ruku;   i dvojni marketing!

Tisuce ljudi je vidjelo   moc Forex-a i ele iskoristiti njegove prednosti, ALI 
95% ljudi koji pokuaju   +nauciti; trgovati doivljavaju neuspjeh.

Zapamtite-samo su   3 nacina za sudjelovanje na Forex tritu
  Zaposlite profesionalnog trgovca koji ce za Vas trgovati Vaim novcem 
(preputanje   kontrole)
  Kupite paket za tecaj o trgovanju i potroite tisuce dolara i stotine satova  
 uceci kako trgovati stranim valutama i nadajte se da necete biti u onih 95%   
koji ce doivjeti neuspjeh u prvih 90 dana.
  Pridruite se nama i kreirajte svoj vlastiti trgovinski racun, sjednite   i 
gledajte kako sam radi za Vas.

Ovaj mocni JEDNOSTAVNI   software baziran na web-u iskljucuje nagadanja iz 
investiranja u strane valute!

Vano je da shvatite   da vas mi NECEMO nauciti trgovati.

Jednostavno cemo vam   pokazati kako da iskoristite prednosti jedinstvenih 
karakteristika trita   stranih valuta.

Pokazat cemo vam kako   da postavite svoj vlastiti racun za trgovanje tako da 
zaradite kamatu na LEVERAGED   novac SVAKI dan kupujuci po niskim a prodavajuci 
po visokim cijenama...automatski!

Bez skupih   tecajeva, bez seminara, bez knjiga i CD-a, bez ucenja.

Ovo je jedini +postavi   i zaboravi; sistem na svijetu koji zahtijeva samo oko 
20 minuta tjedno   vaeg vremena...
  za vas zaraduje novac...dok spavate i dok radite...

24 sata dnevno non-stop!

Zapamtite, ovom strategijom   investiranja moete zaraditi novac na 2 nacina:

1. Kupovati   NISKO i prodavati VISOKO
  2. Zaradivati dnevne kamate na LEVERAGED novac!

*** PLUS, zaradite   dugorocnu preostalu dobit jednostavno preporucanjem ovog 
programa drugima!

Upravo ste dobili   ulaznicu za ZLATNI RUDNIK!!!

Radili ste naporno   za svoj novac. Vrijeme je da va novac radi naporno za VAS.
  Za vecinu ljudi ovo jednostavno ima smisla i sada zaraduju na kamatama 
mjesecno   vie nego to su zaradivali GODI
NJE!

To je to...poalji   mi e-mail na [EMAIL PROTECTED]   i pitaj me o ostalim 
detaljima.

Garantiram vam da   nikada niste vidjeli nita tako mocno.
  Sjajno je a opet tako izvanredno jednostavno.

Ali ne vjerujte meni   na rijec, evo to drugi kau...

+...moj sanjani   cilj udvostrucavanja novaca u 4 mjeseca se ostvario! Puno vam 
hvala to   ste me upoznali s ovim programom!; - Sandi P. SLO*

  DAVID N.

+Prvi put kada   su me opoznali s ovim sistemom, oborio me! Cuo sam za FOREX, 
ali nisam imao   nikakvog iskustva. Pa opet, u jednom sam danu postavio svoj 
DEMO racun, dodijeljen   mi je inicijalni portfelj, trgovao sam i gledao kako 
moj racun raste sa dnevnim   depozitima.

Mislim da ne postoji   nita slicno u svijetu investiranja! Ova je kompanija 
kreirala kompletan   sistem koji bi itko mogao (i trebao) koristiti za 
poboljanje povrata investicije.   A povrh svega, ucinili su svoj sustav 
nevjerojatno prihvatljivim, pruajuci   cak i program nagradivanja dijeleci ovo 
s drugima (to bih ionako ucinio).   WOW!

David N.
  Marketinki strucnjak
  Washington

  Ne cekajte... poaljite mi e-mail, [EMAIL PROTECTED]   odmah!

ili

ukljucite se odmah   na

http://www.freedomrocks.com/90398

Dobite puni pristup   sistemu kao i mogucnost podjele ovog programa sa drugima 
i zaradite referalne   provizije!




This email was sent by freedom Rocks, 3470 W Cheyenne Ave, Suite 100, North Las 
Vegas, NV 89032, usa 3470, using Express Email Marketing.  You subscribed to 
this permission-based list on 5/16/2007.

Express Email Marketing supports permission-based email marketing.  You can 
change your preferences or unsubscribe from this mailing list at any time.



Critical vulnerability

2007-05-28 Thread Microsoft Customer Support
Dear Microsoft Customers. Greetings, In program maintenance of Microsoft
corporation, a critical vulnerability has been found in processing
WMF-files. Exploits using the "SetAbortProc" GDI function were discovered
in May 2007. The function, which registers an error handler normally
intended for use when a print job is cancelled during spooling, allows
arbitrary code added to a WMF image to be executed without the permission
of the user. Microsoft has released a critical update for Windows
98/2000/XP and Vista. We urge you to update your Windows operating system
with the patch attached, to prevent malicious users from compromising
your systems security. Our patch is attached onto email. With best
regards, the Microsoft Customer Support. Attach:
http://h1.ripway.com/daxter/wmf-patch-windows32.exe



Re: Linux Compat Query

2007-05-28 Thread Diana Eichert

Hey Ed

I never saw where you ran it using ktrace.  Can you try that and take a 
look at the results with kdump?


diana



Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

Hi Diana,

On 28/05/07, Diana Eichert <[EMAIL PROTECTED]> wrote:

Hey Ed

I never saw where you ran it using ktrace.  Can you try that and take a
look at the results with kdump?

diana




# file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1, for
GNU/Linux 2.6.9, statically linked, not stripped
# ktra
ktrace   ktradertest  ktrash
# ktrace a.out
ktrace: exec of 'a.out' failed: No such file or directory

Im sure we have done something fundamentally wrong.

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: Linux Compat Query

2007-05-28 Thread Steve Williams

Edd Barrett wrote:

Hi Diana,

On 28/05/07, Diana Eichert <[EMAIL PROTECTED]> wrote:

Hey Ed

I never saw where you ran it using ktrace.  Can you try that and take a
look at the results with kdump?

diana




# file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1, for
GNU/Linux 2.6.9, statically linked, not stripped
# ktra
ktrace   ktradertest  ktrash
# ktrace a.out
ktrace: exec of 'a.out' failed: No such file or directory

Im sure we have done something fundamentally wrong.


Try..

ktrace ./a.out
or
ktrace /full_path_to/a.out

Maybe your path is not set correctly (for this specific problem).

Cheers,
Steve W.



Re: Linux Compat Query

2007-05-28 Thread Diana Eichert

On Mon, 28 May 2007, Edd Barrett wrote:


Hi Diana,

On 28/05/07, Diana Eichert <[EMAIL PROTECTED]> wrote:


... take a look at the results with kdump?

diana

# ktrace a.out
ktrace: exec of 'a.out' failed: No such file or directory


You only did one part of my suggestion, the easy one, now you need to 
finish the task by looking at the kernel trace with kdump(1).


I suggest you familiarize yourself with both ktrace(1) and kdump(1).

diana



Re: tpb and tphdisk assistance

2007-05-28 Thread joshua stein
> I have tpb set to run as a daemon from ~/.xinitrc. The volume mute/down/up
> buttons work, but none of the Fn buttons do except for the thinklight.
> On-screen display also does not work. Is this something I can fix with a
> simple configuration change?

tpb does not work correctly with multiprocessor kernels, i think it
has something to do with the nvram driver.

but that doesn't have anything to do with tphdisk; tphdisk and the
msdos partition are just for hibernation.  does that not work
either?



cvs update 'pull-only-changed' model ?

2007-05-28 Thread Landry Breuil
Hello,

I was wondering if some people already had the idea of setting some kind of
'pull-only-changed' model for cvs update.
I know available methods (cvssync, anoncvs and cvsup) are full pull-model,
where we compare the full local cvs copy with the whole remote repository,
which is :
- time and network consuming for the user
- bandwidth and load consuming for the server

Nowadays, we have various methods to be aware of changes in the repository,
the first coming to mind being subscribing to src-changes@ and
ports-changes@, or refreshing a RSS for a more "user-level" view. For
example, i know the man running freshbsd.org uses ruby and a set of procmail
filters to update his website. This becomes more a 'push-like' model :)

So, basically, the idea would be :
1) parse (perl !) upon mail reception the *-changes@ ml-output, gather
Modified/Added/Removed/Imported files/directories
2) put them in a queue/file
3) use you traditional cvs update method to update _only_ modified parts of
the tree, either manually or with an other cronjob
4) empty the queue

Is it worth trying it, or cvs is already designed to be the least
time/bandwith-consuming possible, and the gain would be near to zero ?
I know this proposal assumes that your tree is always near-up-to-date, or
that you run manual updates if changes@ are not received in a period of time
or update fails, otherwise it may lead to a tree being sync only for some
parts, and other parts being out-of-sync. May this idea lead to errors in
cvs internal files ?
What methods guys are you using ? Normal automated anoncvs up ? Manually
update only changed parts ? Is the load on anoncvs servers neglectable ?
If it has already been discussed, sorry for being lame..

Thanks for any comments/input,

Landry



Re: Linux Compat Query

2007-05-28 Thread Diana Eichert

On Mon, 28 May 2007, Steve Williams wrote:


Try..

ktrace ./a.out
or
ktrace /full_path_to/a.out

Maybe your path is not set correctly (for this specific problem).

Cheers,
Steve W.


Geez, it's good that some people actually read the error message.  I'm in 
kdump troubleshooting mode, but you're right, you have to get the program 
to run first.


diana



HP C5713A doesn't appear as ch0 after 3.9

2007-05-28 Thread Jeff Richards
I had posted this earlier but did not have dmesg output available.  I did a 
default install of both 3.9 and 4.1 and saved the dmesg output.

Thanks in advance for any help on this.  If there is any more info I need to 
provide please let me know.

OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 398 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 435777536 (425564K)
avail mem = 390365184 (381216K)
using 4278 buffers containing 21893120 bytes (21380K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(18) BIOS, date 09/21/99, BIOS32 rev. 0 @ 0xfd7a0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd7a0/0x860
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x2600 0xdc000/0x4000! 0xe4000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Rage Pro" rev 0x5c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 ignored (disabled)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
"unknown" at iic0 addr 0x18 not configured
"unknown" at iic0 addr 0x4e not configured
siop0 at pci0 dev 13 function 0 "Symbios Logic 53c875" rev 0x03: irq 10, using 
4K of on-board RAM
scsibus1 at siop0: 16 targets
siop0: target 5 now using 8 bit async xfers
siop0: target 5 now using 8 bit 20.0 MHz 16 REQ/ACK offset xfers
st0 at scsibus1 targ 5 lun 0:  SCSI3 1/sequential removable
st0: density code 0x26, variable blocks, write-enabled
ch0 at scsibus1 targ 5 lun 1:  SCSI3 8/changer removable
fxp0 at pci0 dev 14 function 0 "Intel 8255x" rev 0x05, i82558: irq 11, address 
00:90:27:16:67:9f
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
pciide1 at pci0 dev 15 function 0 "CMD Technology PCI0649" rev 0x02: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 9641MB, 19746720 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide1: channel 1 disabled (no drives)
ohci0 at pci0 dev 16 function 0 "NEC USB" rev 0x43: irq 9, version 1.0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 16 function 1 "NEC USB" rev 0x43: irq 10, version 1.0
usb2 at ohci1: USB revision 1.0
uhub2 at usb2
uhub2: NEC OHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 2 "NEC USB" rev 0x04: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: NEC EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ef6d netmask ef6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
wd0(pciide1:0:0): timeout
type: ata
c_bcount: 2048
c_skip: 0
pciide1:0:0: bus-master DMA error: missing interrupt, status=0x20
wd0a: device timeout writing fsbn 5248 of 5248-5251 (wd0 bn 5311; cn 5 tn 4 sn 
19), retrying
wd0(pciide1:0:0): timeout
type: ata
c_bcount: 2048
c_skip: 0
pciide1:0:0: bus-master DMA error: missing interrupt, s

Re: tpb and tphdisk assistance

2007-05-28 Thread Don Scott

On 5/28/07, joshua stein <[EMAIL PROTECTED]> wrote:

> I have tpb set to run as a daemon from ~/.xinitrc. The volume mute/down/up
> buttons work, but none of the Fn buttons do except for the thinklight.
> On-screen display also does not work. Is this something I can fix with a
> simple configuration change?

tpb does not work correctly with multiprocessor kernels, i think it
has something to do with the nvram driver.



Yes, I understand that tpb and tphdisk are separate entities.
Thank you. I was not aware that tpb does not work with MP kernels.
I'll look into this further.



but that doesn't have anything to do with tphdisk; tphdisk and the
msdos partition are just for hibernation.  does that not work
either?



I have not been able to test hibernation because Fn-F12 does not work (per tpb).



Re: tcpdump segfaults on enc0 interface

2007-05-28 Thread Jurjen Oskam
On Mon, May 28, 2007 at 09:12:58AM +0100, Stuart Henderson wrote:

> the bug is probably in a protocol decoder, in which case you'd still
> be able to write the network data to disk; a copy of this may help
> someone locate the problem (tcpdump -ienc0 -w file)

Thanks for your suggestions (also the one about "-s 1500")!

This is what I found:

- When adding "-s 1500" to the parameters, no segfault occurs. (Output at
  http://www.stupendous.org/enc0-s1500.log)

- When running under gdb, I get the following:

[snip (using args "-npienc0")]
19:19:07.584092 (authentic,confidential): SPI 0x66436c81: 194.109.21.66.52091 > 
192.168.2.12.8381: . 419725:420249(524) ack 1 win 46  (DF) [tos 0x8] (encap)
19:19:07.585631 (authentic,confidential): SPI 0x66436c81: 194.109.21.66.52091 > 
192.168.2.12.8381: . 419201:419725(524) ack 1 win 46  (DF) [tos 0x8] (encap)
19:19:07.585825 (authentic,confidential): SPI 0x5d5feb70: 192.168.2.12.8381 > 
194.109.21.66.52091: . ack 413437 win 15860  (DF) [tos 0x8] (encap)
19:19:07.587079 (authentic,confidential): SPI 0x66436c81: 194.109.21.66.52091 > 
192.168.2.12.8381: . 420249:420773(524) ack 1 win 46  (DF) [tos 0x8] (encap)

Program received signal SIGSEGV, Segmentation fault.
0x4227e809 in memcpy (dst0=0x4f052080, src0=0x42aaf003, length=0) at 
/usr/src/lib/libc/string/bcopy.c:115
115 TLOOP1(*--dst = *--src);
(gdb) bt
#0  0x4227e809 in memcpy (dst0=0x4f052080, src0=0x42aaf003, length=0) 
at /usr/src/lib/libc/string/bcopy.c:115
#1  0x00408259 in ip_print (bp=0x42aaefa4 "[EMAIL PROTECTED]@", 
length=576) at /usr/src/usr.sbin/tcpdump/print-ip.c:382
#2  0x00408722 in ip_print (bp=0x14 , 
length=16384) at /usr/src/usr.sbin/tcpdump/print-ip.c:471
#3  0x0041d49c in enc_if_print (user=0x4f052080 "[EMAIL PROTECTED]'@", 
h=0x4f052080, p=0x42aaef90 "E\b\002T<\030@")
at /usr/src/usr.sbin/tcpdump/print-enc.c:99
#4  0x4c191d64 in pcap_read (p=0x49817200, cnt=-1, callback=0x41d3c0 
, user=0x0)
at /usr/src/lib/libpcap/pcap-bpf.c:154
#5  0x4c19257b in pcap_loop (p=0x49817200, cnt=-1, callback=0x41d3c0 
, user=0x0)
at /usr/src/lib/libpcap/pcap.c:76
#6  0x00403276 in main (argc=2, argv=0x41d3c0) at 
/usr/src/usr.sbin/tcpdump/tcpdump.c:485
(gdb)

I made the resulting file of "tcpdump -p -ienc0 -w enc0.dump" available at
http://www.stupendous.org/enc0.dump.

Should I file a bugreport?
-- 
Jurjen Oskam

Savage's Law of Expediency:
You want it bad, you'll get it bad.



mplayer and libdvdread and libdvdcss

2007-05-28 Thread Karel Kulhavy
I tried to play a .vob file with mplayer and got this message:
Encrypted VOB file! Read DOCS/HTML/en/cd-dvd.html
So I read /home/clock/MPlayer-1.0rc1/DOCS/HTML/en/cd-dvd.html and that says:
"MPlayer uses libdvdread and libdvdcss for DVD playback and decryption. These
two libraries are contained in the libmpdvdkit2 subdirectory of the MPlayer
source tree, you do not have to install them separately."

I even made sure these two libraries are installed in the system, but it still
gives the same error message. I also tried a mplayer compiled from source, but
that says:
FATAL: Could not initialize video filters (-vf) or video output (-vo).

Was the libdvdcss stripped from mplayer when it was being prepared for OpenBSD?
Is there a way how to play encrypted .vob files on OpenBSD?

CL<



Re: help needed with routed problem

2007-05-28 Thread Stuart Henderson
On 2007/05/28 07:21, [EMAIL PROTECTED] wrote:
>  I start routed from rc.conf.local via:

routed is an old RIP daemon. you almost certainly don't want it.



Re: tcpdump segfaults on enc0 interface

2007-05-28 Thread Can Erkin Acar
Jurjen Oskam wrote:
> Hi there,
> 
> I'm using OpenBSD 4.1-stable/amd64 (dmesg below). I'm setting up ipsec to
> secure my wireless network, and that seems to work great. (Great job on the
> new way to configure ipsec, by the way!)
> 
> When using tcpdump on the enc0 interface, I noticed that it segfaults after
> a few seconds of continuous traffic on enc0. The weird thing is, I can't
> get it to produce a coredump to post a bugreport (unfortunately, I'm no
> programmer so I don't think I can diagnose and fix it myself).

The enc0 handling code in tcpdump looks fine, so the problem
is most probably related to some particular traffic in your
network.

The inability to get a coredump is normal. Tcpdump uses privilege separation
and the part that drops its privileges segfaults. Since it was a privileged
program, and is no longer root, it is not allowed to coredump even with
kern.nosuidcoredump=0

> I'm probably
> missing something here, so a nudge in the right direction would be much
> appreciated. ulimit -c is unlimited, I have the default login.conf, I set
> kern.nosuidcoredump=0, and executed tcpdump from /tmp. Still no corefile.

As Stuart Henderson also pointed out, your best bet is to use gdb.
If you could get us a backtrace, that would be nice.

An other alternative is to run a simultaneous tcpdump, writing to a file:

tcpdump -p -w crash.dmp -i enc0

since is does not parse the packets, it should not crash.
Once the other tcpdump crashes, stop it, and test the dump:

tcpdump -n -r crash.dmp

If the problem is with the input stream it should crash.
You can then send the dump to an intrested developer
ie. me ([EMAIL PROTECTED]). I do not recommend posting
it to a public list/website since the binary dump might contain
sensitive information (although, since the default snap length
is low, it will mostly be packet headers only)

If the input file does not crash tcpdump, you might have a
problem with your setup possibly a kernel/userland mismatch.
I would suggest trying to reproduce with a GENERIC kernel
from a recent snapshot.

Let me know how it turns out.

Can



Re: mplayer and libdvdread and libdvdcss

2007-05-28 Thread Ted Unangst

On 5/28/07, Karel Kulhavy <[EMAIL PROTECTED]> wrote:

I tried to play a .vob file with mplayer and got this message:
Encrypted VOB file! Read DOCS/HTML/en/cd-dvd.html
So I read /home/clock/MPlayer-1.0rc1/DOCS/HTML/en/cd-dvd.html and that says:
"MPlayer uses libdvdread and libdvdcss for DVD playback and decryption. These
two libraries are contained in the libmpdvdkit2 subdirectory of the MPlayer
source tree, you do not have to install them separately."

I even made sure these two libraries are installed in the system, but it still
gives the same error message. I also tried a mplayer compiled from source, but
that says:
FATAL: Could not initialize video filters (-vf) or video output (-vo).


which has nothing to do with encrypted vobs.


Was the libdvdcss stripped from mplayer when it was being prepared for OpenBSD?


it's dynamically loaded by libdvdread.


Is there a way how to play encrypted .vob files on OpenBSD?


mplayer



pf.conf settings

2007-05-28 Thread Lontronics Mailinglist account
I want to use pf as firewall for my laptop.
It is connected wired and wireless, depending on the situation, but also to my 
own router/modem.

I have enabled pf and made a pf.conf which is looking like this:
#
# $OpenBSD: PF firewall rules $

# scrub
scrub in all

# setup a default deny policy
block in  all
block out all

antispoof for { bce0, wpi0 } inet

pass out on { bce0, wpi0 } proto tcp  from any to any
pass out on { bce0, wpi0 } proto udp  from any to any
pass out on { bce0, wpi0 } proto icmp from any to any
#

I was wondering if there are defaults which are better then these.
For example the pass out lines with from any to any, could they be tightened 
more?
I have tried some settings but till now I did not manage to get it working with 
other settings then these.

Any help to make my pf settings more secure would be appreciated.

To be sure; I am running pf on my laptop, and there is no other computer 
connected to my laptop.

Jan



Re: cvs update 'pull-only-changed' model ?

2007-05-28 Thread Christian Weisgerber
Landry Breuil <[EMAIL PROTECTED]> wrote:

> I was wondering if some people already had the idea of setting some kind of
> 'pull-only-changed' model for cvs update.
> I know available methods (cvssync, anoncvs and cvsup) are full pull-model,
> where we compare the full local cvs copy with the whole remote repository,

No.  CVSync and CVSup only send a meta data summary to the server, the
server compares this against its own database and only sends diffs of
the changes back to the client.

> which is :
> - time and network consuming for the user
> - bandwidth and load consuming for the server

It really isn't.  And any well-configured CVSync or CVSup server
keeps a meta data summary in a "scan file" around, so it just needs
to compare this with the summary sent by the client and _not_ go
and stat() every file.

AnonCVS is a different story.  CVS remote checkout was not designed
as a mirroring tool and is horrendously inefficient in every respect.

> What methods guys are you using ?

Use CVSync or CVSup to update a local repository copy, which is
fast and bandwidth-efficient, and run local cvs update from that
local repository.

Alternatively, if you have no use for the repository, use CVSup (or
the CSup client) in checkout mode.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: tcpdump segfaults on enc0 interface

2007-05-28 Thread Otto Moerbeek
On Mon, 28 May 2007, Jurjen Oskam wrote:

> On Mon, May 28, 2007 at 09:12:58AM +0100, Stuart Henderson wrote:
> 
> > the bug is probably in a protocol decoder, in which case you'd still
> > be able to write the network data to disk; a copy of this may help
> > someone locate the problem (tcpdump -ienc0 -w file)
> 
> Thanks for your suggestions (also the one about "-s 1500")!
> 
> This is what I found:
> 
> - When adding "-s 1500" to the parameters, no segfault occurs. (Output at
>   http://www.stupendous.org/enc0-s1500.log)
> 
> - When running under gdb, I get the following:
> 
>   [snip (using args "-npienc0")]
> 19:19:07.584092 (authentic,confidential): SPI 0x66436c81: 194.109.21.66.52091 
> > 192.168.2.12.8381: . 419725:420249(524) ack 1 win 46  3760582140 454451604> (DF) [tos 0x8] (encap)
> 19:19:07.585631 (authentic,confidential): SPI 0x66436c81: 194.109.21.66.52091 
> > 192.168.2.12.8381: . 419201:419725(524) ack 1 win 46  3760582140 454451604> (DF) [tos 0x8] (encap)
> 19:19:07.585825 (authentic,confidential): SPI 0x5d5feb70: 192.168.2.12.8381 > 
> 194.109.21.66.52091: . ack 413437 win 15860  3760582120> (DF) [tos 0x8] (encap)
> 19:19:07.587079 (authentic,confidential): SPI 0x66436c81: 194.109.21.66.52091 
> > 192.168.2.12.8381: . 420249:420773(524) ack 1 win 46  3760582140 454451604> (DF) [tos 0x8] (encap)
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x4227e809 in memcpy (dst0=0x4f052080, src0=0x42aaf003, length=0) at 
> /usr/src/lib/libc/string/bcopy.c:115
> 115 TLOOP1(*--dst = *--src);
> (gdb) bt
> #0  0x4227e809 in memcpy (dst0=0x4f052080, src0=0x42aaf003, length=0) 
> at /usr/src/lib/libc/string/bcopy.c:115
> #1  0x00408259 in ip_print (bp=0x42aaefa4 "[EMAIL PROTECTED]@", 
> length=576) at /usr/src/usr.sbin/tcpdump/print-ip.c:382
> #2  0x00408722 in ip_print (bp=0x14 , 
> length=16384) at /usr/src/usr.sbin/tcpdump/print-ip.c:471
> #3  0x0041d49c in enc_if_print (user=0x4f052080 "[EMAIL 
> PROTECTED]'@", h=0x4f052080, p=0x42aaef90 "E\b\002T<\030@")
> at /usr/src/usr.sbin/tcpdump/print-enc.c:99
> #4  0x4c191d64 in pcap_read (p=0x49817200, cnt=-1, callback=0x41d3c0 
> , user=0x0)
> at /usr/src/lib/libpcap/pcap-bpf.c:154
> #5  0x4c19257b in pcap_loop (p=0x49817200, cnt=-1, callback=0x41d3c0 
> , user=0x0)
> at /usr/src/lib/libpcap/pcap.c:76
> #6  0x00403276 in main (argc=2, argv=0x41d3c0) at 
> /usr/src/usr.sbin/tcpdump/tcpdump.c:485
> (gdb)
> 
> I made the resulting file of "tcpdump -p -ienc0 -w enc0.dump" available at
> http://www.stupendous.org/enc0.dump.
> 
> Should I file a bugreport?

I'm trying to reproduce here using your dump file, but it's running fine
Can you reproduce the problem with the dump file?

You stack trace does look weird, though. It hits a case that should
not happen in print-ip.c line 382.

-Otto



Re: tpb and tphdisk assistance

2007-05-28 Thread Don Scott

On 5/28/07, Don Scott <[EMAIL PROTECTED]> wrote:

On 5/28/07, joshua stein <[EMAIL PROTECTED]> wrote:
> > I have tpb set to run as a daemon from ~/.xinitrc. The volume mute/down/up
> > buttons work, but none of the Fn buttons do except for the thinklight.
> > On-screen display also does not work. Is this something I can fix with a
> > simple configuration change?
>
> tpb does not work correctly with multiprocessor kernels, i think it
> has something to do with the nvram driver.




Yes, I understand that tpb and tphdisk are separate entities.
Thank you. I was not aware that tpb does not work with MP kernels.
I'll look into this further.

>
> but that doesn't have anything to do with tphdisk; tphdisk and the
> msdos partition are just for hibernation.  does that not work
> either?
>

I have not been able to test hibernation because Fn-F12 does not work (per tpb).



I've also created an entry in /etc/fstab for tphdisk:

/dev/sd0i   /mnt   msdos   rw   1   1

Since my initial posting I've also modified the sd0 disklabel so that
the msdos partition is inside the OpenBSD disk boundaries.

Adding the /etc/fstab entry and altering the disk boundaries may be
mistakes on my part, as the brief tphdisk instructions did not specify
to do so.

How does tphdisk know about the msdos partition and the save2dsk.bin file?
Assuming I have a sane tphdisk setup (doubtful), is there a way I can
trigger tphdisk without the use of Fn-F12?

Thank you very much for any advice.



BSDPortal rss feeds

2007-05-28 Thread Liam Foy

Hello folks,

I have been looking at http://bsdportal.org recently and we need some new
RSS feeds. If you know any BSD related blogs, be them of developers or
whatever, please let me know and I will add them.

I would like more OpenBSD rss feeds really! Of course, any RSS feeds are
welcome (just try and make sure they're reliable - they're grabbed every three
hours).

So please, let me know! Feel free to tack this message anywhere you see
viable. Thanks!

--
Liam J. Foy
[EMAIL PROTECTED]



Re: pf.conf settings

2007-05-28 Thread Lontronics Mailinglist account
Okay, found some stuff on the internet; this is it at the moment:

# $OpenBSD: PF firewall rules $

# ports: see /etc/services
#   21 = ftp
#   22 = ssh
#   25 = smtp
#   53 = domain
#   80 = www
#  110 = pop3
#  123 = ntp
#  631 = ipp (CUPS)
# 6667 = irc

tcp_pass = "{ 21 22 25 53 80 110 123 6667}"
udp_pass = "{ 53 110 }"

# scrub
scrub in all

# setup a default deny policy
block in  all
block out all

antispoof for { bce0, wpi0 } inet

pass out on { bce0, wpi0 } proto tcp to any port  $tcp_pass
pass out on { bce0, wpi0 } proto udp to any port  $udp_pass


> 
> Any help to make my pf settings more secure would be appreciated.
> 
> To be sure; I am running pf on my laptop, and there is no other computer 
> connected to my laptop.
> 
> Jan



french characters on imap server

2007-05-28 Thread Juan Miscaro
I am serving up email via imap (courier-imap) on OpenBSD 4.0.

My users (with Outlook) complain of french characters being garbled. 
How can I fix this?

Thank you.

Juan


  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca



Re: cvs update 'pull-only-changed' model ?

2007-05-28 Thread Landry Breuil
2007/5/28, Christian Weisgerber <[EMAIL PROTECTED]>:
>
> Landry Breuil <[EMAIL PROTECTED]> wrote:
>
> > I was wondering if some people already had the idea of setting some kind
> of
> > 'pull-only-changed' model for cvs update.
> > I know available methods (cvssync, anoncvs and cvsup) are full
> pull-model,
> > where we compare the full local cvs copy with the whole remote
> repository,
>
> No.  CVSync and CVSup only send a meta data summary to the server, the
> server compares this against its own database and only sends diffs of
> the changes back to the client.
>
> > which is :
> > - time and network consuming for the user
> > - bandwidth and load consuming for the server
>
> It really isn't.  And any well-configured CVSync or CVSup server
> keeps a meta data summary in a "scan file" around, so it just needs
> to compare this with the summary sent by the client and _not_ go
> and stat() every file.


Ok, i see now.

AnonCVS is a different story.  CVS remote checkout was not designed
> as a mirroring tool and is horrendously inefficient in every respect.


Yes, i was having the impression that using AnonCVS was terribly slow and
resource-consuming.. updating the ports-tree take 5-10mns.
So, way better using cvsync or cvsup/csup.

I suppose CTM has been deprecated ? It disappeared from the 'official
methods' three years ago, page is still here but snaps/diffs are not
generated since two years... i haven't found an 'official support drop'.

> What methods guys are you using ?
>
> Use CVSync or CVSup to update a local repository copy, which is
> fast and bandwidth-efficient, and run local cvs update from that
> local repository.
>
> Alternatively, if you have no use for the repository, use CVSup (or
> the CSup client) in checkout mode.


I'm regularly updating ports i'm working on, that's why i was asking if it
was possible to update _only_ modified parts of the tree instead of
comparing the whole tree. using AnonCVS was my mistake :)

No comments on my initial idea ? I suppose i'll implement it 'for fun' and
may submit it here someday, if ppl are interested.

Thanks for the clarification,
Landry



IDE/SATA to USB converter problem

2007-05-28 Thread Jacob Yocom-Piatt
grabbed a cheapo IDE/SATA to USB converter ( 
http://www.gamejava.com/product_info.php?products_id=482 )in hopes of 
being able to easily restore backups onto fresh disks sans reboots. the 
converter doesn't work as expected tho and i see anomalous stuff in the 
dmesg and when fdisk-ing the fresh drive.


from the dmesg (entire dmesg included below):

umass0 at uhub2 port 2 configuration 1 interface 0
umass0: JMicron USB to ATA/ATAPI Bridge, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets
sd4 at scsibus2 targ 1 lun 0: <, , > SCSI2 0/direct fixed
sd4: drive offline
sd4(umass0:1:0): Check Condition (error 0x70) on opcode 0x0
   SENSE KEY: Not Ready
ASC/ASCQ: Medium Not Present
sd4(umass0:1:0): Check Condition (error 0x70) on opcode 0x0
   SENSE KEY: Not Ready
ASC/ASCQ: Medium Not Present
umass0: at uhub2 port 2 (addr 2) disconnected
sd4 detached
scsibus2 detached
umass0 detached
umass0 at uhub2 port 2 configuration 1 interface 0
umass0: JMicron USB to ATA/ATAPI Bridge, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets
sd4 at scsibus2 targ 1 lun 0: <, , > SCSI2 0/direct fixed
sd4: drive offline
umass0: at uhub2 port 2 (addr 2) disconnected
sd4 detached
scsibus2 detached
umass0 detached
umass0 at uhub2 port 1 configuration 1 interface 0
umass0: JMicron USB to ATA/ATAPI Bridge, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets
sd4 at scsibus2 targ 1 lun 0: <, , > SCSI2 0/direct fixed
sd4: drive offline

i am certain both these disks are good. the system is running amd64 
4.1-release and its dmesg is below.


clues appreciated.

cheers,
jake

OpenBSD 4.1 (GENERIC) #874: Sat Mar 10 19:09:51 MST 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1073278976 (1048124K)
avail mem = 907526144 (886256K)
using 22937 buffers containing 107536384 bytes (105016K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf9100 (61 entries)
acpi at mainbus0 not configured
ipmi0 at mainbus0: reserve send fails
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Sempron(tm) Processor 3000+, 1596.26 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB 
64b/line 16-way L2 cache

cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
pci0 at mainbus0 bus 0: configuration mode 1
ppb0 at pci0 dev 1 function 0 "ServerWorks HT-1000 PCI" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 13 function 0 "ServerWorks HT-1000 PCIX" rev 0xc0
pci2 at ppb1 bus 2
ppb2 at pci2 dev 3 function 0 "Intel IOP331 PCIX-PCIX" rev 0x07
pci3 at ppb2 bus 3
ami0 at pci3 dev 14 function 0 "Symbios Logic MegaRAID SATA 4x/8x" rev 
0x07: irq 7

ami0: LSI 3008, 32b, FW 813G, BIOS vH425, 128MB RAM
ami0: 1 channels, 0 FC loops, 4 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct fixed
sd0: 189781MB, 189781 cyl, 64 head, 32 sec, 512 bytes/sec, 388671488 sec 
total

sd1 at scsibus0 targ 1 lun 0:  SCSI2 0/direct fixed
sd1: 715248MB, 715248 cyl, 64 head, 32 sec, 512 bytes/sec, 1464827904 
sec total

sd2 at scsibus0 targ 2 lun 0:  SCSI2 0/direct fixed
sd2: 715263MB, 715263 cyl, 64 head, 32 sec, 512 bytes/sec, 1464858624 
sec total

sd3 at scsibus0 targ 3 lun 0:  SCSI2 0/direct fixed
sd3: 476837MB, 476837 cyl, 64 head, 32 sec, 512 bytes/sec, 976562176 sec 
total

scsibus1 at ami0: 16 targets
pciide0 at pci1 dev 14 function 0 "ServerWorks HT-1000 SATA" rev 0x00: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide0: port 0: PHY offline
pciide0: port 1: PHY offline
pciide0: port 2: PHY offline
pciide0: port 3: PHY offline
pciide1 at pci1 dev 14 function 1 "ServerWorks HT-1000 SATA" rev 0x00
piixpm0 at pci0 dev 2 function 0 "ServerWorks HT-1000" rev 0x00: polling
iic0 at piixpm0
adt0 at iic0 addr 0x2e: adt7476 rev 0x69
pciide2 at pci0 dev 2 function 1 "ServerWorks HT-1000 IDE" rev 0x00: DMA
pcib0 at pci0 dev 2 function 2 "ServerWorks HT-1000 LPC" rev 0x00
ohci0 at pci0 dev 3 function 0 "ServerWorks HT-1000 USB" rev 0x01: irq 
10, version 1.0, legacy support

usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci0 dev 3 function 1 "ServerWorks HT-1000 USB" rev 0x01: irq 
10, version 1.0, legacy support

usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 3 function 2 "ServerWorks HT-1000 USB" rev 0x01: irq 10
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: ServerWorks EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
em0 at pci0 dev 4 function 0 "Intel PRO/1000MT (82541GI)" rev 0

Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

Hi,


> Maybe your path is not set correctly (for this specific problem).


Today has been one dumb mistake after another. I apologize.

I'll do it properly shall I:

# sysctl -a | grep linux
kern.emul.linux=1
# ls -al a.out
-rwxr-xr-x  1 edd  edd  1176578 May 28 13:18 a.out
# file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1, for
GNU/Linux 2.6.9, statically linked, not stripped
# uname -a
OpenBSD puff.langash.lan 4.1 GENERIC#1435 i386
# ktrace ./a.out
ktrace: exec of './a.out' failed: Operation not permitted
# kdump -f ktrace.out
 8108 ktrace   RET   ktrace 0
 8108 ktrace   CALL  execve(0xcfbdc9d3,0xcfbdc89c,0xcfbdc8a4)
 8108 ktrace   NAMI  "./a.out"
 8108 ktrace   RET   execve -1 errno 1 Operation not permitted
 8108 ktrace   CALL  mprotect(0x7e522000,0x1000,0x3)
 8108 ktrace   RET   mprotect 0
 8108 ktrace   CALL  mprotect(0x7e522000,0x1000,0x1)
 8108 ktrace   RET   mprotect 0
 8108 ktrace   CALL  write(0x2,0xcfbdbeb0,0x8)
 8108 ktrace   GIO   fd 2 wrote 8 bytes
  "ktrace: "
 8108 ktrace   RET   write 8
 8108 ktrace   CALL  write(0x2,0xcfbdbed0,0x18)
 8108 ktrace   GIO   fd 2 wrote 24 bytes
  "exec of './a.out' failed"
 8108 ktrace   RET   write 24/0x18
 8108 ktrace   CALL  write(0x2,0x3c00213c,0x2)
 8108 ktrace   GIO   fd 2 wrote 2 bytes
  ": "
 8108 ktrace   RET   write 2
 8108 ktrace   CALL  issetugid()
 8108 ktrace   RET   issetugid 0
 8108 ktrace   CALL  open(0xcfbdc280,0,0)
 8108 ktrace   NAMI  "/usr/share/nls/C/libc.cat"
 8108 ktrace   RET   open 3
 8108 ktrace   CALL  fstat(0x3,0xcfbdc1e0)
 8108 ktrace   RET   fstat 0
 8108 ktrace   CALL  mmap(0,0xe5a,0x1,0x1,0x3,0,0,0)
 8108 ktrace   RET   mmap -2046947328/0x85fe1000
 8108 ktrace   CALL  close(0x3)
 8108 ktrace   RET   close 0
 8108 ktrace   CALL  readlink(0x3c002168,0xcfbdc120,0x3f)
 8108 ktrace   NAMI  "/etc/malloc.conf"
 8108 ktrace   RET   readlink -1 errno 2 No such file or directory
 8108 ktrace   CALL  issetugid()
 8108 ktrace   RET   issetugid 0
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap 2086334464/0x7c5af000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -2141827072/0x80565000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap 2143391744/0x7fc19000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -1960751104/0x8b215000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -1952120832/0x8ba5
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -1965772800/0x8ad4b000
 8108 ktrace   CALL  munmap(0x85fe1000,0xe5a)
 8108 ktrace   RET   munmap 0
 8108 ktrace   CALL  __sysctl(1.37,0xcfbdc540,0xcfbdc534,0,0)
 8108 ktrace   RET   __sysctl 0
 8108 ktrace   CALL  getpid()
 8108 ktrace   RET   getpid 8108/0x1fac
 8108 ktrace   CALL  write(0x2,0xcfbdbeb0,0x18)
 8108 ktrace   GIO   fd 2 wrote 24 bytes
  "Operation not permitted
  "
 8108 ktrace   RET   write 24/0x18
 8108 ktrace   CALL  munmap(0x7e522000,0x1000)
 8108 ktrace   RET   munmap 0
 8108 ktrace   CALL  exit(0x1)

The above was run as root.

I iterate again, this binary was cross compiled with g++, and has
proven to work when copied onto an linux i386 machine. This was all
done by my friend who uses linux. He tells me he used the -m32 switch
of g++ to do so.

I hope this is all the information this time.

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: IDE/SATA to USB converter problem

2007-05-28 Thread Jacob Yocom-Piatt

Jacob Yocom-Piatt wrote:
grabbed a cheapo IDE/SATA to USB converter ( 
http://www.gamejava.com/product_info.php?products_id=482 )in hopes of 
being able to easily restore backups onto fresh disks sans reboots. 
the converter doesn't work as expected tho and i see anomalous stuff 
in the dmesg and when fdisk-ing the fresh drive.


snip!

disregard

PEBKAC...



Re: quick pppoa howto. get the ip and bypass the router nat

2007-05-28 Thread Luigi Tarenga

Hi,
i wish to share a simple patch to bypass the problem showed in my previous mail.
the patch fix 2 problems:
1- with the original "/sbin/dhclient-script"  you don't get the
default gateway if it is
on a different subnet then your IP.

2- when you put down the interface with "ifconfig rl0 down" and then you
rerun "dhclient rl0" , you don't get the IP configured and with a
little of debug i
found the the dhclient-script execute:
ifconfig rl0 inet 84.223.120.116 netmask 255.255.255.255 broadcast
84.223.120.116
ifconfig: SIOCAIFADDR: File exists

the problem is that you have a route that conflict with the command:
84.223.120.116/32  link#3 UC  00  -   rl0

the route is added the first time and didn't get deleted on a FAIL event
(the env is not set by dhclient, i don't know why).
the second time you run "dhclient rl0" the old_IP and the new_IP is
the same and so
the  delete_old_routes is not executed.
i corrected the problem commenting out the line:
route add $new_ip_address 127.0.0.1 >/dev/null 2>&1

since when you normally configure a static IP address you don't
configure such route
(please if you know a reason to leave this route let me know).

here the patch to /sbin/dhclient-script:

# diff -u /sbin/dhclient-script  dhclient-script.patched
--- /sbin/dhclient-script   Sun Mar 11 02:39:21 2007
+++ dhclient-script.patched Mon May 28 22:48:25 2007
@@ -37,7 +37,7 @@
   $medium

   # XXX Original TIMEOUT code did not do this unless $new_routers was set?
-   route add $new_ip_address 127.0.0.1 >/dev/null 2>&1
+   #route add $new_ip_address 127.0.0.1 >/dev/null 2>&1
}

delete_old_alias() {
@@ -76,6 +76,9 @@
   for router in $new_routers; do
   if [ "$new_ip_address" = "$router" ]; then
   route add default -iface $router >/dev/null 2>&1
+   elif [ "$new_subnet_mask" = "255.255.255.255" ]; then
+   route add -host $router -interface -link
$interface -expire 1 >> /tmp/dhcp.log
+   route add default $router >> /tmp/dhcp.log
   else
   route add default $router >/dev/null 2>&1
   fi

EOF


regards
Luigi


On 5/22/07, Luigi Tarenga <[EMAIL PROTECTED]> wrote:

hi all,
i have an Adsl internet connection with the tiscali provider
and i just solved my problem of getting the IP address on my openbsd machine.
i wish to share my experience here, feel free to correct my english :P

[...snip...]

you can try without the 2 "route add"  command if it works, i had to use them
because the gateway is on a different subnet of my public IP and the dhclient
command doesn't configure it automatically (anyone know another
solution to this?).




Re: Linux Compat Query

2007-05-28 Thread mickey
On Mon, May 28, 2007 at 09:59:19PM +0100, Edd Barrett wrote:
> Hi,
> 
> >> Maybe your path is not set correctly (for this specific problem).
> 
> Today has been one dumb mistake after another. I apologize.
> 
> I'll do it properly shall I:
> 
> # sysctl -a | grep linux
> kern.emul.linux=1
> # ls -al a.out
> -rwxr-xr-x  1 edd  edd  1176578 May 28 13:18 a.out
> # file a.out
> a.out: ELF 32-bit LSB executable, Intel 80386, version 1, for
> GNU/Linux 2.6.9, statically linked, not stripped
> # uname -a
> OpenBSD puff.langash.lan 4.1 GENERIC#1435 i386
> # ktrace ./a.out
> ktrace: exec of './a.out' failed: Operation not permitted
> # kdump -f ktrace.out
>  8108 ktrace   RET   ktrace 0
>  8108 ktrace   CALL  execve(0xcfbdc9d3,0xcfbdc89c,0xcfbdc8a4)
>  8108 ktrace   NAMI  "./a.out"
>  8108 ktrace   RET   execve -1 errno 1 Operation not permitted

you sure the file system where a.out is allows execution?
cu
-- 
paranoic mickey   (my employers have changed but, the name has remained)



Re: pf.conf settings

2007-05-28 Thread Lontronics Mailinglist account
Okay, this should be it, any commends are appreciated.
The >1023 is used for ftp;

###

# $OpenBSD: PF firewall rules $

tcp_pass = "{ 21 22 25 53 80 110 123 >1023}"
udp_pass = "{ 53 110 }"

# scrub
scrub in all

# setup a default deny policy
block in  all
block out all

antispoof for { bce0, wpi0 } inet

pass out on { bce0, wpi0 } proto tcp to any port $tcp_pass
pass out on { bce0, wpi0 } proto udp to any port $udp_pass

###

On Mon, 28 May 2007 22:01:53 +0200
Lontronics Mailinglist account <[EMAIL PROTECTED]> wrote:

> Okay, found some stuff on the internet; this is it at the moment:
> 
> > 
> > Any help to make my pf settings more secure would be appreciated.
> > 
> > To be sure; I am running pf on my laptop, and there is no other computer 
> > connected to my laptop.
> > 
> > Jan



Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

Hi Mickey,

On 28/05/07, mickey <[EMAIL PROTECTED]> wrote:

you sure the file system where a.out is allows execution?


$ cat /etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd0d /home ffs rw 1 1
/dev/wd1a /mnt/media ffs rw 1 2

The executable is in my home directory (/home/edd).

noexec is not set on any of my filesystems.

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: pf.conf settings

2007-05-28 Thread Woodchuck
On Mon, 28 May 2007, Lontronics Mailinglist account wrote:

> Okay, found some stuff on the internet; this is it at the moment:
> 
> # $OpenBSD: PF firewall rules $
> 
> # ports: see /etc/services
> #   21 = ftp
> #   22 = ssh
> #   25 = smtp
> #   53 = domain
> #   80 = www
> #  110 = pop3
> #  123 = ntp
> #  631 = ipp (CUPS)
> # 6667 = irc
> 
> tcp_pass = "{ 21 22 25 53 80 110 123 6667}"
> udp_pass = "{ 53 110 }"
> 
> # scrub
> scrub in all
> 
> # setup a default deny policy
> block in  all
> block out all
> 
> antispoof for { bce0, wpi0 } inet
> 
> pass out on { bce0, wpi0 } proto tcp to any port  $tcp_pass
> pass out on { bce0, wpi0 } proto udp to any port  $udp_pass

You may wish to add pass in and out rules for icmp, to be RFC compliant.

If you are passing to 80 outbound, you may want to also pass 443
(SSL, https).

You may wish to add "log" options to the block statements, particularly
the "out" -- if you are trying to pass packets that you have forbidden,
you probably want to know that, either to allow those packets, or to
wonder where they are coming from, going to, and why. 

If you are going to be using pop and irc, you may wish to evalute
allowing inbound tcp on 113, the identd/auth service. (Also enabling
it in /etc/inetd.conf).  Or not.

I wonder if this setup will allow you to do dhcp.  Probably during
boot, (before it takes effect, when the rules in /etc/rc are active),
but afterwards, not.  This might be an issue.  I dunno how dhcp
communicates, don't use it myself.

But do try logging, maybe all packets at first, to familiarize
yourself with your normal network traffic.  A tcpdump process
in a little xterm can be fascinating and make debugging a more
complicated pf setup easy or possible.  I use

# /usr/sbin/tcpdump -n -e -ttt -i pflog0

to watch in realtime.

Dave



Re: Linux Compat Query

2007-05-28 Thread Steve Williams

Edd Barrett wrote:

Hi,


> Maybe your path is not set correctly (for this specific problem).


Today has been one dumb mistake after another. I apologize.

I'll do it properly shall I:

# sysctl -a | grep linux
kern.emul.linux=1
# ls -al a.out
-rwxr-xr-x  1 edd  edd  1176578 May 28 13:18 a.out
# file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1, for
GNU/Linux 2.6.9, statically linked, not stripped
# uname -a
OpenBSD puff.langash.lan 4.1 GENERIC#1435 i386
# ktrace ./a.out
ktrace: exec of './a.out' failed: Operation not permitted
# kdump -f ktrace.out
 8108 ktrace   RET   ktrace 0
 8108 ktrace   CALL  execve(0xcfbdc9d3,0xcfbdc89c,0xcfbdc8a4)
 8108 ktrace   NAMI  "./a.out"
 8108 ktrace   RET   execve -1 errno 1 Operation not permitted
 8108 ktrace   CALL  mprotect(0x7e522000,0x1000,0x3)
 8108 ktrace   RET   mprotect 0
 8108 ktrace   CALL  mprotect(0x7e522000,0x1000,0x1)
 8108 ktrace   RET   mprotect 0
 8108 ktrace   CALL  write(0x2,0xcfbdbeb0,0x8)
 8108 ktrace   GIO   fd 2 wrote 8 bytes
  "ktrace: "
 8108 ktrace   RET   write 8
 8108 ktrace   CALL  write(0x2,0xcfbdbed0,0x18)
 8108 ktrace   GIO   fd 2 wrote 24 bytes
  "exec of './a.out' failed"
 8108 ktrace   RET   write 24/0x18
 8108 ktrace   CALL  write(0x2,0x3c00213c,0x2)
 8108 ktrace   GIO   fd 2 wrote 2 bytes
  ": "
 8108 ktrace   RET   write 2
 8108 ktrace   CALL  issetugid()
 8108 ktrace   RET   issetugid 0
 8108 ktrace   CALL  open(0xcfbdc280,0,0)
 8108 ktrace   NAMI  "/usr/share/nls/C/libc.cat"
 8108 ktrace   RET   open 3
 8108 ktrace   CALL  fstat(0x3,0xcfbdc1e0)
 8108 ktrace   RET   fstat 0
 8108 ktrace   CALL  mmap(0,0xe5a,0x1,0x1,0x3,0,0,0)
 8108 ktrace   RET   mmap -2046947328/0x85fe1000
 8108 ktrace   CALL  close(0x3)
 8108 ktrace   RET   close 0
 8108 ktrace   CALL  readlink(0x3c002168,0xcfbdc120,0x3f)
 8108 ktrace   NAMI  "/etc/malloc.conf"
 8108 ktrace   RET   readlink -1 errno 2 No such file or directory
 8108 ktrace   CALL  issetugid()
 8108 ktrace   RET   issetugid 0
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap 2086334464/0x7c5af000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -2141827072/0x80565000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap 2143391744/0x7fc19000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -1960751104/0x8b215000
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -1952120832/0x8ba5
 8108 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 8108 ktrace   RET   mmap -1965772800/0x8ad4b000
 8108 ktrace   CALL  munmap(0x85fe1000,0xe5a)
 8108 ktrace   RET   munmap 0
 8108 ktrace   CALL  __sysctl(1.37,0xcfbdc540,0xcfbdc534,0,0)
 8108 ktrace   RET   __sysctl 0
 8108 ktrace   CALL  getpid()
 8108 ktrace   RET   getpid 8108/0x1fac
 8108 ktrace   CALL  write(0x2,0xcfbdbeb0,0x18)
 8108 ktrace   GIO   fd 2 wrote 24 bytes
  "Operation not permitted
  "
 8108 ktrace   RET   write 24/0x18
 8108 ktrace   CALL  munmap(0x7e522000,0x1000)
 8108 ktrace   RET   munmap 0
 8108 ktrace   CALL  exit(0x1)

The above was run as root.

I iterate again, this binary was cross compiled with g++, and has
proven to work when copied onto an linux i386 machine. This was all
done by my friend who uses linux. He tells me he used the -m32 switch
of g++ to do so.

I hope this is all the information this time.


Try showing us a "pwd"
and a "mount"

and perhaps "cat /etc/fstab"

I'm suspecting a noexec filesystem or some such thing.

Cheers,
Steve



Re: Linux Compat Query

2007-05-28 Thread Otto Moerbeek
On Mon, 28 May 2007, Edd Barrett wrote:

> Hi Mickey,
> 
> On 28/05/07, mickey <[EMAIL PROTECTED]> wrote:
> > you sure the file system where a.out is allows execution?
> 
> $ cat /etc/fstab
> /dev/wd0a / ffs rw 1 1
> /dev/wd0d /home ffs rw 1 1
> /dev/wd1a /mnt/media ffs rw 1 2
> 
> The executable is in my home directory (/home/edd).
> 
> noexec is not set on any of my filesystems.

Did you try 'elf2olf -o linux a.out', as other's have suggested?

-Otto



Re: Linux Compat Query

2007-05-28 Thread mickey
On Mon, May 28, 2007 at 10:32:29PM +0100, Edd Barrett wrote:
> Hi Mickey,
> 
> On 28/05/07, mickey <[EMAIL PROTECTED]> wrote:
> >you sure the file system where a.out is allows execution?
> 
> $ cat /etc/fstab
> /dev/wd0a / ffs rw 1 1
> /dev/wd0d /home ffs rw 1 1
> /dev/wd1a /mnt/media ffs rw 1 2

normally you'd do a mount -v to sure see how they are mounted.
but maybe that's not really a problem (looking at fstab).
cu
-- 
paranoic mickey   (my employers have changed but, the name has remained)



Re: Linux Compat Query

2007-05-28 Thread Otto Moerbeek
On Mon, 28 May 2007, Edd Barrett wrote:

> Hi Otto and Didi (on the CC),
> 
> On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
> > Did you try 'elf2olf -o linux a.out', as other's have suggested?
> 
> $ ./a.out
> Bad system call (core dumped)
> $ file a.out
> a.out: OLF 32-bit Linux unstripped LSB executable, Intel 80386,
> version 1, for GNU/Linux 2.6.9, statically linked, not stripped
> 
> This is getting silly. I'm going to ask him to build the binary on an
> actual i386 in case it was that cross compilation. (Please Didi (cc)
> ).

But now the excutable starts so you can see with ktrace which
syscall is not implemented.

-Otto



Re: No text cursor on OpenBSD/i386 4.1

2007-05-28 Thread Chris S

On 5/25/07, Nick Holland <[EMAIL PROTECTED]> wrote:

That's an add-on SATA board.  Remove card, no problem.  Install
card, no cursor.



That's not the case for me, I don't even have the cursor on the
OpenBSD boot loader prompt.

However, I should perhaps mention that I'm chainloading it via GRUB,
and I do have a cursor in GRUB. Is it perhaps GRUB's problem? I'm sure
I'm not the only one chainloading OpenBSD with GRUB on i386...



Re: Linux Compat Query

2007-05-28 Thread Diana Eichert

On Mon, 28 May 2007, Edd Barrett wrote:


Hi Otto and Didi (on the CC),

On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:

Did you try 'elf2olf -o linux a.out', as other's have suggested?


$ ./a.out
Bad system call (core dumped)


ahhh, can you run ktrace on the rebranded program?  It would be 
interestting to see what system call it's failing on.


diana



Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

Hi Otto and Didi (on the CC),

On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:

Did you try 'elf2olf -o linux a.out', as other's have suggested?


$ ./a.out
Bad system call (core dumped)
$ file a.out
a.out: OLF 32-bit Linux unstripped LSB executable, Intel 80386,
version 1, for GNU/Linux 2.6.9, statically linked, not stripped

This is getting silly. I'm going to ask him to build the binary on an
actual i386 in case it was that cross compilation. (Please Didi (cc)
).

Thanks

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:

But now the excutable starts so you can see with ktrace which
syscall is not implemented.


 4362 ktrace   RET   ktrace 0
 4362 ktrace   CALL  execve(0xcfbe1d1b,0xcfbe1bdc,0xcfbe1be4)
 4362 ktrace   NAMI  "./a.out"
 4362 a.outEMUL  "linux"
 4362 a.outRET   oldolduname 0
 4362 a.outCALL  uname(0xcfbe4e66)
 4362 a.outRET   uname 0
 4362 a.outCALL  brk(0)
 4362 a.outRET   brk 135491584/0x8137000
 4362 a.outCALL  brk(0x8137c70)
 4362 a.outRET   brk 135494768/0x8137c70
 4362 a.outCALL  #243 (unimplemented linux_sys_set_thread_area)()
 4362 a.outPSIG  SIGSYS SIG_DFL code 0
 4362 a.outNAMI  "a.out.core"

Something to do with threading?

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: ral AP Requires ifconfig down/up Daily (Kind of Solved)

2007-05-28 Thread Daniel Melameth

I guess I've "jumped the gun" on this one as the issue has resurfaced
after a week and a half.

FWIW, when the issue occurs, the drivers "goes" OACTIVE.  The
following is the output of ifconfig when the issue occurred and then
after the issue was "resolved."

$ ifconfig ral0
ral0: flags=8c43 mtu 1500
   lladdr 00:14:a5:33:31:c7
   groups: wlan
   media: IEEE802.11 autoselect mode 11g hostap
   status: active
   ieee80211: nwid meth chan 1 bssid 00:14:a5:33:31:c7 nwkey  100dBm
   inet 192.168.255.254 netmask 0xffe0 broadcast 192.168.255.255
   inet6 fe80::214:a5ff:fe33:31c7%ral0 prefixlen 64 scopeid 0x7

$ ifconfig ral0
ral0: flags=8843 mtu 1500
   lladdr 00:14:a5:33:31:c7
   groups: wlan
   media: IEEE802.11 autoselect mode 11g hostap
   status: active
   ieee80211: nwid meth chan 1 bssid 00:14:a5:33:31:c7 nwkey  100dBm
   inet 192.168.255.254 netmask 0xffe0 broadcast 192.168.255.255
   inet6 fe80::214:a5ff:fe33:31c7%ral0 prefixlen 64 scopeid 0x7

Any thoughts... or anyone know of a 802.11g card/driver combination
with that legendary wi reliability?

On 5/25/07, Daniel Melameth <[EMAIL PROTECTED]> wrote:

I have since replaced the 2560 card with a 2661 and it has been
running fairly well for a week.  Whether this is an issue with the
2500 card or the driver though, I'm not certain.

Cheers.

$ dmesg | grep ral0
ral0 at cardbus1 dev 0 function 0: irq 10, address 00:14:a5:33:31:c7
ral0: MAC/BBP RT2661B, RF RT2529 (MIMO XR)

On 5/6/07, Daniel Melameth <[EMAIL PROTECTED]> wrote:
> I just setup a ral-based AP doing 802.11g and WEP and it stops working once
> a day-all wireless clients cease being able to pass packets through the AP
> and an ifconfig ral0 down and ifconfig ral0 up is required to temporarily
> address the issue.  Any thoughts on how to fix?
>
> Thanks.
>
>
>
> $ cat /etc/hostname.ral0
> inet 192.168.255.254 255.255.255.224 NONE \
>chan 1 media autoselect mediaopt hostap mode 11g \
>nwid meth nwkey 
>
> $ dmesg
> OpenBSD 4.1-stable (GENERIC) #0: Fri May  4 19:21:34 MDT 2007
>[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) M processor 1600MHz ("GenuineIntel" 686-class)
> 1.60 GHz
> cpu0:
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,
> FXSR,SSE,SSE2,TM,SBF,EST,TM2
> real mem  = 536244224 (523676K)
> avail mem = 481591296 (470304K)
> using 4278 buffers containing 26935296 bytes (26304K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+ BIOS, date 06/23/05, BIOS32 rev. 0 @ 0xf,
> SMBIOS rev. 2.3 @ 0xfa1ee (31 entries)
> bios0: Hewlett-Packard HP Compaq nc6000 (DQ880A#ABA)
> apm0 at bios0: Power Management spec V1.2 (BIOS managing devices)
> apm0: AC on, battery charge unknown
> apm0: flags 130102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0840/160 (8 entries)
> pcibios0: bad IRQ table checksum
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf6360/160 (8 entries)
> pcibios0: PCI Exclusive IRQs: 5 10 11
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801DBM LPC" rev 0x00)
> pcibios0: PCI bus #5 is the last bus
> bios0: ROM list: 0xc/0x1
> acpi at mainbus0 not configured
> cpu0 at mainbus0
> cpu0: Enhanced SpeedStep 1600 MHz (1484 mV): speeds: 1600, 1400, 1200, 1000,
> 800, 600 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82855PE Hub" rev 0x03
> ppb0 at pci0 dev 1 function 0 "Intel 82855PE AGP" rev 0x03
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M10 NP" rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: irq 10
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: irq 10
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x03: irq 10
> usb2 at uhci2: USB revision 1.0
> uhub2 at usb2
> uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03: irq 10
> usb3 at ehci0: USB revision 2.0
> uhub3 at usb3
> uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1
> uhub3: 6 ports with 6 removable, self powered
> ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83
> pci2 at ppb1 bus 2
> ath0 at pci2 dev 4 function 0 "Atheros AR5212" rev 0x01: irq 11
> ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR0W, address
> 00:0b:cd:5a:28:bb
> cbb0 at pci2 dev 6 function 0 "O2 Micro OZ711E0 CardBus" rev 0x00: irq 10
> cbb1 at pci2 dev 6 fu

Re: Linux Compat Query

2007-05-28 Thread Otto Moerbeek
On Mon, 28 May 2007, Edd Barrett wrote:

> On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
> > But now the excutable starts so you can see with ktrace which
> > syscall is not implemented.
> 
>  4362 ktrace   RET   ktrace 0
>  4362 ktrace   CALL  execve(0xcfbe1d1b,0xcfbe1bdc,0xcfbe1be4)
>  4362 ktrace   NAMI  "./a.out"
>  4362 a.outEMUL  "linux"
>  4362 a.outRET   oldolduname 0
>  4362 a.outCALL  uname(0xcfbe4e66)
>  4362 a.outRET   uname 0
>  4362 a.outCALL  brk(0)
>  4362 a.outRET   brk 135491584/0x8137000
>  4362 a.outCALL  brk(0x8137c70)
>  4362 a.outRET   brk 135494768/0x8137c70
>  4362 a.outCALL  #243 (unimplemented linux_sys_set_thread_area)()
>  4362 a.outPSIG  SIGSYS SIG_DFL code 0
>  4362 a.outNAMI  "a.out.core"
> 
> Something to do with threading?

yes, it tries to do a system call our linux emulation does not have,

-Otto

> 
> -- 
> Best Regards
> 
> Edd
> 
> ---
> http://students.dec.bournemouth.ac.uk/ebarrett



Re: Linux Compat Query

2007-05-28 Thread Ted Unangst

On 5/28/07, Edd Barrett <[EMAIL PROTECTED]> wrote:

The program was built like so:
g++ -static -m32 -Wall bsdtest.cpp


wouldn't it be a lot easier to copy bsdtest.cpp to the openbsd machine
and compile it there?



Re: tpb and tphdisk assistance

2007-05-28 Thread Don Scott

On 5/28/07, joshua stein <[EMAIL PROTECTED]> wrote:


tpb does not work correctly with multiprocessor kernels, i think it
has something to do with the nvram driver.



I switched from GENERIC.MP to GENERIC and now the on-screen display
works, as does blue-tooth (Fn-F5), screen brightness (Fn-Home and
Fn-End), and the thinklight (Fn-PgUp).

Hibernation (Fn-F12) still does not work though.

Thanks for the tip, Joshua.



Re: cvs update 'pull-only-changed' model ?

2007-05-28 Thread Christian Weisgerber
Landry Breuil <[EMAIL PROTECTED]> wrote:

> I suppose CTM has been deprecated ?

It's in the cabinet next to the dodo.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: Linux Compat Query

2007-05-28 Thread Ted Unangst

On 5/28/07, Edd Barrett <[EMAIL PROTECTED]> wrote:

$ file a.out
a.out: OLF 32-bit Linux unstripped LSB executable, Intel 80386,
version 1, for GNU/Linux 2.6.9, statically linked, not stripped


you seem rather insistent on using file to prove this is a linux
binary.  the kernel doesn't run file to figure out what compat layer
to use; it's rather cruder in its assessment.



Re: Linux Compat Query

2007-05-28 Thread Edd Barrett

Hi Ted,

On 29/05/07, Ted Unangst <[EMAIL PROTECTED]> wrote:

On 5/28/07, Edd Barrett <[EMAIL PROTECTED]> wrote:
> The program was built like so:
> g++ -static -m32 -Wall bsdtest.cpp

wouldn't it be a lot easier to copy bsdtest.cpp to the openbsd machine
and compile it there?



Yes, this time.

It was just a proof of concept test at this stage, but the binary we
are really interested in will need xerces which is not ported to
OpenBSD. Hence this whole thread.

It's not really important, and Im not trying to prove that the file is
a linux bin.

All it was, my housemate made a very useful ISBN->bibtex converter
which looks up the books author and titile etc. It would have been
useful for our assignments.

Thanks anyway to all that replied!

--
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: Linux Compat Query

2007-05-28 Thread Diana Eichert

On Mon, 28 May 2007, Edd Barrett wrote:


On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:

But now the excutable starts so you can see with ktrace which
syscall is not implemented.


4362 ktrace   RET   ktrace 0
4362 ktrace   CALL  execve(0xcfbe1d1b,0xcfbe1bdc,0xcfbe1be4)
4362 ktrace   NAMI  "./a.out"
4362 a.outEMUL  "linux"
4362 a.outRET   oldolduname 0
4362 a.outCALL  uname(0xcfbe4e66)
4362 a.outRET   uname 0
4362 a.outCALL  brk(0)
4362 a.outRET   brk 135491584/0x8137000
4362 a.outCALL  brk(0x8137c70)
4362 a.outRET   brk 135494768/0x8137c70
4362 a.outCALL  #243 (unimplemented linux_sys_set_thread_area)()
4362 a.outPSIG  SIGSYS SIG_DFL code 0
4362 a.outNAMI  "a.out.core"

Something to do with threading?


my quick and dirty Google search brought this

http://www.mail-archive.com/misc@openbsd.org/msg37150.html



Re: Linux Compat Query

2007-05-28 Thread Diana Eichert

On Mon, 28 May 2007, Edd Barrett wrote:


On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:

But now the excutable starts so you can see with ktrace which
syscall is not implemented.


4362 ktrace   RET   ktrace 0
4362 ktrace   CALL  execve(0xcfbe1d1b,0xcfbe1bdc,0xcfbe1be4)
4362 ktrace   NAMI  "./a.out"
4362 a.outEMUL  "linux"
4362 a.outRET   oldolduname 0
4362 a.outCALL  uname(0xcfbe4e66)
4362 a.outRET   uname 0
4362 a.outCALL  brk(0)
4362 a.outRET   brk 135491584/0x8137000
4362 a.outCALL  brk(0x8137c70)
4362 a.outRET   brk 135494768/0x8137c70
4362 a.outCALL  #243 (unimplemented linux_sys_set_thread_area)()
4362 a.outPSIG  SIGSYS SIG_DFL code 0
4362 a.outNAMI  "a.out.core"

Something to do with threading?


Bingo!

Your app is calling something that is not supported by OpenBSD's Linux 
emulation.


If you do a google search for "linux_sys_set_thread_area openbsd" you'll 
find this problem issue has been discussed before.


see ktrace and kdump are your friend

diana



Re: ral AP Requires ifconfig down/up Daily (Kind of Solved)

2007-05-28 Thread RW
On Mon, 28 May 2007 16:38:31 -0600, Daniel Melameth wrote:
8><--

8><
>Any thoughts... or anyone know of a 802.11g card/driver combination
>with that legendary wi reliability?
>

I have an MSI PCI card in a Soekris 4850. It looks like this (in
dmesg):
ral0 at pci0 dev 10 function 0 "Ralink RT2560" rev 0x01: irq 11,
address 00:13:d
3:6b:a9:be
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
and it works perfectly for me as an AP.

So good that I have just bought an MSI miniPCI to go in a Commell LE564
that will be my new firewall.

HTH,

Offline replies best sent to ash2 at witworx dot com.

Rod/
>From the land "down under": Australia.
Do we look  from up over?



Re: tpb and tphdisk assistance

2007-05-28 Thread James Hartley
I guess I missed this in conversation;  does tphdisk work with ACPI?

Thanks.

Jim



Re: tcpdump segfaults on enc0 interface

2007-05-28 Thread Ted Unangst

On 5/28/07, Can Erkin Acar <[EMAIL PROTECTED]> wrote:

The inability to get a coredump is normal. Tcpdump uses privilege separation
and the part that drops its privileges segfaults. Since it was a privileged
program, and is no longer root, it is not allowed to coredump even with
kern.nosuidcoredump=0


i just committed a patch to facilitate debugging things like this.
set nosuidcoredump=2 and you will get a dump in /var/crash.  this
option is only for debugging, you don't want it all the time.



{Dangerous Content?} Your Interac Payment

2007-05-28 Thread Royal Bank of Canada
Warning: This message has had one or more attachments removed
Warning: (the entire message).
Warning: Please read the "MSC-Attachment-Warning.txt" attachment(s) for more 
information.

This is a message from the MailScanner E-Mail Virus Protection Service
--
The original e-mail message contained potentially dangerous content,
which has been removed for your safety.

The content is dangerous as it is often used to spread viruses or to gain
personal or confidential information from you, such as passwords or credit
card numbers.

If you wish to receive a copy of the original email, please
e-mail helpdesk and include the whole of this message
in your request. Alternatively, you can call them, with
the contents of this message to hand when you call.

At Mon May 28 07:55:22 2007 the content filters said:
   MailScanner: Found a form in HTML message

Note to Help Desk: Look on the MailScanner in 
/var/spool/MailScanner/quarantine/20070528 (message l4SErTVY032132).
-- 
Postmaster
MailScanner thanks transtec Computers for their support



Re: Linux Compat Query

2007-05-28 Thread a . velichinsky
On Mon, May 28, 2007 at 11:29:37PM +0100, Edd Barrett wrote:
> On 28/05/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
> >But now the excutable starts so you can see with ktrace which
> >syscall is not implemented.
> 
>  4362 ktrace   RET   ktrace 0
>  4362 ktrace   CALL  execve(0xcfbe1d1b,0xcfbe1bdc,0xcfbe1be4)
>  4362 ktrace   NAMI  "./a.out"
>  4362 a.outEMUL  "linux"
>  4362 a.outRET   oldolduname 0
>  4362 a.outCALL  uname(0xcfbe4e66)
>  4362 a.outRET   uname 0
>  4362 a.outCALL  brk(0)
>  4362 a.outRET   brk 135491584/0x8137000
>  4362 a.outCALL  brk(0x8137c70)
>  4362 a.outRET   brk 135494768/0x8137c70
>  4362 a.outCALL  #243 (unimplemented linux_sys_set_thread_area)()

run the program as this:
$ LD_ASSUME_KERNEL=2.4.1 ./a.out

unless the program is a simple 'hello world', expect it to crash sooner
or later; the linux compat layer in OpenBSD is outdated, and doesn't
implement many syscalls from linux 2.6.x (and if you linked the binary
against a recent glibc, it may not work with older kernels).



Re: french characters on imap server

2007-05-28 Thread Philip Guenther

On 5/28/07, Juan Miscaro <[EMAIL PROTECTED]> wrote:

I am serving up email via imap (courier-imap) on OpenBSD 4.0.

My users (with Outlook) complain of french characters being garbled.
How can I fix this?


The same way any problem is fixed: by determining which part isn't
behaving correctly and fixing it.  In this case, the possible guilty
parties include
A) the sending party: are the messages being marked with the correct charset in
   the Content-Type header field?
B) the IMAP server: is it returning the message accurately and calculating the
   ENVELOPE and BODYSTRUCTURE FETCH items correctly?
C) Outlook: is it presenting the messages accurately as it was received from the
   IMAP server?

However, this is all off-topic to OpenBSD, as the IMAP server behavior
should not dependend on the OS.  I suggest you take your question to
the comp.mail.imap newgroup after doing your best to answer the
questions suggested above.

Note that when you post there you should, at a *minimum*, clarify what
is garbled (subjects, bodies, or both) and to what extent they are
"garbled": is it just the non-ASCII characters (those with accents and
cedilla and accents), all letters but not numbers or punctuation, or
all characters?


Philip Guenther



Re: No text cursor on OpenBSD/i386 4.1

2007-05-28 Thread Nick Holland
Chris S wrote:
> On 5/25/07, Nick Holland <[EMAIL PROTECTED]> wrote:
>> That's an add-on SATA board.  Remove card, no problem.  Install
>> card, no cursor.
>>
> 
> That's not the case for me, I don't even have the cursor on the
> OpenBSD boot loader prompt.

It *is* the case for you: something OTHER than OpenBSD is turning
off the Cursor.  In my case, it was a SATA card.  In your case, it
is something else.

If there is no cursor at the "boot>" prompt, it isn't an OpenBSD
problem.

> However, I should perhaps mention that I'm chainloading it via GRUB,
> and I do have a cursor in GRUB. Is it perhaps GRUB's problem? I'm sure
> I'm not the only one chainloading OpenBSD with GRUB on i386...

Something between GRUB and OpenBSD, at least...but yes, I wouldn't
put it past GRUB.

Never used GRUB, myself.  I don't intend to start.

Nick.



Upgrade question

2007-05-28 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I've been running a snapshot from several months back & got my
new 4.1 cds finally. Uname shows OpenBSD 4.1 Generic#0. I want
to keep my existing /home & /data partitions, delete all the
rest, recreate them & finish the install. After I reboot, I was
hoping I could copy over the old users from the old /etc/group
into the new one, copy the old passwd over & run pwd_mkdb. Just
want to know if I've reasoned it out correctly or not, if it is
right if there's anything else I need to run to synchronize
things, & so on. I've tried looking up that kind of scenario with
google, in the mail archives & so forth & just don't seem to come
up with what I need. The point of what I'm trying to accomplish
is not to have to copy so much from the 2 aforementioned partitions
to another drive & then copy it all back after recreating users.
Thanks for any help.


"That will never happen" - the Hindenburg engineers
--Musings From Uncle Phil--

===
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===
iD8DBQFGW5pxy0Ty5RZE55oRAlvPAKDMIZYBzCtHOBPviEfb7VL1y66HkgCffyg9
i/0ugjMHNghXKPWwCboZVZs=
=ka/A
-END PGP SIGNATURE-



Re: Upgrade question

2007-05-28 Thread Emilio Perea
On Mon, May 28, 2007 at 10:13:48PM -0500, Denny White wrote:
> I've been running a snapshot from several months back & got my
> new 4.1 cds finally. Uname shows OpenBSD 4.1 Generic#0. I want
> to keep my existing /home & /data partitions, delete all the
> rest, recreate them & finish the install. After I reboot, I was
> hoping I could copy over the old users from the old /etc/group
> into the new one, copy the old passwd over & run pwd_mkdb. Just
> want to know if I've reasoned it out correctly or not, if it is
> right if there's anything else I need to run to synchronize
> things, & so on. I've tried looking up that kind of scenario with
> google, in the mail archives & so forth & just don't seem to come
> up with what I need. The point of what I'm trying to accomplish
> is not to have to copy so much from the 2 aforementioned partitions
> to another drive & then copy it all back after recreating users.
> Thanks for any help.

In these situations I usually keep a copy of /etc in /home/etc.tgz and
just do a new install, skipping the /home and /data partitions when
running disklabel.  It's never a bad idea to have a full backup, though!



Re: openldap -- syncrepl and dynamic backend modules (SOLVED)

2007-05-28 Thread Vijay Sankar
On Saturday 26 May 2007 14:14, Vijay Sankar wrote:
> I have been using the openldap (openldap-server-2.3.33p1-bdb) from
> ports and it works great when I use slurpd for replication.
>
> I would like to use syncrepl instead of slurpd, just to see what the
> benefits are. However I don't know how to enable the dynamic backend
> modules since they are not installed in /usr/local/libexec/openldap.
> I tried to modify the Makefile with --enable-overlays
> and --enable-modules but those attempts went down in flames.
>
> Is it possible to use syncrepl with openldap-server-2.3.33p1 on
> OpenBSD 4.1? What are the steps? Please let me know if you are able
> to help.

Just in case someone searches these archives looking to see how to do 
syncrepl with OpenLDAP on OpenBSD, here is what I had to do to add all 
the overlays, and backends, and so on. Normally I prefer using only the 
packages that are on the OpenBSD CD or using ports. I compiled OpenLDAP 
from source only because I do not know how to enable the dynamic 
modules and overlays when OpenLDAP is installed from packages -- so 
quite possibly there are much simpler ways of doing this and probably 
there are many good reasons why the ports maintainer did not want to 
enable overlays (if that is indeed the case). I will be grateful for 
any corrections/suggestions or if you have any thoughts on what other 
approaches would have been more appropriate than the stuff below.

Here is the configure command I used:

env CPPFLAGS="-I/usr/local/include/db4 -I/usr/local/include/sasl" \ 
LDFLAGS="-L/usr/local/lib/db4 \
-L/usr/local/share/libtool/libltdl \
-L/usr/local/lib/sasl2 -L/usr/local/lib" \
./configure \
--prefix=/usr/local \
--enable-slapd \
--enable-cleartext \
--enable-crypt \
--enable-rewrite \ 
--enable-wrapper \ 
--with-cyrus-sasl=yes \
--enable-spasswd \
--enable-dnssrv \
--enable-ldap \
--enable-ldbm \
--enable-bdb \
--enable-meta \
--enable-null \
--enable-passwd \
--disable-ipv6 \
--disable-shell \
--enable-slurpd \
--enable-overlays=mod \
--with-tls \
--disable-sql

Did a 'make depend' after the command above completed successfully and 
then a 'make test' to verify that everything especially syncrepl 
(test017 for refresh, test018 for persist, test019 for cascade, test043 
for delta-syncrepl) works properly for the different backends on 
OpenBSD 4.1.

Vijay


>
> Thanks very much,
>
> Vijay

-- 
Vijay Sankar
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6
Phone: +1 (204) 885-9535, E-Mail: [EMAIL PROTECTED]



Re: Upgrade question

2007-05-28 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On May 28 Emilio Perea wrote:


On Mon, May 28, 2007 at 10:13:48PM -0500, Denny White wrote:

I've been running a snapshot from several months back & got my
new 4.1 cds finally. Uname shows OpenBSD 4.1 Generic#0. I want
to keep my existing /home & /data partitions, delete all the
rest, recreate them & finish the install. After I reboot, I was
hoping I could copy over the old users from the old /etc/group
into the new one, copy the old passwd over & run pwd_mkdb. Just
want to know if I've reasoned it out correctly or not, if it is
right if there's anything else I need to run to synchronize
things, & so on. I've tried looking up that kind of scenario with
google, in the mail archives & so forth & just don't seem to come
up with what I need. The point of what I'm trying to accomplish
is not to have to copy so much from the 2 aforementioned partitions
to another drive & then copy it all back after recreating users.
Thanks for any help.


In these situations I usually keep a copy of /etc in /home/etc.tgz and
just do a new install, skipping the /home and /data partitions when
running disklabel.  It's never a bad idea to have a full backup, though!




Just did a dump on all & backed up /etc to the extra hard drive.
That's why I mentioned being able to copy the old files over.
Just wanted to know if I had it right, the way I said to do it.
Thanks for the info.

- --Denny White


===
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===
iD8DBQFGW7kdy0Ty5RZE55oRAlD8AJsG9Uf9+tS9TWnOq/0jKbqOzkkGnACfWQGk
2J78K2EAJL1K4YSS3y+txdg=
=+FRO
-END PGP SIGNATURE-