Re: armv7/sxie: enable phy-supply

2017-12-03 Thread Artturi Alm
On Sun, Dec 03, 2017 at 10:28:02PM +1100, Jonathan Gray wrote: > On Wed, Nov 29, 2017 at 11:32:24AM +0200, Artturi Alm wrote: > > On Wed, Nov 29, 2017 at 12:37:23AM +1100, Jonathan Gray wrote: > > > On Sun, Nov 26, 2017 at 06:52:42PM +0200, Artturi Alm wrote: > > > > Hi, > > > > > > > > unless i f

[patch] pcidevs NVIDIA GeForce 330M, GT216

2017-12-03 Thread Daniel Gomes Vargas
Hi folks, I'm running an old MacBookPro6,2 for a while[1] with NVIDIA GeForce 330M and GT216 audio controller, I not tested the HDMI but the video is working perfectly in native resolution after allow the aperture driver (Xorg recognized it correctly), but I noted that both devices are not identif

Re: gettimeofday(2) does not conform to POSIX.1-2008?

2017-12-03 Thread Philip Guenther
On Sun, 3 Dec 2017, Theo de Raadt wrote: > > EFAULT is kinda interesting in that POSIX documents its existence but > > does not require it to ever be returned. Here's what POSIX says > > normatively: ... > POSIX is a wimpy subset of UNIX, specified so unstrictly that it > becomes difficult to bu

Re: gettimeofday(2) does not conform to POSIX.1-2008?

2017-12-03 Thread Theo de Raadt
> EFAULT is kinda interesting in that POSIX documents its existence but does > not require it to ever be returned. Here's what POSIX says normatively: > [EFAULT] > Bad address. The system detected an invalid address in attempting to > use an argument of a call. The reliable detectio

Re: gettimeofday(2) does not conform to POSIX.1-2008?

2017-12-03 Thread Philip Guenther
Standards state a contract or implication: *if* you, the developer follow _these_ rules, *then* the standardized item will follow _these_other_ rules (if compliant). If you violate the implication, then the standard no longer applies and you have lost the guarantees of the standard. _If_ you b

iked: consistent layer validations

2017-12-03 Thread Patrick Wildt
Hi, The payloads are layered like onions, so you can validate one layer and then call the next one, which can then validate itself. Thing is, most layers try to run validations on the upper layer, which is not useful and rather confusing. This cleans it up. First change is that the generic payl

Re: dc(1); fix 0Z

2017-12-03 Thread Otto Moerbeek
On Sun, Dec 03, 2017 at 07:25:15AM -0500, Philippe Meunier wrote: > kshe wrote: > >Also, the manual defines the length of a number as its number of digits, > >so perhaps it should be precised that zero is considered to have no > >digits, which might not be obvious to everyone. > > Am I the only w

Re: elfrdsetroot: add pledge(2)

2017-12-03 Thread Theo Buehler
On Sun, Dec 03, 2017 at 10:27:00AM +0100, Sebastien Marie wrote: > Hi, > > elfrdsetroot is a small tool living in src/distrib/common/ and used when > generating bsd.rd to put a ffs image inside RAMDISK kernel. > > The diff does the following: > - pledge(2) it with only "stdio" just after manage

Re: armv7/sxie: enable phy-supply

2017-12-03 Thread Artturi Alm
On Sun, Dec 03, 2017 at 10:28:02PM +1100, Jonathan Gray wrote: > On Wed, Nov 29, 2017 at 11:32:24AM +0200, Artturi Alm wrote: > > On Wed, Nov 29, 2017 at 12:37:23AM +1100, Jonathan Gray wrote: > > > On Sun, Nov 26, 2017 at 06:52:42PM +0200, Artturi Alm wrote: > > > > Hi, > > > > > > > > unless i f

Re: dc(1); fix 0Z

2017-12-03 Thread Philippe Meunier
kshe wrote: >Also, the manual defines the length of a number as its number of digits, >so perhaps it should be precised that zero is considered to have no >digits, which might not be obvious to everyone. Am I the only who thinks this is not just not obvious, but actually wrong? On a related note,

Re: armv7/sxie: enable phy-supply

2017-12-03 Thread Jonathan Gray
On Wed, Nov 29, 2017 at 11:32:24AM +0200, Artturi Alm wrote: > On Wed, Nov 29, 2017 at 12:37:23AM +1100, Jonathan Gray wrote: > > On Sun, Nov 26, 2017 at 06:52:42PM +0200, Artturi Alm wrote: > > > Hi, > > > > > > unless i failed w/grep, only 4 boards with dts in u-boot/linux need this, > > > but i

Re: diff: cu(1): add secure kiosk mode + stricter pledge

2017-12-03 Thread Jan Klemkow
On Sat, Dec 02, 2017 at 08:37:34PM +0100, Jan Klemkow wrote: > On Sat, Dec 02, 2017 at 08:17:15PM +0100, Jan Klemkow wrote: > > On Fri, Dec 01, 2017 at 04:17:42PM -0700, Theo de Raadt wrote: > > > So two comments: Calling this thing by the right name (escape), > > > would allow you to search other

elfrdsetroot: add pledge(2)

2017-12-03 Thread Sebastien Marie
Hi, elfrdsetroot is a small tool living in src/distrib/common/ and used when generating bsd.rd to put a ffs image inside RAMDISK kernel. The diff does the following: - pledge(2) it with only "stdio" just after managed arguments (opening files) - add $OpenBSD$ marker on elfrd_size.c (no one pr

Re: [patch] upon install of new operating system version, do not set root password to empty string

2017-12-03 Thread Robert Peichaer
On Wed, Nov 29, 2017 at 08:06:39AM +0100, Otto Moerbeek wrote: > On Tue, Nov 28, 2017 at 06:59:06PM -0500, Ian Sutton wrote: > > > This is a highly theoretical and experimental mitigation which stops the > > root password on newly upgraded/installed systems from being an empty > > string. The thin