summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-09Synopsys Designeware PCIe IP isn't 100% ECAM compliant. It doesn't handleMark Kettenis
type 0 configuration requests correctly which results in devices on bus 0 appearing multiple times. Fix this by adding a quirk and match the appropriate compatible string. ok jsg@, patrick@
2018-08-09Make two very internal functions static. They are used to merge anClaudio Jeker
AS_PATH with a AS4_PATH and are therefor fairly special.
2018-08-09Define __HAVE_ACPI on arm64 and __HAVE_FDT on arm64, armv7 and octeonPatrick Wildt
so that we can include firmware-dependant code in generic drivers to be able to extract metadata information like MAC addresses and out-of-band interrupts from the ACPI/FDT tables. ok kettenis@
2018-08-09Whoops, didn't mean to commit this.Nicholas Marriott
2018-08-09Bump the UTF-8 character array up to 18 to allow for more combiningNicholas Marriott
characters (some languages use up to five). This size doesn't make as much difference now that UTF-8 goes into an extended cell. GitHub issue 1430.
2018-08-09regenMark Kettenis
2018-08-09ASMedia ASM1184e PCIe switch.Mark Kettenis
2018-08-09Currently, attempting to move an immovable lo(4) to a new rdomain will failakoshibe
with an EPERM, but the target rdomain will still be created. Move the check for an lo(4)'s if_index/if_rdomain to before the creation of a nonexisting target routing table. ok benno@ claudio@ mpi@
2018-08-09Remove the port id check entirely. We don't do anything with the portJonathan Matthew
id after that, so it seems like a silly reason to reject a target. ok dlg@ deraadt@
2018-08-08lockspool only plays with files in _PATH_MAILDIR, so unveil that path.Theo de Raadt
2018-08-08mestre and I can find no reason why the pledge has "unix". DisableTheo de Raadt
that and start listening for failure reports.
2018-08-08ntpd unveils the cert.pem "r" file (which is passed-over-socket to theTheo de Raadt
constraints process), and /usr/sbin/ntpd "x" to perform fork+exec operations.
2018-08-08pledge with "unveil" at the top, so that the various modes can unveilTheo de Raadt
the files they inspect a little later.
2018-08-08Use unveil(2) in the helper process to disallow access to other filesAlexandre Ratchov
than the devices specified with -f and -q options. ok deraadt@
2018-08-08Support DMA coherent devices that attach to mainbus(4) as well.Mark Kettenis
ok patrick@
2018-08-08Fix the ITLinesNumber mask and bump the number of supprted redistributorsMark Kettenis
up to 24. ok patrick@
2018-08-08add unveil(2) to ctfconv(1)Ricardo Mestre
Once we know what the input file is, usually /bsd.gdb, we can unveil it in read mode. If we also define as argument an output file we can additionally unveil that one with write/create permissions. We don't need to care about calling unveil(NULL, NULL) since we can call pledge(2) and reduce the permissions down the road depending on the code path. "reads OK" jasper@, "put it in if works" mpi@ prodded by deraadt@
2018-08-08add unveil(2) to mixerctl(1)Ricardo Mestre
after we know what is the mixer device to be used, either through MIXERDEVICE env var, the argument passed or by default /dev/mixer then we can unveil it in read/write mode, then if opening fails we reduce unveil to only read mode. Once open(2) succeeds then we can disable fs access by calling unveil(NULL, NULL) since all further operations occur on fds. A cleaner solution would be to just call pledge("audio") after open(2) but currently the ioctls used are not whitelisted in pledge(2), ratchov@ will investigate a better way to do this OK ratchov@
2018-08-08Some unsigned long to unsigned int cleanup from recent ber (type) changes.rob
ok claudio@
2018-08-08Unveil the special files needed for reading AML tables, and theTheo de Raadt
directory for placement. We can only protect the directory case, since the file_prefix+sig+id case is too large to enumerate.
2018-08-08After authentication is complete, unveil login.conf "r" (to discoverTheo de Raadt
login tweaks), and walk the path (would could be $PATH, or not) adding an unveil "x" to each possible executable which execvpe() could later be tried by execvpe. It would be great if we could do some unveil before authentication, but I failed to determine all the possibilities. Some problem reports by bluhm, tb, florian, and others during development In snaps for about 3 weeks. ok florian
2018-08-08typo: macro-generates wrappers -> macro-generated wrappersTheo Buehler
2018-08-08An early pledge takes away many risk factors during spool opening/parsing.Theo de Raadt
This is worthwhile keeping, so add "unveil" to defer unveil(2) calls. After various special cases are handled (including files which are anywhere in the filesystem), unveil() to the specific file only.
2018-08-08In netproc process, unveil to only expose the CA file.Theo de Raadt
ok florian
2018-08-08ifconfig cannot be pledged because of its overwhelming amount ofFlorian Obser
used ioctls. Furthermore due to the way the command line parser is written it is difficult to apply the traditional first initialize then pledge pattern. unveil(2) gives us a different approach: By veiling everything with unveil("/", "") and then locking down unveil with unveil(NULL, NULL) we remove all filesystem access from ifconfig kind of like giving a regular user a chroot without any files. OK deraadt
2018-08-08tabs are ok at start of line, but internally space seperation is the normTheo de Raadt
2018-08-08unveil dev.db "r" for devname(), /dev "r", and in the non-sysctl caseTheo de Raadt
some kernel memory/symbol files.
2018-08-08In the early pledge, add "unveil" to permit changes a little later on.Theo de Raadt
If kernel variables are being watched unveil /dev/mem, /dev/kmem, and /dev/ksyms. If testing AF_UNIX, unveil that patch. The next pledge removes "unveil", then tcpbench is largely filesystem restricted.
2018-08-08Even though we strongly discourage escaping hyphens in manual pagesIngo Schwarze
in general, when introducing the *typographic* term "hyphen", actually display a real hyphen in output modes supporting it.
2018-08-08Move struct wire_largecommunity to rde_attr.c since it is only used internallyClaudio Jeker
2018-08-08Fix possible division by zero caused by bogus usb descriptors. FromAlexandre Ratchov
Michael W. Bombardieri. Thanks.
2018-08-08Reorder the text in the "Dashes and Hyphens" subsection to keep theIngo Schwarze
simplest and most important instructions together and at the beginning. No text change. Suggested by jmc@.
2018-08-08Clarify the confusing "(text)" annotation in the character lists.Ingo Schwarze
In some cases, it meant "render as an ASCII character in output modes that have a notion of codepoints" (e.g. UTF-8, HTML); in other cases, "render in the text font in output modes that also provide a special font for mathematical symbols" (e.g. PostScript, PDF). Also explicitly annotate the escape sequences that use a special font if available. OK bentley@
2018-08-08After years of deliberation, finally provide a clear recommendationIngo Schwarze
for hyphens and minus signs in manual pages. Since there is consensus that a typographically perfect solution is impossible, let's KISS - just write "-", don't bother with "\-", all currently relevant manual page formatters can handle "-" reasonably. OK jmc@ bentley@
2018-08-08Merge getcommunity() and getlargecommunity() into one function thatClaudio Jeker
takes a flag if it is large or not. Makes code more reusable.
2018-08-08Make the (non-)transitive handling of ext communities a bit more obvious.Claudio Jeker
2018-08-08syncTheo de Raadt
2018-08-08One ; too muchClaudio Jeker
2018-08-08Update the RIB after a config reload in the background. This moves theClaudio Jeker
heavy bits into the background and so the RDE is able to process new messages more or less instantly after a configuration reload. Not all cases are covered yet but the bulk is. While the backgorund process is running no new config can be loaded. Tested by and OK benno@
2018-08-08Implement IRQ masking and unmasking in imxgpio(4).Patrick Wildt
2018-08-08Extend the FDT interrupt API to support masking and unmasking IRQs.Patrick Wildt
Discussed with kettenis@
2018-08-08regenKevin Lo
2018-08-08Fix Realtek product name from RT8188 to RTL8188CEKevin Lo
ok stsp@
2018-08-08r1.19 removed a bunch of code, but not enough, and left dead code around.kn
From Miod Vallat, "Go ahead" kettenis
2018-08-08hide rib[] internals in new rib_valid() functionSebastian Benoit
ok claudio@
2018-08-08Recognise 'Speculative Store Bypass Disable' support cpuid bit.Jonathan Gray
Documented in 'Speculative Execution Side Channel Mitigations' revision 2.0.
2018-08-08Use new private key format by default. This format is suported byDamien Miller
OpenSSH >= 6.5 (released January 2014), so it should be supported by most OpenSSH versions in active use. It is possible to convert new-format private keys to the older format using "ssh-keygen -f /path/key -pm PEM". ok deraadt dtucker
2018-08-07Unveil is used at tail of initialization to allow "r" of /tftpbootTheo de Raadt
(that decides whether rarpd should reply), and /etc/ethers "r" for debug reporting.
2018-08-07Unveil fits nicely into the syslogd privsep model. Unveiled filesTheo de Raadt
include config file "r", utmp "r", /dev "rw", /bin/sh "x" for running piped commands, and the syslogd binary "x" itself for HUP re-exec upon config loads with changes. Also unveiled in the privsep process are the specific log files being written to. If a config file reload changes no files, the existing privsep process keeps running with unveil's to the relevant files (therefore it can cope with newsyslogd taking files away). If a new config file is loaded which changes the output files, the privsep process is restarted with fork+exec, and installs new unveils as needed. The safety we gain from unveil is that we've pigeonholed the privsep file-writer to exactly the files required. Help from bluhm for some edge cases.
2018-08-07unveil can be used to restrict access to utmp and /devTheo de Raadt