might it be better to have three paths lists

2016-09-02 Thread Luke Small
wouldn't it be more secure to have a write, read, and execute capable paths
lists in pledge()



Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread Consus
On 11:14 Fri 02 Sep, Consus wrote:
> Yeah, you probably should. Also you can use M:Tier, they ship binary
> errata updates: https://stable.mtier.org

There is already a full set of binary patches. These guys are so sweet.



Re: System monitor in base?

2016-09-02 Thread Aioi Yuuko
Sorry, I was vague in my original email: What I meant was, I'm aware that there 
are ways of getting it off the command line; I'm mostly curious about getting 
it on my desktop so it's easy to glance at. Would my best bet be running a 
script like that in a particular xterm, and marking that xterm as sticky in 
fvwm?On 2 Sep 2016 16:22, Raf Czlonka  wrote:
>
> On Fri, Sep 02, 2016 at 11:46:27PM BST, Aioi Yuuko wrote: 
> > Hi, 
> > 
> > I'm trying to wean myself off external packages as much as possible. 
> > Is there a common, accepted way of viewing, for instance, battery 
> > life, with only included programs? 
>
> Hi Aioi, 
>
> There's the already mentioned apm(8) (i.e. -l, -m options) or you 
> could run something like this: 
>
> #!/bin/sh 
>
> sysctl -n hw.sensors.acpiac0.indicator0 \ 
> hw.sensors.acpibat0.watthour0 \ 
> hw.sensors.acpibat0.watthour3 | awk 'NR == 1 { ac = $1 } 
> NR == 2 { full = $1 } 
> NR == 3 { remaining = $1 } 
> END { if ( ac == "On" ) 
> state = "charging" 
> else 
> state = "discharging" 
> printf("%s %d%s %s%s\n", "Remaining battery life is", 
> remaining/full*100, "% and it is", state, "\.") }' 
>
> Regards, 
>
> Raf 



Re: System monitor in base?

2016-09-02 Thread Raf Czlonka
On Fri, Sep 02, 2016 at 11:46:27PM BST, Aioi Yuuko wrote:
> Hi,
> 
> I'm trying to wean myself off external packages as much as possible.
> Is there a common, accepted way of viewing, for instance, battery
> life, with only included programs?

Hi Aioi,

There's the already mentioned apm(8) (i.e. -l, -m options) or you
could run something like this:

#!/bin/sh

sysctl -n hw.sensors.acpiac0.indicator0 \
hw.sensors.acpibat0.watthour0 \
hw.sensors.acpibat0.watthour3 | awk 'NR == 1 { ac = $1 }
NR == 2 { full = $1 }
NR == 3 { remaining = $1 }
END { if ( ac == "On" )
state = "charging"
else
state = "discharging"
printf("%s %d%s %s%s\n", "Remaining battery life is",
remaining/full*100, "% and it is", state, "\.") }'

Regards,

Raf



Re: System monitor in base?

2016-09-02 Thread Stefan Johnson
On Fri, Sep 2, 2016 at 5:46 PM, Aioi Yuuko  wrote:

> Hi,
>
> I'm trying to wean myself off external packages as much as possible. Is
> there a common, accepted way of viewing, for instance, battery life, with
> only included programs?
>
>

Possibly with sysctl taking a look at the hw.sensors.* stuff...



Re: System monitor in base?

2016-09-02 Thread Martijn van Duren
On 09/03/16 00:46, Aioi Yuuko wrote:
> Hi,
> 
> I'm trying to wean myself off external packages as much as possible. Is there 
> a common, accepted way of viewing, for instance, battery life, with only 
> included programs?
> 

It depends upon your precise needs, but you could look into sensorsd(8)
and snmpd(8), or just run apm(8) if you want the current status.



System monitor in base?

2016-09-02 Thread Aioi Yuuko
Hi,

I'm trying to wean myself off external packages as much as possible. Is there a 
common, accepted way of viewing, for instance, battery life, with only included 
programs?



Re: OpenBSD 6.0 panic

2016-09-02 Thread Ryan Freeman
On Fri, Sep 02, 2016 at 06:25:15PM +0200, Bastien Durel wrote:
> Hello.
> 
> I upgraded my router to 6.0 yesterday, and now I got a panic each time
> I reboot it.

