summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strmode.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-09-22 21:16:54 +0000
committeremaste <emaste@FreeBSD.org>2016-09-22 21:16:54 +0000
commitd6f211b5350cc296f0dbbd0095deeb49acd01501 (patch)
tree21b6fa7ae9972058b5ef49e50250d22789bd8df0 /lib/libc/string/strmode.c
parentb372ba880f673f21dc91f5e801dd88ff9daa5f26 (diff)
downloadFreeBSD-src-d6f211b5350cc296f0dbbd0095deeb49acd01501.zip
FreeBSD-src-d6f211b5350cc296f0dbbd0095deeb49acd01501.tar.gz
MFC bspatch Capsicumization and improvements
r304691: bspatch: apply style(9) Make style changes (and trivial refactoring of open calls) now in order to reduce noise in diffs for future capsicum changes. r304807 (allanjude): Capsicumize bspatch Move all of the fopen() and open() calls to the top of main() Restrict each FD to least privilege (read/seek only, write only, etc) cap_enter(), and make all except the output FD read/seek only. r304821: bspatch: remove output file in the case of error r305486: bspatch: add sanity checks on sizes to avoid integer overflow Note that this introduces an explicit 2GB limit, but this was already implicit in variable and function argument types. This is based on the "non-cryptanalytic attacks against freebsd update components" anonymous gist. Further refinement is planned. r305737: bspatch: remove superfluous newlines from errx strings r305822: bspatch: use #define for header size instead of magic number r306026: bspatch: Remove backwards-compatibility sys/capability.h support bspatch previously included sys/capability.h or sys/capsicum.h based on __FreeBSD_version, as FreeBSD is the upstream for bsdiff and we may see this file incorporated into other third-party software. The Capsicum header is now installed as sys/capsicum.h in stable/10 and FreeBSD 10.3, so we can just use sys/capsicum.h and simplify the logic.
Diffstat (limited to 'lib/libc/string/strmode.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud