Re: pkg_add: signify broken pipe when running from script

2016-11-21 Thread Patrik Lundin
SIGPIPE has become more important since the added support for signed gzip headers (which i guess is related to this) maby it makes sense to initialize the handler to a known state? Can you repeat the problem using my python snippet for reference? -- Patrik Lundin

Re: pkg_add: signify broken pipe when running from script

2016-11-19 Thread Patrik Lundin
ubtle-bug/ It talks about how python ignores SIGPIPE and shows how it can be worked around when using subprocess.Popen. I can solve the problem by adding the following line in /usr/sbin/pkg_add: === $SIG{PIPE} = 'DEFAULT'; === -- Patrik Lundin

Re: pkg_add: signify broken pipe when running from script

2016-11-19 Thread Patrik Lundin
On Sat, Nov 19, 2016 at 03:55:07PM +0100, Patrik Lundin wrote: > Hello, > > I have noticed that pkg_add will behave differently when being executed > from a script when compared to running it manually on the command line. > I forgot to mention that all the testing is done on a

pkg_add: signify broken pipe when running from script

2016-11-19 Thread Patrik Lundin
l5/OpenBSD/PackageRepository.pm trying to figure out what is going on, but so far no luck. -- Patrik Lundin

Re: vmm: panic: root filesystem has size 0

2016-11-03 Thread Patrik Lundin
On Thu, Nov 03, 2016 at 04:02:50PM -0400, trondd wrote: > > You actually have to install OpenBSD into that image. Try -k /bsd.rd first. > Ahh, so obvious in retrospect, thank you! -- Patrik Lundin

vmm: panic: root filesystem has size 0

2016-11-03 Thread Patrik Lundin
codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev2 at uhub5 port 4 configuration 1 interface 1 "Logitech Logitech Illuminated Keyboard" rev 2.00/55.01 addr 8 uhidev2: iclass 3/0, 16 report ids uhid0 at uhidev2 reportid 3: input=7, output=0, feature=0 uhid1 at uhidev2 reportid 16: input=6, output=6, feature=0 softraid0: incorrect key or passphrase sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed sd1: 205420MB, 512 bytes/sector, 420700170 sectors === -- Patrik Lundin

Re: ansible openbsd_rcctl module

2015-12-02 Thread Patrik Lundin
github.com/ansible/ansible-modules-extras/pull/1296 > > Let me know if there are other OpenBSD-specific modules you'd like to see > for ansible. > I have added a comment to your pull request regarding the rcctl support already existing in the main service module. -- Patrik Lundin

Re: +1 vote for including the keydisk-on-same-hdd patch :) Re: Unable to sufficiently clean up softraid metadata (Re: crypto softraid and keydisk on same harddrive)

2015-12-02 Thread Patrik Lundin
On Thu, Dec 03, 2015 at 05:52:13AM +0800, Tinker wrote: > On 2015-12-02 08:26, Patrik Lundin wrote: > > > >This works well, other than needing this patch since the keydisk is on > >the same harddrive: > >http://marc.info/?l=openbsd-misc=141450636905550=2 > > >

Re: Unable to sufficiently clean up softraid metadata

2015-12-02 Thread Patrik Lundin
s are run, only having an impact after a reboot or power outage, which the unbounded dd does not achieve (this might not be an achievable goal at all of course). -- Patrik Lundin

Re: Unable to sufficiently clean up softraid metadata

2015-12-02 Thread Patrik Lundin
e keydisk partition when "destroying" the disk as I did before yet the installer manages to create the sd1 device as expected. Thanks for the pointers :). -- Patrik Lundin

Re: OpenBSD + pf + DPI

2015-12-02 Thread Patrik Lundin
ftware? > > Every tips are appreciated. > You might want to read divert(4) which describes how to pass packets from pf to a userland application and back. -- Patrik Lundin

Re: Unable to sufficiently clean up softraid metadata

