summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
AgeCommit message (Collapse)Author
2016-03-07regentb
2016-03-07There is a mknod(2) call hidden deep in the guts of cvs(1) thattb
could in principle be called at any point during runtime. Instead of adding "dpath" to the relevant pledges, disable the code path itself. Now instead of hitting a brutal abort(3), you will just get an error message. autoconf handholding + ok jca@
2016-02-24Cope with ambiguous environmentsAndrew Fresh
from Ricardo Signes ok deraadt@
2016-01-11Fix perl CVE-2015-8607 - XS File::Spec::canonpath loses taintAndrew Fresh
https://rt.perl.org/Ticket/Display.html?id=126862
2014-11-17Import perl-5.20.1Andrew Fresh
2015-12-27add missing header needed for pledge(2)Charles Longeau
ok deraadt@
2015-12-21Recognise the rdseed instruction introduced with Broadwell.Jonathan Gray
Similar to changes made in FreeBSD. ok kettenis@
2015-12-18Add library-based __sync functions for mips64.Visa Hankala
Help with testing and ok kettenis@
2015-12-10Actually install OpenBSD::Pledge perl moduleAndrew Fresh
2015-12-05Implement the .inst assembler directive for arm.Tobias Ulmer
Required for building gcc 4.9 ok jsg@
2015-11-29OpenBSD::Pledge - perl interface to pledge(2)Andrew Fresh
okay espie@ "we should be wary" deraadt@
2015-11-28Back out previous commit. Not emitting DT_RPATH isn't helpful if our ld.soMark Kettenis
doesn't grok DT_RUNPATH yet.
2015-11-26Fix "Bad value" error seen when building Mesa 11.0.6 which uses -Bsymbolic.Mark Kettenis
Inspired by https://sourceware.org/ml/binutils/2010-08/msg00333.html, but expressed differently so there are no GPLv3 issues.
2015-11-26change the name "as" in the NAME section of the as(1) manuals to lowercase;Ingo Schwarze
requested by and OK jmc@
2015-11-22Use yy_size_t instead of int in yy_input(). Makes things work on BE 64-bitMark Kettenis
architectures when yy_size_t becomes size_t instead of unsigned int. ok millert@, tedu@
2015-11-20Regen.Jeremie Courreges-Anglas
2015-11-20Server-side pserver support is broken, and we don't plan to support it.Jeremie Courreges-Anglas
ok sthen@ semarie@
2015-11-20Unbreak, tcflow and its underlying ioctls aren't allowed by pledge(2).Jeremie Courreges-Anglas
Just delete the tcflow(3) calls, the use case for tcflow(3) here is a bit far-fetched. looks good to deraadt@, ok espie@
1995-12-19raw import of cvs-1.6Theo de Raadt
2015-11-17Pledge cvs(1).Jeremie Courreges-Anglas
The initial pledge(2) call is broad, we can refine later when we know whether we run in server, pserver client mode or regular client mode. pserver server mode is likely broken, it will either be fixed or removed. With and ok semarie@, "let's proceed." deraadt@
2015-11-15Same as in binutils-2.17, only restore regular permission bits.Jeremie Courreges-Anglas
But don't restore ownership/setuid/etc bits. ok deraadt@
2015-11-15In smart_rename, restore at least the regular permissions bits.Jeremie Courreges-Anglas
But don't try to chown or set special bits. This fixes several ports. ok deraadt@
2000-09-12Import binutils-2.10Marc Espie
- only the binutils package (no gdb here) - don't import libiberty and texinfo, they are elsewhere - remove all .info* generated files
2015-11-15Now that the (setuid bit related) bad-practice audit and repair is complete,Theo de Raadt
ar/ranlib and objcopy/strip can pledge "stdio rpath wpath cpath fattr" ok guenther
2015-11-15In most cases binutils strips off setuid/setgid bits when creating copiesTheo de Raadt
of files. In two cases however they were not being masked. These are build tools -- therefore they should not encourage further propogation of such unsafe bits. ok guenther
2015-11-15Using #ifndef __OpenBSD__, disable the really dangerous and sillyTheo de Raadt
setuid-preserving code in the so-called smart_rename() function. I don't want my tools (ar, ranlib, objcopy, strip) going through the effort to preserve setuid bits on ``build-directory'' files when they sense a symbolic link, thank you very much. The modern way is to build code, then set such modes at install-time. Our kernel goes through the effort to clear setuid flags, and this was neutering that attempt. Also has atrocious error handling. (Identified as an issue of concern while doing the audit for pledge) ok guenther
2015-11-14info - pledge stdio rpath wpath cpath getpw tty proc execTheo de Raadt
infokey - stdio rpath wpath cpath tty makeinfo - stdio rpath wpath cpath getpw install-info - stdio rpath wpath cpath proc exec texindex - stdio rpath wpath cpath tmppath ok schwarze
2015-11-14Betting pledge "stdio rpath wpath cpath" works for this. Let's get it intoTheo de Raadt
the ports build cycle to find out for sure.
2002-06-10TeXinfo 4.2, much more robust html (and other formats) output, and a few Marc Espie
features that new FSF programs will need (e.g., gcc snapshots). looked at by fgs@, thanks.
2015-11-13pledge "stdio rpath wpath cpath fattr" for both as & ldTheo de Raadt
ok semarie
2015-11-12With --enable-new-dtags, only generate DT_RUNPATH and no DT_RPATHPhilip Guenther
ok kettenis@
2015-11-11update NAME;Jason McIntyre
kettenis ok'd me poking around in here; ingo ok'd the diff
2004-05-17import binutils 2.14 (excluding testsuites, .info files, and .po files)Dale Rahn
2015-11-11Correct several DT_foo (tag id) vs DF_* (flag bit) errorsPhilip Guenther
ok deraadt@ kettenis@
2015-11-09Start moving some vmm things into the tree. First up is binutils so we willMike Larkin
be able to use the virtualization instructions. ok'ed a long time ago, I forgot who, but deraadt@ ok'ed it again anyway.
2015-11-08Revert 1.2 and 1.3 in order to go back to the default upstream behaviourMiod Vallat
of registering an explicit dependency upon libstdc++.so when linking a shared library with c++. The explicit dependency had been reverted a long time ago when most of our platforms were still usinc gcc 2.95, in order to have the same behaviour between g++ 2.95 and g++ 3.3, for the sake of ports. However, when we started using gcc 4, the default behaviour was not modified, and nowadays, it's g++ 3 which differs from g++ 4. By reverting to the original behaviour, g++ 3 is on par with g++ 4 again.
2015-10-30Use crypt_checkpass() instead of strcmp(hash, crypt(password, hash)).Todd C. Miller
Fixes a crash in pserver mode when CVSROOT/passwd contains an old DES password.
2015-10-22Add pledge(2) to some binutils that handle untrusted data. Most can do withPascal Stumpf
"stdio rpath", while objdump(1) also needs "tmppath" for objdump -i. ok deraadt@, comments sthen@ kettenis@
2015-09-16Enable -msecure-plt by default (on powerpc).Mark Kettenis
ok pascal@
2015-09-09For truly static binaries, force .ctors, .dtors and .got to be read-only.Mark Kettenis
This will make the segment containing those sections read-only for binaries that use the OpenBSD W^X layout, preventing W^X violations on architectures that need an executable GOT (basically BSS-PLT powerpc). ok miod@
2015-08-31The code that guesstimates the number of local GOT entries assumes that thereMark Kettenis
are only two loadable segments. With W^X on OpenBSD, we will typically create more than two. Most shared libraries and binaries end up with five of them. One of them is the GOT itself so we don't need to take that one into account. So raise the number of spare local GOT entries from 5 to 7. This fixes building liblto_plugin.so in the gcc 4.9 port. ok miod@, jasper@, pascal@
2015-08-28Make gdb work again on mips64 PIE binaries by making sure that we selectMark Kettenis
a reasonable 64-bit ABI for 64-bit ELF files instead of a 32-bit ABI.
2015-08-28Add support for Irix-style "64-bit" archives.Mark Kettenis
ok visa@, deraadt@
2015-08-28Do proper GOT slot accounting for symbols that were forced to be local.Mark Kettenis
This fix first appeared in FSF binutils after the switch to GPLv3. However Daniel Jacobowitz, who wrote the fix, confirms he worked for CodeSourcery at the time (as suggested by the ChangeLog entry), and CodeSourcery included this fix in the 4.1-176 version of their toolchain that was distributed under GPLv2. ok guenther@, ok deraadt@
2015-08-25Unbreak binutils on sparc64, hppa (and probably some others).Theo de Raadt
Jumbo merges are NOT WELCOME. They have to be seperated out and tested.
2015-08-24add missing includes for free, exit, errx and strchrJonathan Gray
2015-08-23Introduce -Bsymbolic-functions and related flags. Taken from twoBrian Callahan
post-binutils 2.17 but pre-GPLv3 commits. miod@ says now is the time to get this in.
2015-08-23Define HAVE_AS_REL16, as binutils 2.17 supports the R_PPC_REL16 reloc.Mark Kettenis
This makes the -msecure-plt option work, which is necessary to generate Secure-PLT ABI code.
2015-08-23Enable missing code to fully enable the Secure-PLT ABI and clean up theMark Kettenis
remaining commented out variable settings. We'll continue to use the same layout for both BSS-PLT and Secure-PLT since supporting the more relro friendly layout that Linux uses isn't compatible with our way of making the PLT and GOT read-only.
2015-08-03Prevent a NULL dereference when a plt entry is not found.Martin Pieuchot
This smells like a workaround but it allows audio/mpd to build and the resulting binary runs well enough to make landry@ happy. In any case, having a broken binary is not much worse than not having a binary because ld(1) crashed. ok miod@, deraadt@