Hi,

Did you happen to forget to do your pkg_add -u to upgrade packages?  I
suspect it might be openvpn not updated yet throwing the error?

Cheers!
-ryan

> 
> Here is a console log :
> 
> # reboot
> stopping package daemons: munin_node svscanpanic: kernel diagnostic assertion 
> "ifp != NULL" failed: file "../../../../net/route.c", line 902
> Starting stack trace...
> panic() at panic+0x10b
> __assert() at __assert+0x25
> rtrequest_delete() at rtrequest_delete+0x206
> rtrequest() at rtrequest+0x247
> route_output() at route_output+0x4e8
> raw_usrreq() at raw_usrreq+0x217
> route_usrreq() at route_usrreq+0x6e
> sosend() at sosend+0x3c8
> dofilewritev() at dofilewritev+0x205
> sys_writev() at sys_writev+0x6d
> syscall() at syscall+0x27b
> --- syscall (number 121) ---
> end of kernel
> end trace frame: 0x4, count: 246
> 0xa46bf29a62a:
> End of stack trace.
> syncing disks... 14 12 12 12 12 12 12 12 12 12 12 12 8 8 8 8 8 8 8 8 giving up
> 
> dumping to dev 4,1 offset 492607
> dump 511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 494 
> 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 47d
> 
> 
> rebooting...
> 
> The svcan deamon which is to be shut down when the panic occurs
> monitors a few(4) openvpn tunnels, in TAP mode, over which ospfd+ospf6d
> runs. When it's stopped, the tun* interfaces is removed, I guess it's
> related ?
> 
> I've attached a boot log (with dmesg).
> 
> There's a "Bad system call" in the networking start too, but I think
> it's not related (and I don't know what interface produces this
> message)
> 
> Thanks,
> 
> --??
> Bastien
> 
> [demime 1.01d removed an attachment of type text/x-log which had a name of 
> fremen.log"; charset="UTF-8]



Re: OpenBSD 6.0 released, September 1, 2016

2016-09-02 Thread Karel Gardas
>> Our developers are:
>>
>>Aaron Bieber, Adam Wolk, Alexander Bluhm, Alexander Hall,
>>Alexandr Nedvedicky, Alexandr Shadchin, Alexandre Ratchov,
>>Andrew Fresh, Anil Madhavapeddy, Anthony J. Bentley,
>>Antoine Jacoutot, Benoit Lecocq, Bob Beck, Brandon Mercer,
>>Brent Cook, Bret Lambert, Bryan Steele, Can Erkin Acar,
>>Charles Longeau, Chris Cappuccio, Christian Weisgerber,
>>Christopher Zimmermann, Claudio Jeker, Damien Miller, Daniel Boulet,
>>Daniel Dickman, Daniel Jakots, Darren Tucker, David Coppa,
>>David Gwynne, Dmitrij Czarkoff, Doug Hogan, Edd Barrett,
>>Eric Faurot, Florian Obser, Gerhard Roth, Giannis Tsaraias,
>>Gilles Chehade, Giovanni Bechis, Gleydson Soares,
>>Gonzalo L. Rodriguez, Henning Brauer, Ian Darwin, Igor Sobrado,
>>Ingo Feinerer, Ingo Schwarze, James Turner, Jason McIntyre,
>>Jasper Lievisse Adriaanse, Jeremie Courreges-Anglas, Jeremy Evans,
>>Joel Sing, Joerg Jung, Jonathan Armani, Jonathan Gray,
>>Jonathan Matthew, Joshua Stein, Juan Francisco Cantero Hurtado,
>>Kazuya Goda, Kenji Aoyama, Kenneth R Westerback, Kent R. Spillner,
>>Kirill Bychkov, Kurt Miller, Landry Breuil, Lawrence Teo,
>>Luke Tymowski, Marc Espie, Marcus Glocker, Mark Kettenis,
>>Mark Lumsden, Markus Friedl, Martijn van Duren, Martin Natano,
>>Martin Pieuchot, Martynas Venckus, Mats O Jansson, Matthew Dempsky,
>>Matthias Kilian, Matthieu Herrb, Mike Belopuhov, Mike Larkin,
>>Nayden Markatchev, Nicholas Marriott, Nigel Taylor, Okan Demirmen,
>>Otto Moerbeek, Pascal Stumpf, Patrick Wildt, Paul Irofti,
>>Peter Hessler, Philip Guenther, Pierre-Emmanuel Andre,
>>Rafael Zalamena, Remi Pointel, Renato Westphal, Reyk Floeter,
>>Ricardo Mestre, Robert Nagy, Robert Peichaer, Sasano Takayoshi,
>>Sebastian Benoit, Sebastian Reitenbach, Sebastien Marie,
>>Stefan Fritsch, Stefan Kempf, Stefan Sperling, Steven Mestdagh,
>>Stuart Cassoff, Stuart Henderson, Sunil Nimmagadda, T.J. Townsend,
>>Ted Unangst, Theo Buehler, Theo de Raadt, Tim van der Molen,
>>Tobias Stoeckmann, Tobias Ulmer, Todd C. Miller, Tom Cosgrove,
>>Ulf Brosziewski, Vadim Zhukov, Vincent Gross, Visa Hankala,
>>Yasuoka Masahiko, Yojiro Uo

Guys, thanks a lot for 6.0 release. Honestly I've never heard your
release songs and today just while describing to my teenage son
history of Unix where I mentioned OpenBSD on its prominent place and
also your songs he asked me straight if I've heart some of them. No.
I'm correcting this on 6.0 and I'm amazed by quality of your PFs.



Re: Trying to find/install msgfmt(1) from gettext

2016-09-02 Thread Nick Gonella
Fantastic, thank you.

On 9/2/16 7:22 AM, David Coppa wrote:
> On Fri, Sep 2, 2016 at 8:10 AM, Nick Gonella  wrote:
>> Hello misc@,
>> I'm currently trying to port some code from Linux and within the
>> Makefile, there is a reference to the utility msgfmt(1). After some
>> Googling, I found that this should come as a part of gettext(1), but I
>> can't seem to find how to get msgfmt(1) on OpenBSD. Any advice you have
>> would be appreciated. Regards,
>> - Nick Gonella
> 
> # pkg_add gettext-tools
> 
> Ciao!
> David
> 



signature.asc
Description: OpenPGP digital signature


Re: OpenBSD 6.0 panic

2016-09-02 Thread Chris Cappuccio
Bastien Durel [bast...@durel.org] wrote:
> 
> There's a "Bad system call" in the networking start too, but I think
> it's not related (and I don't know what interface produces this
> message)
> 

This would be a program you compiled that you are calling from
hostname.if.



Re: groff issue (SOLVED)

2016-09-02 Thread Walter Alejandro Iglesias
On Fri, Sep 02, 2016 at 05:25:18PM +0200, Ingo Schwarze wrote:
> Hi Walter,
> 
> Walter Alejandro Iglesias wrote on Fri, Sep 02, 2016 at 05:11:57PM +0200:
> 
> > I'm posting this here instead of asking directly to groff mailing list
> 
> Correct choice.
> 
> > because (I hate to say it) I can't reproduce this issue in Linux using
> > the same groff version (1.22.3).  I use groff every so often but, if I
> > remember well, I experienced the same with groff in openbsd years ago.
> > I mean, it isn't new.
> > 
> > On ps output, text isn't filled (justified) as groff should do by
> > default.  Even including the .fi option in macros has no effect.
> 
> Filling (.fi) is indeed on by default, but .ad isn't.

According to what I'd read in the groff info page I'd tried adding
'.ad n' to my macros, but it didn't override the system wide settings.

> 
> > Perhaps someone familiarized with groff can give me a clue (Ingo?).
> > Some library used by groff in openbsd?  Some compile option?
> 
> No.  Pure run-time configuration.  Read
> 
>   /usr/local/share/doc/pkg-readmes/groff-1.22.3p2

Well, I'll explain what I did in case others need to know how to do it.

I copied the file /usr/local/share/groff/1.22.3/tmac/troffrc to my
$GROFF_TMAC_PATH and deleted these lines:

.ad l
.de ad

And problem solved.


> 
> Yours,
>   Ingo


Thanks!



OpenBSD 6.0 panic

2016-09-02 Thread Bastien Durel
Hello.

I upgraded my router to 6.0 yesterday, and now I got a panic each time
I reboot it.