2015-12-01 Thread Patrik Lundin
On Wed, Dec 02, 2015 at 01:26:10AM +0100, Patrik Lundin wrote: > > I have a custom installer script which automatically creates RAID > devices and assembles an sd1 CRYPTO device before the ordinary installer > continues (making the installer use sd1 for the rest of the > insta

Unable to sufficiently clean up softraid metadata

2015-12-01 Thread Patrik Lundin
his the installer still fails with the "not valid softraid metadata" error. What am I missing? Where is that metadata hiding? -- Patrik Lundin

Re: how to know uuid

2015-08-09 Thread Patrik Lundin
On Sun, Aug 09, 2015 at 03:52:38PM +0900, joe king wrote: linux has blkid . in openbsd , what is its substitute ? You can use disklabel(8): === # disklabel sd0 | grep duid === -- Patrik Lundin

Re: SOHO IPv6 router problems

2015-07-06 Thread Patrik Lundin
but otherwise it seems to match what we are working with. -- Patrik Lundin

Re: SOHO IPv6 router problems

2015-07-03 Thread Patrik Lundin
On Thu, Jul 02, 2015 at 08:18:52AM +0200, Stefan Sperling wrote: Your windows box is trying to reach address ff02:2::1:ff51:78e9, a mix of 'all routers' ff02::2 and em1's link local address. But there is no address in the ff02::/32 prefix on em1 for some reason. Note that em0 does have an

Re: SOHO IPv6 router problems

2015-07-01 Thread Patrik Lundin
into. We will retry using a snapshot and see where we end up. -- Patrik Lundin

Re: SOHO IPv6 router problems

2015-07-01 Thread Patrik Lundin
or not it is a worthwhile target to persue. There indeed seems to be some confusion how v6 should behave in the real world as opposed to (some) papers. This is one of the reasons I wanted to lift the issues with the mailing list. -- Patrik Lundin

Re: SOHO IPv6 router problems

2015-07-01 Thread Patrik Lundin
On Wed, Jul 01, 2015 at 04:47:25PM +0200, Patrik Lundin wrote: We will retry using a snapshot and see where we end up. We have now attempted the same setup described earlier, using a current snapshot. The first problem of not getting a default route via autoconf when forwarding was enabled

SOHO IPv6 router problems

2015-06-30 Thread Patrik Lundin
the RAs without any regard of forwarding status (what we would probably need in this SOHO case). -- Patrik Lundin

Re: IPV6 routing issue

2015-06-26 Thread Patrik Lundin
that the prefix should be routed to you. -- Patrik Lundin - Original message - From: Giancarlo Razzolini grazzol...@gmail.com To: Openbsd-Misc misc@openbsd.org Subject: IPV6 routing issue Date: Thu, 25 Jun 2015 21:06:51 -0300 HI all, I've recently changed my ISP and they have native

Re: nsd configuration problem

2015-06-25 Thread Patrik Lundin
. -- Patrik Lundin

Re: nsd configuration problem

2015-06-25 Thread Patrik Lundin
for openbsd.org for example, since NSD will not handle such an recursive query for you. For this you need unbound. -- Patrik Lundin

Re: nsd configuration problem

2015-06-24 Thread Patrik Lundin
that it was not authoritative for. Again, please show the results of dig(1) (including the commandline used). -- Patrik Lundin

Re: .kshrc doesnt apply

2015-03-16 Thread Patrik Lundin
/OpenBSD/.xsession https://github.com/eest/dotfiles/blob/master/OpenBSD/.profile https://github.com/eest/dotfiles/blob/master/OpenBSD/.kshrc With these files I am able to declare a variable in .kshrc, start a new xterm (or run ksh insida an existing xterm) and have that variable be set. -- Patrik

Re: ntpd.drift values?

2015-01-12 Thread Patrik Lundin
/ntpd.drift -rw-r--r-- 1 root wheel 13 Jan 12 07:25 /var/db/ntpd.drift # cat /var/db/ntpd.drift 2.405187e-03 I'll post a dmesg below in case it is interesting. Regards, Patrik Lundin OpenBSD 5.6-stable (GENERIC) #0: Sun Dec 14 12:50:41 CET 2014 r...@example.com:/usr/src/sys/arch/macppc/compile

Re: DNS: how to verify glue NS records?

2014-12-06 Thread Patrik Lundin
authoritative NS records with the delegation NS records in the parent. It does not look like it has anything to do with glue records. Sorry if all this is obvious to you and I am missing the bigger picture. Just trying to understand what you are asking for :). Regards, Patrik Lundin

