summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-02Allow non-root users to become master when they are the first to open a drmMark Kettenis
device. This matches what Linux does and is a first step towards running X without setuid or root priviliges. ok jsg@
2019-05-02Add test fseek(,-1) works properly.YASUOKA Masahiko
2019-05-02pbuild class: bump datasize and maxproc; these should be sufficient forAntoine Jacoutot
running a ports bulk without bumping anything else (matches what's on amd64.ports and exopi) ok sthen@ phessler@ espie@ naddy@
2019-05-02Fix a comparison in open_memstream not to confuse when a negativeYASUOKA Masahiko
value is given for the off. found by nagasaka at IIJ. ok deraadt
2019-05-02Fix vmm_support.S compilation error with gcc 8.3Mike Larkin
ok deraadt
2019-05-02Keep SHA256.sig around on the installed / upgraded system.Florian Obser
It seems like sysupgrade(8) could use this to figure out if a new snapshot is available.
2019-05-02bsd.tbxi can be found in DESTDIR, rather than a excessively long objTheo de Raadt
reacharound
2019-05-02refer do the nested FFS filesystem by name FS, since it is similar toTheo de Raadt
a miniroot.fs elsewhere (but not made available because noone needs it) this reduces the diff delta further...
2019-05-01Do not need reacharound back to our own obj directory, pretty sillyTheo de Raadt
2019-05-01verbose mkhybrid was never needed on these archTheo de Raadt
2019-05-01increase verbose +1 (the required level for spitting out block start/endTheo de Raadt
for files, which is tee'd out to tell installboot where the bootblocks should point to..) Yes, someone could fix this, but it won't be me today!
2019-05-01default to not verboseTheo de Raadt
2019-05-01only do the "when are we finished" countdown if at high verboseTheo de Raadt
2019-05-01Tweaks previous: gettime() can be void, use TIMESPEC_TO_TIMEVALJeremie Courreges-Anglas
ok nicm@ tobias@ cheloha@
2019-05-01Require clock_gettime(CLOCK_MONOTONIC) and remove fallback codeJeremie Courreges-Anglas
If clock_gettime(CLOCK_MONOTONIC) fails here, something is really wrong. Lots of userland already require it anyway. Removing the fallback code means less code, less global state and less fiddling with the timeheap internals. ok nicm@ tedu@ tobias@ cheloha@
2019-05-01Use the proper UAC-v2.0 request to read the device controls.Alexandre Ratchov
Fixes STALL errors in mixer requests causing the mixer to be unusable. With help from Claus <claus at mailbox.org>. Thanks.
2019-05-01Pull tname initialization up since it's used in an error path.Florian Obser
Pointed out by jsg, just fix it deraadt@
2019-05-01Fix miniroot partition.Visa Hankala
OK deraadt@
2019-05-01Avoid using an expression which resolves to an int in a bool contextJonathan Gray
when a nested macro is called with an expression argument. Prompted by -Wint-in-bool-context with gcc 8. ok kettenis@
2019-05-01add a KERNEL_ASSERT_LOCKED() to ptsignalDavid Gwynne
it obviously needs to be called with the kernel lock held, so it makes sense to check that so we can unlock more code without introducing bugs that shoot us in the face in the indeterminate future. csignal is basically a wrapper around ptsignal, so calls to that without the kernel lock should be caught by this too. discussed with mpi@ on bugs@
2019-05-01update currency exchange rates;Jason McIntyre
2019-05-01sprinkle some KERNEL_ASSERT_LOCKED()David Gwynne
operations that tweak the kq_head and kq_count need to be serialised against the kevent syscall which also fumbles with the list and count too. these asserts would have made it extremely obvious where the tun(4) bug was. for half the time of the bug report about it we werent even sure it was tun(4) discussed with mpi@ jmatthew@
2019-05-01pretty much all of tun_wakeup needs to be protected with KERNEL_LOCKDavid Gwynne
tun_wakeup is called from the network stack, which generally runs with NET_LOCK, not KERNEL_LOCK, which is a problem when it calls into things like csignal or kq code. this started causing corruption and panics of a list inside the kq code, which got reported to bugs@. this version of the fix is ok mpi@ (even though he hasn't seen it) an earlier but far trickier fix was ok visa@ the bug was reported by Olivier Antoine, and again by jmc@ privately.
2019-05-01Remove unused variable from Thomas Adam.Nicholas Marriott
2019-04-30step by step, more removal of differencesTheo de Raadt
2019-04-30repair more trivial differencesTheo de Raadt
2019-04-30rm is in /bin, no need to specifyTheo de Raadt
2019-04-30Also pull cdrom production into the full ramdisk build.Theo de Raadt
2019-04-30Make AK5385-related macros of ap192k cards look like julia ones.Alexandre Ratchov
As ap192k and julia cards are very similar, this change will hopefully help reusing part of the juilia codec initialization code as is in the ap192k card code. No behavior change.
2019-04-30pull cdfs into ramdisk_cdTheo de Raadt
2019-04-30Implement the set_rate() method for ESI Juli@ cards.Alexandre Ratchov
The set_rate method switches the AK5385 and the AK4358 chips between single-, double- or quad-speed modes depending on the host sample rate. This suppresses aliasing noise in 96kHz and 192kHz sample rates. Help and testing by Andrey Oktyabrskiy <ano at bestmx.net>. Thanks!
2019-04-30Add a "set_rate" method to the envy codec API.Alexandre Ratchov
This allows to hook card-specific codec initialization code called when the sample rate is changed. As codecs follow host clock, this method will be typically used to switch between simple-speed to double-speed modes when necessary.
2019-04-30Attach mvneta(4) on the Armada 3720 SoC.Patrick Wildt
2019-04-30Enable mvmdio(4) and mvneta(4) on arm64 as well. These are partPatrick Wildt
of the Armada 3720 SoC as used on the Turris Mox.
2019-04-30Fix ESI juil@'s EEPROM contents holding default GPIO state.Alexandre Ratchov
The new GPIO state doesn't set masked bits and matches the default 48kHz sampling rate. As the codec uses the host clock, this is a no-op, but this way the code is less confusing.
2019-04-30Enable EnvyHT-specific sample rates (above 96kHz) on the host controller.Alexandre Ratchov
Tests and help from Andrey Oktyabrskiy <ano at bestmx.net>. Thanks.
2019-04-30Decrease verbosity when XHCI_DEBUG is defined.Alexandre Ratchov
ok mpi
2019-04-30Add support for the Armada 3720 pinctrl controller to mvpinctrl(4).Patrick Wildt
This controller does not only support pinmuxing, but also includes GPIO controller functionality. This is needed to e.g. turn on USB VBus on the Turris Mox. ok kettenis@
2019-04-30Add mvuart(4) to support the Armada 3720's serial console.Patrick Wildt
ok kettenis@
2019-04-30Add support for the Armada 3720 clocks to mvclock(4).Patrick Wildt
ok kettenis@
2019-04-30We are allowed to enable regulators with the "regulator-always-on"Patrick Wildt
property. The definition is that a regulator with this property should never be disabled. ok kettenis@
2019-04-30merge cdfs into miniroot, so that it doesn't need obj reacharoundTheo de Raadt
2019-04-30In man(1) mode, i.e. when asking for a single manual page by name,Ingo Schwarze
prefer file name matches over .Dt/.TH matches over first NAME matches over later NAME matches, but do not change the ordering for apropos(1) nor for man -a. This reverts main.c rev. 1.213 and mansearch.h rev. 1.23 and includes a partial revert of mansearch.c rev. 1.62. Regression reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-04-30common directory is pointless nowTheo de Raadt
2019-04-30add unveil(2):Ricardo Mestre
chpass(1) without parameters enters in edit mode by default, in here it will need to execute _PATH_BSHELL to spawn a new EDITOR, _PATH_SHELLS to check (read) if we are changing from/to a non-standard shell (in case we are not root) and read access to `tempname' to verify if the file has valid entries and create to unlink it. If -s is used to change a user's shell then it will need read access to _PATH_SHELLS by the same reason already mentioned above. Unconditionally we need to unveil _PATH_MASTERPASSWD_LOCK with write/create permissions, _PATH_MASTERPASSWD with read and _PATH_PWD_MKDB to execute pwd_mkdb(8). In the -a case I'm not unveiling /etc/spwd.db since we can get it through pledge "getpw", which can be added later for completeness of all code paths. Note also that the first pledges need "unveil" since we will call unveil(2) afterwards. "looks good" deraadt@
2019-04-30fix disktype related typoTheo de Raadt
2019-04-30tweak synopsis to match actual option logicMarc Espie
okay schwarze@, jmc@
2019-04-30Fix user options after show-hooks merge, GitHub issue 1704.Nicholas Marriott
2019-04-30Every Makefile on every architecture had deviated in unique ways.Theo de Raadt
Eliminate many more differences. When it makes sense, build bsd.rd and miniroot/ramdisk.fs and cd.iso in the same directory. More steps coming after this..
2019-04-30Restrict filesystem access with unveil(2):Ricardo Mestre
First it needs to open(2) `device' with read permissions, /dev/hotplug by default but can be changed via arguments. Then it needs read/execute on both _PATH_ETC_HOTPLUG_{ATTACH,DETACH} to access(2) and execl(3) them. ok deraadt@