Here is a console log :

# reboot
stopping package daemons: munin_node svscanpanic: kernel diagnostic assertion 
"ifp != NULL" failed: file "../../../../net/route.c", line 902
Starting stack trace...
panic() at panic+0x10b
__assert() at __assert+0x25
rtrequest_delete() at rtrequest_delete+0x206
rtrequest() at rtrequest+0x247
route_output() at route_output+0x4e8
raw_usrreq() at raw_usrreq+0x217
route_usrreq() at route_usrreq+0x6e
sosend() at sosend+0x3c8
dofilewritev() at dofilewritev+0x205
sys_writev() at sys_writev+0x6d
syscall() at syscall+0x27b
--- syscall (number 121) ---
end of kernel
end trace frame: 0x4, count: 246
0xa46bf29a62a:
End of stack trace.
syncing disks... 14 12 12 12 12 12 12 12 12 12 12 12 8 8 8 8 8 8 8 8 giving up

dumping to dev 4,1 offset 492607
dump 511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 494 
493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 47d


rebooting...

The svcan deamon which is to be shut down when the panic occurs
monitors a few(4) openvpn tunnels, in TAP mode, over which ospfd+ospf6d
runs. When it's stopped, the tun* interfaces is removed, I guess it's
related ?

I've attached a boot log (with dmesg).

There's a "Bad system call" in the networking start too, but I think
it's not related (and I don't know what interface produces this
message)

Thanks,

-- 
Bastien

[demime 1.01d removed an attachment of type text/x-log which had a name of 
fremen.log"; charset="UTF-8]



OT: groff issue

2016-09-02 Thread Carsten Kunze
Ingo Schwarze  wrote:

> No.  Pure run-time configuration.  Read
> 
>   /usr/local/share/doc/pkg-readmes/groff-1.22.3p2

I am not sure if it is really necessary to change the general groff settings 
just to use this settings for man pages.  I had the same problem long time ago. 
 Indeed there is a readme and it's the users fault to not read it.  But groff 
is expected to work out of the box, so I assume many others may not be aware of 
this readme.  Would it not be better to just patch the -man and -mdoc macros 
and not changing groff's settings for typesetting?

--Carsten



Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread Jack J. Woehr

Etienne wrote:

I have noticed that some people tend to use "I have a doubt" with the
meaning "I have a question/issue/problem".


And the native French speaker will sometimes say, "I doubt" meaning "I suspect ..." or 
"I think that ..."

--
Jack J. Woehr # Science is more than a body of knowledge. It's a way of
www.well.com/~jax # thinking, a way of skeptically interrogating the universe
www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan



Re: Recommendation about an Alfa usb wireless adapter to use it as HostAP

2016-09-02 Thread David Coppa
Il 2 settembre 2016 17:26:34 CEST, Stefan Sperling  ha scritto:
>On Fri, Sep 02, 2016 at 10:41:31AM +0200, David Coppa wrote:
>> The Alfa AWUS036NHA it's based on the Atheros AR9271 chipset and
>> should be supported by athn(4).
>
>But hostap is broken in the USB athn(4) driver so it's useless as AP.

I wasn't aware of this, sorry.

>Unless you wish to be hacking wifi drivers, if you want a happy AP that
>you will enjoy using get a supported (mini)PCI athn(4) or ral(4)
>device.

Indeed.

Ciao!
David



Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread Etienne

On 09/02/16 11:56, bytevolc...@safe-mail.net wrote:

I have noticed that some people tend to use "I have a doubt" with the
meaning "I have a question/issue/problem".  This is different from
"I'm doubting" which means "I have no confidence in" or "I'm
questioning".

I think it is important to note here that not everyone speaks fluent
English. I think a huge problem within mailing lists in general is the
tendency for people to gang up and focus on petty wording issues, and
associating "attitude" or "tone" with words, focusing on the point
of a post itself.


Completely agree, worth mentioning again and again.

--
Étienne



Re: Recommendation about an Alfa usb wireless adapter to use it as HostAP

2016-09-02 Thread Stefan Sperling
On Fri, Sep 02, 2016 at 10:41:31AM +0200, David Coppa wrote:
> The Alfa AWUS036NHA it's based on the Atheros AR9271 chipset and
> should be supported by athn(4).