Re: crypto softraid and keydisk on same harddrive

2014-11-06 Thread Patrik Lundin
(and works regardless of passphrase or key disk). Thanks for the tip on how to make the data unusable :). For now I will just build my own iso with your diff. I would of course appreciate if this patch or some version of it could be applied to CVS in the future :). Thanks again! Regards, Patrik

Re: crypto softraid and keydisk on same harddrive

2014-10-28 Thread Patrik Lundin
the bootloader stop at the passphrase prompt. Thanks a lot! Regards, Patrik Lundin

Re: crypto softraid and keydisk on same harddrive

2014-10-27 Thread Patrik Lundin
Thank you Stefan for taking a look, see comments inline: On Mon, Oct 27, 2014 at 12:32:30PM +0100, Stefan Sperling wrote: On Sun, Oct 26, 2014 at 09:19:25PM +0100, Patrik Lundin wrote: # disklabel -E wd0 Create the following partitions (in this order to make the biggest partition last

Re: crypto softraid and keydisk on same harddrive

2014-10-27 Thread Patrik Lundin
On Mon, Oct 27, 2014 at 07:14:10PM +0100, Patrik Lundin wrote: Given that wd0d is used for the keydisk, do you mean i should use wd0e for the remainder of the drive instead of 'a'? Would this also mean I should skip creating a sd0a altogether? Of course i meant Would this also mean I

crypto softraid and keydisk on same harddrive

2014-10-26 Thread Patrik Lundin
with the passphrase was originally. As if there are some remains that makes it possible for the bootloader to locate it or something (that is not overwritten when it is used as the target for the -k argument. Any input on this would be greatly appreaciated! Regards, Patrik Lundin

Re: rcctl ansible service support

2014-10-16 Thread Patrik Lundin
. By recent i mean a version that supports the 'default' argument: http://marc.info/?l=openbsd-cvsm=141303663711396w=2 I am very happy that armani@ started the ansible work as early as he did so we were were able to request features before rcctl was officially released! Regards, Patrik Lundin

Re: rcctl ansible service support

2014-10-13 Thread Patrik Lundin
On Sat, Sep 13, 2014 at 02:39:04AM +0200, Patrik Lundin wrote: armani@ has laid the groundwork for this and I recently started contributing to his fork as well. The work-in-progress can be found here: https://github.com/jarmani/ansible/tree/openbsd_rcctl/library/system Just a heads up

Re: rcctl ansible service support

2014-09-12 Thread Patrik Lundin
contributing to his fork as well. The work-in-progress can be found here: https://github.com/jarmani/ansible/tree/openbsd_rcctl/library/system Regards, Patrik Lundin

Re: unbound reverse DNS problem to local stub zone

2014-09-01 Thread Patrik Lundin
-September/003504.html Regards, Patrik Lundin

Re: unbound on ~ last 2-3 snapshots - i386

2014-07-27 Thread Patrik Lundin
complex then :). Regards, Patrik Lundin

Re: unbound reverse DNS problem to local stub zone

2014-07-27 Thread Patrik Lundin
work again. It might be considered bad to tell unbound a server is authorative for a wider zone than it actually is though, can this be the same problem you saw? Regards, Patrik Lundin

Re: unbound reverse DNS problem to local stub zone

2014-07-27 Thread Patrik Lundin
for setting me straight :). Regards, Patrik Lundin

Re: unbound reverse DNS problem to local stub zone

2014-07-27 Thread Patrik Lundin
or if it is just undefined behaviour from doing silly things with stub-zones. The silly thing being telling unbound the server was authorative for a zone that was actually outside the zone apex of the authorative data. Regards, Patrik Lundin

Re: unbound on ~ last 2-3 snapshots - i386