But hostap is broken in the USB athn(4) driver so it's useless as AP.

Unless you wish to be hacking wifi drivers, if you want a happy AP that
you will enjoy using get a supported (mini)PCI athn(4) or ral(4) device.



Re: groff issue

2016-09-02 Thread Ingo Schwarze
Hi Walter,

Walter Alejandro Iglesias wrote on Fri, Sep 02, 2016 at 05:11:57PM +0200:

> I'm posting this here instead of asking directly to groff mailing list

Correct choice.

> because (I hate to say it) I can't reproduce this issue in Linux using
> the same groff version (1.22.3).  I use groff every so often but, if I
> remember well, I experienced the same with groff in openbsd years ago.
> I mean, it isn't new.
> 
> On ps output, text isn't filled (justified) as groff should do by
> default.  Even including the .fi option in macros has no effect.

Filling (.fi) is indeed on by default, but .ad isn't.

> Perhaps someone familiarized with groff can give me a clue (Ingo?).
> Some library used by groff in openbsd?  Some compile option?

No.  Pure run-time configuration.  Read

  /usr/local/share/doc/pkg-readmes/groff-1.22.3p2

Yours,
  Ingo



groff issue

2016-09-02 Thread Walter Alejandro Iglesias
I'm posting this here instead of asking directly to groff mailing list
because (I hate to say it) I can't reproduce this issue in Linux using
the same groff version (1.22.3).  I use groff every so often but, if I
remember well, I experienced the same with groff in openbsd years ago.
I mean, it isn't new.

On ps output, text isn't filled (justified) as groff should do by
default.  Even including the .fi option in macros has no effect.

Perhaps someone familiarized with groff can give me a clue (Ingo?).
Some library used by groff in openbsd?  Some compile option?



Re: Trying to find/install msgfmt(1) from gettext

2016-09-02 Thread David Coppa
On Fri, Sep 2, 2016 at 8:10 AM, Nick Gonella  wrote:
> Hello misc@,
> I'm currently trying to port some code from Linux and within the
> Makefile, there is a reference to the utility msgfmt(1). After some
> Googling, I found that this should come as a part of gettext(1), but I
> can't seem to find how to get msgfmt(1) on OpenBSD. Any advice you have
> would be appreciated. Regards,
> - Nick Gonella

# pkg_add gettext-tools

Ciao!
David



Trying to find/install msgfmt(1) from gettext

2016-09-02 Thread Nick Gonella
Hello misc@,
I'm currently trying to port some code from Linux and within the
Makefile, there is a reference to the utility msgfmt(1). After some
Googling, I found that this should come as a part of gettext(1), but I
can't seem to find how to get msgfmt(1) on OpenBSD. Any advice you have
would be appreciated. Regards,
- Nick Gonella


0x0279DE0B.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread Roderick
On Fri, 2 Sep 2016, Andreas Kusalananda Kähäri wrote:

> I think it's the use of the word "doubt" ("a feeling of uncertainty or
> lack of conviction").
>
> I have noticed that some people tend to use "I have a doubt" with the
> meaning "I have a question/issue/problem".  This is different from "I'm
> doubting" which means "I have no confidence in" or "I'm questioning".

Perhaps you have doubts about the meaning of "doubt".

Just see latin "dubius".

But no one will call you or anyone here ignorant because of this,
as the original poster was called ungrateful.

Rodrigo.



Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread bytevolcano
Hello Andreas,

On Fri, 2 Sep 2016 12:29:28 +0200
Andreas Kusalananda Kähäri  wrote:

> On Fri, Sep 02, 2016 at 11:33:59AM +0200, Alexander Hall wrote:
> > On Thu, Sep 01, 2016 at 03:03:15PM -0400, Daniel Ouellet wrote:
> > > On 9/1/16 2:59 PM, R0me0 *** wrote:
> > > > Hello misc,
> > > >
> > > > I have a little doubt
> > > >
> > > > Today was a Official Release of 6.0
> > > >
> > > > This release already include errata60.html patches or I need to
> > > > apply ?
> > >
> > > Yes you need to apply the patch.
> > >
> > > The release was done long ago already it was release to the public
> > > today. Takes time to get all piece together you know.
> > >
> > > Might be more welcome to say thanks to the devs instead don't you
> > > think?
> >
> > So instead of asking "How does this work?" he should say
> > "Thanks!" (and still not know how it works)?
> >
> > I don't see the connection. It was just a question, and at least I
> > could not read anything extra into it.
> >
> > /Alexander
>
> I think it's the use of the word "doubt" ("a feeling of uncertainty or
> lack of conviction").
>
> I have noticed that some people tend to use "I have a doubt" with the
> meaning "I have a question/issue/problem".  This is different from
> "I'm doubting" which means "I have no confidence in" or "I'm
> questioning".
>

I think it is important to note here that not everyone speaks fluent
English. I think a huge problem within mailing lists in general is the
tendency for people to gang up and focus on petty wording issues, and
associating "attitude" or "tone" with words, focusing on the point
of a post itself.



Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread Andreas Kusalananda Kähäri
On Fri, Sep 02, 2016 at 11:33:59AM +0200, Alexander Hall wrote:
> On Thu, Sep 01, 2016 at 03:03:15PM -0400, Daniel Ouellet wrote:
> > On 9/1/16 2:59 PM, R0me0 *** wrote:
> > > Hello misc,
> > >
> > > I have a little doubt
> > >
> > > Today was a Official Release of 6.0
> > >
> > > This release already include errata60.html patches or I need to apply ?
> >
> > Yes you need to apply the patch.
> >
> > The release was done long ago already it was release to the public
> > today. Takes time to get all piece together you know.
> >
> > Might be more welcome to say thanks to the devs instead don't you think?
>
> So instead of asking "How does this work?" he should say "Thanks!" (and
> still not know how it works)?
>
> I don't see the connection. It was just a question, and at least I could
> not read anything extra into it.
>
> /Alexander

I think it's the use of the word "doubt" ("a feeling of uncertainty or
lack of conviction").

I have noticed that some people tend to use "I have a doubt" with the
meaning "I have a question/issue/problem".  This is different from "I'm
doubting" which means "I have no confidence in" or "I'm questioning".



>
> >
> > I am sure they would appreciate that more...
> >
> > Best,
> >
> > Daniel
>

--
Andreas Kusalananda Kähäri
Bioinformatics Developer
NBIS, Uppsala University
http://www.nbis.se/

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: Mbim device umb0 - no authentification?

2016-09-02 Thread Stuart Henderson
On 2016-09-01, Kapfhammer, Stefan  wrote:
> What I have to give‎, but still missing in the manpage
> is the username telekom, the password telekom
> and the authentication protocol pap.

That is for PPP and is only used for the connection to the dongle itself, it is
not passed to the network. It should be irrelevant for use with umb(4).

> Is this work-in-progress and I missed some reading
> or what did I wrong? With Telekom DE no packets pass
> without authentication.

Did you add a default route pointing to the umb interface?

It would be useful to show 'ifconfig -A' and 'netstat -rn'.



Re: Banana Pi R1 - any hints?

2016-09-02 Thread Stuart Henderson
On 2016-09-02, Peter J. Philipp  wrote:
> Hi,
>
> Recently I got a Banana Pi R1 (the one with 5 RJ 45 slots).  Physically it
> looks like it has 1 RJ45 slot in one circuit and the 4 others in another.

They're all run from one host NIC, via a vlan-capable switch chip (BCM53125)
which needs some degree of driver support.

According to http://linux-sunxi.org/Lamobo_R1 "security implications" section
all ports are interconnected by default, but this might not apply after boot.



Re: php and W^X

2016-09-02 Thread Stuart Henderson
On 2016-09-02, Thuban  wrote:
> Hello,
> It seems that php-7.0 require wxallowed.
> I don't like the idea to "wxallow" the whole /usr/local.
>
> Do you have any advice?

Yes: find what is using W+X mappings, most likely the embedded copy of pcre
has the jit enabled, and disable or fix it.



Re: php and W^X

2016-09-02 Thread Karel Gardas
On Fri, Sep 2, 2016 at 10:21 AM, Thuban  wrote:
> Hello,
> It seems that php-7.0 require wxallowed.
> I don't like the idea to "wxallow" the whole /usr/local.
>
> Do you have any advice?