2014-07-26 Thread Patrik Lundin
what unbound is doing during a bad lookup with ktrace(1) and sharing the resulting log could be helpful as well if there is nothing interesting in the system logs. Regards, Patrik Lundin

Re: unbound reverse DNS problem to local stub zone

2014-07-26 Thread Patrik Lundin
, then NSD has all in memory and then it just works? But then I don't understand why it works without flaws for the forward zone, and also the IPv6 zone? Seems far fetched to me. Regards, Patrik Lundin

Re: Unbound in base, yes, what about ldns?

2014-03-22 Thread Patrik Lundin
_unbound user. Privilege separation would be desirable for this. Just out of curiosity: how come the shipped unbound.conf file mentions the module-config: setting? It appears to me that validator iterator is the default, or am i missing something? Regards, Patrik Lundin

Re: nsd sendto failure - how to debug?

2013-12-22 Thread Patrik Lundin
that is currently showing the nsd error messages, what does pfctl -si show? I would specifically look at the memory counter. If that counter is something other than 0 you are running into the current state limit (shown with pfctl -sm). Regards, Patrik Lundin

Re: DNS problem

2013-12-15 Thread Patrik Lundin
On Fri, Dec 06, 2013 at 08:35:52PM +0100, Patrik Lundin wrote: Given the +trace output you supplied that address is not part of the trail from the DNS root, and in that case the only involvement is answering the initial equivalent of dig @216.146.35.35 . NS. For the archives: That should

Re: DNS problem

2013-12-06 Thread Patrik Lundin
) version. Are you running dig from the firewall or a client behind the firewall? How about tcpdumping the traffic on all affected interfaces and comparing the results between the working location and a non-working one in order to see if anything funky is happening on the wire? Regards, Patrik

Re: DNS problem

2013-12-06 Thread Patrik Lundin
of the trail from the DNS root, and in that case the only involvement is answering the initial equivalent of dig @216.146.35.35 . NS. Regards, Patrik Lundin

Re: softdep flag lost when updating mountpoint

2013-06-01 Thread Patrik Lundin
On Fri, May 31, 2013 at 06:45:18AM +0200, Patrik Lundin wrote: I am currently testing this patch, I will report back once I have some results. So have have tried to stress test the patch, and while it seems to superficially work it doesnt really seem stable. I have written a rather silly

Re: softdep flag lost when updating mountpoint

2013-05-30 Thread Patrik Lundin
On Tue, May 28, 2013 at 04:51:34PM -0400, Ted Unangst wrote: Indeed, I think maybe this is ok. Index: ffs_vfsops.c === RCS file: /cvs/src/sys/ufs/ffs/ffs_vfsops.c,v retrieving revision 1.136 diff -u -p -r1.136 ffs_vfsops.c

softdep flag lost when updating mountpoint

2013-05-28 Thread Patrik Lundin
=2 Since rsync with --link-dest is pretty much creating a hardlink tree, maby I shouldn't be using softdeps at all for this? Regards, Patrik Lundin

Re: softdep flag lost when updating mountpoint

2013-05-28 Thread Patrik Lundin
On Tue, May 28, 2013 at 01:54:50PM -0400, Ted Unangst wrote: The softdep flag is cleared when you change a mount to read only. What would a read only softdep filesystem do? I was only surprised that updating a filesystem to read-only and back to read/write would result in another state then

Re: OpenBSD ignoring RFC-compliant IPv6 neighbor solicitation?

2013-05-07 Thread Patrik Lundin
mentioned at http://www.freebsd.org/security/advisories/FreeBSD-SA-08:10.nd6.asc could be used for the odd cases where it's needed? Regards, Patrik Lundin

Re: Heimdal 1.4 Patch

2012-10-15 Thread Patrik Lundin
://old.nabble.com/Problems-building-1.5.2-on-OpenBSD-5.1-current-td33566242.html Regards, Patrik Lundin

Missing gcore in gdb

2010-10-25 Thread Patrik Lundin
if the lack of gcore is due to someone considering it to be fundamentally flawed or anything, or if it is just that no one has considered it important/interesting enough to hack on. If there is a better way to do this this then any pointers are appreciated. Regards, Patrik Lundin