Then create another fs for just wxneeded binaries. If you don't know,
then there are 2 things which needs to be done in order to have such
binary run well: (1) binary needs to be linked with -z wxneeded linker
flag and (2) binary needs to be put on fs mounted with wxallowed flag.
Both those things/conditions need to be done together otherwise such
binary will not run well...



Re: php and W^X

2016-09-02 Thread Otto Moerbeek
On Fri, Sep 02, 2016 at 10:33:13AM +0200, ludovic coues wrote:

> you can recompile and mark with PT_OPENBSD_WXNEEDED every port
> requiring wxallowed. Then you can remove wxallow from /usr/local.

This is NOT a right advice.

-Otto


> 
> 2016-09-02 10:21 GMT+02:00 Thuban :
> > Hello,
> > It seems that php-7.0 require wxallowed.
> > I don't like the idea to "wxallow" the whole /usr/local.
> >
> > Do you have any advice?
> >
> > Regards
> > --
> > /Thuban/
> >
> > [demime 1.01d removed an attachment of type application/pgp-signature which 
> > had a name of signature.asc]



Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread Alexander Hall
On Thu, Sep 01, 2016 at 03:03:15PM -0400, Daniel Ouellet wrote:
> On 9/1/16 2:59 PM, R0me0 *** wrote:
> > Hello misc,
> > 
> > I have a little doubt
> > 
> > Today was a Official Release of 6.0
> > 
> > This release already include errata60.html patches or I need to apply ?
> 
> Yes you need to apply the patch.
> 
> The release was done long ago already it was release to the public
> today. Takes time to get all piece together you know.
> 
> Might be more welcome to say thanks to the devs instead don't you think?

So instead of asking "How does this work?" he should say "Thanks!" (and
still not know how it works)?

I don't see the connection. It was just a question, and at least I could
not read anything extra into it.

/Alexander

> 
> I am sure they would appreciate that more...
> 
> Best,
> 
> Daniel



Re: Recommendation about an Alfa usb wireless adapter to use it as HostAP

2016-09-02 Thread David Coppa
On Fri, Sep 2, 2016 at 9:43 AM, C. L. Martinez  wrote:
> Hi all,
>
>  I would like to install OpenBSD as a hostap for my home. I have done the
same in the past, running OpenBSD as a kvm guest on my laptop and all works
really well. I am thinking to use an Alfa (http://www.alfa.com.tw) usb
wireless adapter. There is not much information in Alfa's web about which of
them can run as a HostAP.
>
>  Any recommendation? Maybe AWUS036ACH can supports this functionality, but I
am not sure ...

The Alfa AWUS036NHA it's based on the Atheros AR9271 chipset and
should be supported by athn(4).

> Thanks.
> --
> Greetings,
> C. L. Martinez

Ciao!
David



Re: php and W^X

2016-09-02 Thread ludovic coues
you can recompile and mark with PT_OPENBSD_WXNEEDED every port
requiring wxallowed. Then you can remove wxallow from /usr/local.

2016-09-02 10:21 GMT+02:00 Thuban :
> Hello,
> It seems that php-7.0 require wxallowed.
> I don't like the idea to "wxallow" the whole /usr/local.
>
> Do you have any advice?
>
> Regards
> --
> /Thuban/
>
> [demime 1.01d removed an attachment of type application/pgp-signature which 
> had a name of signature.asc]
>



-- 

Cordialement, Coues Ludovic
+336 148 743 42



Re: Banana Pi R1 - any hints?

2016-09-02 Thread Juan Francisco Cantero Hurtado
On Fri, Sep 02, 2016 at 07:04:17AM +, Peter J. Philipp wrote:
> Hi,
> 
> Recently I got a Banana Pi R1 (the one with 5 RJ 45 slots).  Physically it
> looks like it has 1 RJ45 slot in one circuit and the 4 others in another.
> 
> As a test I ran raspbian OS on it and it worked.  For OpenBSD I got it to
> get to to boot prompt and it loads the kernel but from then on it switches
> to com0 which I don't have set up on this board.  Is there any way to make
> the HDMI vga work?
> 
> As it boots blindly I suspect it either panics or the RJ45 devices are not
> detected as I modified the bsd.rd kernel by placing a /auto_install.conf
> file into the root ala autoinstall(8), and watched the network traffic
> emanating from this computer.  None afaict.
> 
> I'M wondering if there is any hints I could try to see any activity from this
> little device?  I don't have another armv7 device so compiling is a nono, 
> however I can extract the ramdisk from bsd.rd and modify it and put it back
> into bsd.rd.
> 
> I could donate this BPI but I'd rather donate money.  It cost around what 
> I usually donate every half year so it's only 3 months before I do a
> paypal donation.

Buy a serial cable for the board.

http://linux-sunxi.org/Lamobo_R1#Locating_the_UART

http://linux-sunxi.org/UART#UART-USB_dongle

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Recommendation about an Alfa usb wireless adapter to use it as HostAP

2016-09-02 Thread ludovic coues
A quick look at the website show that most older models use realtek
chip while newer device don't specify anything. One can assume that if
the chip is unspecified, they will use whatever work for each
manufacturing batch. Then you are in the wonderful world of wireless
chips, full of uncertainty and surprise.

Best case scenario, they still use realtek chip and the device will be
covered by one of on the urt driver, rsu, urtw or urtwn. The complete
list of driver for usb wireless network interface is available at
usb(4)

2016-09-02 9:43 GMT+02:00 C. L. Martinez :
> Hi all,
>
>  I would like to install OpenBSD as a hostap for my home. I have done the
same in the past, running OpenBSD as a kvm guest on my laptop and all works
really well. I am thinking to use an Alfa (http://www.alfa.com.tw) usb
wireless adapter. There is not much information in Alfa's web about which of
them can run as a HostAP.
>
>  Any recommendation? Maybe AWUS036ACH can supports this functionality, but I
am not sure ...
>
> Thanks.
> --
> Greetings,
> C. L. Martinez
>



--

Cordialement, Coues Ludovic
+336 148 743 42



php and W^X

2016-09-02 Thread Thuban
Hello,
It seems that php-7.0 require wxallowed.
I don't like the idea to "wxallow" the whole /usr/local.

Do you have any advice?

Regards
--
/Thuban/

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: OpenBSD 6.0 release and errata60.html

2016-09-02 Thread Consus
On 15:59 Thu 01 Sep, R0me0 *** wrote:
> Hello misc,
> 
> I have a little doubt
> 
> Today was a Official Release of 6.0
> 
> This release already include errata60.html patches or I need to apply ?
> 
> Thanks in advance,

Yeah, you probably should. Also you can use M:Tier, they ship binary
errata updates: https://stable.mtier.org



Recommendation about an Alfa usb wireless adapter to use it as HostAP

2016-09-02 Thread C. L. Martinez
Hi all,

 I would like to install OpenBSD as a hostap for my home. I have done the same 
in the past, running OpenBSD as a kvm guest on my laptop and all works really 
well. I am thinking to use an Alfa (http://www.alfa.com.tw) usb wireless 
adapter. There is not much information in Alfa's web about which of them can 
run as a HostAP.

 Any recommendation? Maybe AWUS036ACH can supports this functionality, but I am 
not sure ...

Thanks.
-- 
Greetings,
C. L. Martinez



Banana Pi R1 - any hints?

2016-09-02 Thread Peter J. Philipp
Hi,

Recently I got a Banana Pi R1 (the one with 5 RJ 45 slots).  Physically it
looks like it has 1 RJ45 slot in one circuit and the 4 others in another.

As a test I ran raspbian OS on it and it worked.  For OpenBSD I got it to
get to to boot prompt and it loads the kernel but from then on it switches
to com0 which I don't have set up on this board.  Is there any way to make
the HDMI vga work?

As it boots blindly I suspect it either panics or the RJ45 devices are not
detected as I modified the bsd.rd kernel by placing a /auto_install.conf
file into the root ala autoinstall(8), and watched the network traffic
emanating from this computer.  None afaict.

I'M wondering if there is any hints I could try to see any activity from this
little device?  I don't have another armv7 device so compiling is a nono, 
however I can extract the ramdisk from bsd.rd and modify it and put it back
into bsd.rd.

I could donate this BPI but I'd rather donate money.  It cost around what 
I usually donate every half year so it's only 3 months before I do a
paypal donation.

Regards,

-peter