1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin
deraadt 4ea7ed56bd pledge()'s 2nd argument becomes char *execpromises, which becomes the
pledge for a new execve image immediately upon start.  Also introduces
"error" which makes violations return -1 ENOSYS instead of killing the
program ("error" may not be handed to a setuid/setgid program, which
may be missing/ignoring syscall return values and would continue with
inconsistant state)
Discussion with many
florian has used this to improve the strictness of a daemon
2017-12-12 01:12:34 +00:00
..
apply
arch delete duplicate RCS IDs; found with mandoc -Tlint 2017-07-06 16:50:58 +00:00
at Finer grained pledge for at(1). After setegid(), do a three-way pledge: 2017-06-15 19:37:10 +00:00
aucat Remove useless variable assignments in .au header parsing code. From 2017-11-23 06:03:55 +00:00
audioctl close fd on an exit path 2017-05-31 04:18:58 +00:00
awk Convert snprintf+write into dprintf. It is simply easier to read, and 2017-12-08 17:04:14 +00:00
banner trim some unused compile options for alternative character forms. 2017-05-27 07:55:44 +00:00
basename Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
bc Jan Stary convinced me 4 * a(1) is a better example 2017-10-09 06:59:07 +00:00
bgplg let the looking glass look at the details for a specific AS 2017-08-09 19:15:18 +00:00
biff biff, mesg, vi: only consider ACCESSPERMS for setting tty mode. 2016-07-07 09:26:25 +00:00
cal uppercase for "the Reformation"; 2016-11-27 10:37:22 +00:00
calendar Calling waitpid(pid,...) where pid is either uninitialized or 2017-09-25 19:13:56 +00:00
cap_mkdb remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
cdio Let it compile again. 2017-12-07 02:08:44 +00:00
chpass Convert snprintf+write into dprintf. It is simply easier to read, and 2017-12-08 17:04:14 +00:00
cmp Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
col
colrm obvious case of s/LC_ALL/LC_CTYPE/, noticed by Jan Stary 2016-10-27 12:53:54 +00:00
column As suggested by martijn@, delete absurd EXAMPLES section and two 2016-10-24 13:53:05 +00:00
comm
compress Remove unused zclose function. 2017-05-29 14:41:16 +00:00
cpp
crontab
csplit Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
ctags Ensure that the tag and line number are always separated by at least a single 2017-10-11 07:26:40 +00:00
ctfconv Verify that every section header lies within the mapped file. 2017-11-14 09:14:50 +00:00
ctfdump Verify that every section header lies within the mapped file. 2017-11-14 09:14:50 +00:00
cu sort -r in the description list, and make its grammar match those 2017-12-10 07:34:38 +00:00
cut Unify wording for LC_CTYPE in ENVIRONMENT: 2016-10-24 13:46:58 +00:00
cvs fix const related warnings; ok millert@ 2017-08-28 19:33:20 +00:00
dc zap a few stray backslashes from the time thesse two were #defines; from 2017-12-07 06:34:05 +00:00
deroff add missing HISTORY; based on CVS logs and release announcements 2017-10-17 22:47:58 +00:00
diff Fix exit value when diffing directories with missing files and the -N 2017-08-28 15:33:27 +00:00
diff3 Using bitwise OR along with two assignments in the conditional of 2016-10-18 21:06:52 +00:00
dirname Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
doas man pages with pseudo synopses which list filenames end up creating 2017-07-13 19:16:33 +00:00
du Convert quad_t to int64_t and %q to %ll 2016-08-24 03:13:45 +00:00
encrypt remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
env Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
expand for some time now mandoc has not required MLINKS to function 2016-03-30 06:38:40 +00:00
false
fgen
file Default unknowns to application/octet-stream instead of x-not-regular-file. 2017-11-30 11:10:07 +00:00
find Convert snprintf+write into dprintf. It is simply easier to read, and 2017-12-08 17:04:14 +00:00
finger Use pread/pwrite instead separate lseek+read/write for lastlog. 2015-12-26 20:51:35 +00:00
fmt remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
fold Unify wording for LC_CTYPE in ENVIRONMENT: 2016-10-24 13:46:58 +00:00
from Use ferror() to check for getline() failure. From Scott Cheloha. 2017-05-31 19:41:30 +00:00
fstat repair columns; from kshe59@zohu.eu 2017-12-08 17:51:26 +00:00
ftp Initialize 'out' file descriptor to avoid possible 2017-09-25 11:04:54 +00:00
gencat remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
getcap In "%.*s" the * takes (int). gcc whines if you try to use the result 2017-01-20 03:47:31 +00:00
getconf Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
getent Hmm, SHELLSPRINT may be pointless, but keep it for consistency with other dbs. 2016-02-01 19:57:28 +00:00
getopt
gprof Prefer <elf.h> to the non portable <sys/exec_elf.h>. 2017-10-29 08:45:53 +00:00
grep - add max-count to SYNOPSIS 2017-12-10 09:17:24 +00:00
head whitespace: remove a space before a tab and a trailing tab. 2016-03-20 17:14:51 +00:00
hexdump fix a shadow warning. from Brian Callahan 2017-05-30 05:58:44 +00:00
htpasswd remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
id usage and order tweaks from jmc 2017-05-30 15:29:53 +00:00
indent it's typedef, not typdef. 2016-06-06 06:43:03 +00:00
infocmp mark files as BUILDFIRST, or write explicit dependencies, so that most 2017-06-16 10:25:54 +00:00
ipcrm
ipcs
join
jot style cleanup: sort headers; group and sort variables; no parens for 2016-09-02 14:23:09 +00:00
kdump pledge()'s 2nd argument becomes char *execpromises, which becomes the 2017-12-12 01:12:34 +00:00
keynote remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
ktrace usr/bin/ktrace: replace snprintf(3)/write(2) with dprintf(3) 2017-06-11 17:32:19 +00:00
lam Add HISTORY and AUTHORS sections. 2016-01-04 23:21:28 +00:00
last
lastcomm ASLR, W^X, and guard pages trigger processor traps that result in 2017-06-08 17:14:02 +00:00
leave
less Use CLOCK_MONOTONIC for the delay before printing "Calculating line numbers" 2017-11-27 23:39:03 +00:00
lex Remove unused variable; no binary change. 2017-08-30 02:54:07 +00:00
libtool Recognize '-weak' in our libtool, helps at least xine-lib to build. 2017-07-23 09:48:53 +00:00
lndir
locale Polishing together with jmc@: 2016-10-26 01:00:27 +00:00
locate Add missing length checks to make sure we don't dereference a pointer 2017-12-08 17:26:42 +00:00
lock After recent changes, we need to clear hash, not s1. 2017-09-06 21:02:31 +00:00
logger remove unused variable 2016-03-28 18:18:52 +00:00
login Convert snprintf+write into dprintf. It is simply easier to read, and 2017-12-08 17:04:14 +00:00
logname delete useless call to setlocale(3); while here, polish style: 2016-10-13 11:51:02 +00:00
look Nuke more whitespace caught in the headlights of "warning:" 2017-01-21 10:03:27 +00:00
lorder
m4 replace sloppy parsing of numeric values with strtonum (incr, decr, divert) 2017-11-11 12:55:59 +00:00
mail Replace usage of TIOCSTI in mail while editing headers using a more common 2017-06-28 14:58:23 +00:00
make Fix a case where we could go off the end of the buffer. 2017-12-05 17:47:09 +00:00
mandoc Recognize .Bl -column at parse time, and not only at validation time, 2017-11-29 20:04:36 +00:00
mesg biff, mesg, vi: only consider ACCESSPERMS for setting tty mode. 2016-07-07 09:26:25 +00:00
mg fix the description of delete-non-matching-lines; 2017-12-11 07:27:07 +00:00
midiplay Print usage on stderr as do other programs. From Michael 2017-04-24 06:45:56 +00:00
mixerctl
mkdep explicitly pass -w since clang -M doesn't imply it. 2017-06-05 14:33:42 +00:00
mklocale remove misc. depend and yacc nits that no longer matter. 2017-07-10 21:30:37 +00:00
mktemp
nc Allow TLS ciphers and protocols to be specified for nc(1). 2017-11-28 16:59:10 +00:00
netstat Convert all the fields of {ah,esp,ipcomp}stat to uint64. 2017-11-07 16:51:23 +00:00
newsyslog Simplify mail sending. 2017-07-24 12:57:01 +00:00
nfsstat Pull in <sys/time.h> for struct timespec and timeval 2016-08-27 04:07:42 +00:00
nice Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
nl Document that "nl -d" uses LC_CTYPE. 2016-10-28 07:33:57 +00:00
nm recognize .openbsd.randomdata section and indicate it roughly, so 2017-12-09 06:39:04 +00:00
nohup
openssl Seperate real and user timer interfaces 2017-12-05 15:02:06 +00:00
pagesize
passwd Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(), 2017-08-21 21:41:13 +00:00
paste Remove the nonsensical "-s - -" in the third example; quirk reported 2017-06-28 14:49:26 +00:00
patch rejname[] is also -r option buffer, and should be PATH_MAX 2017-06-12 14:23:26 +00:00
pctr sysctl strings include the termingating NUL character in both in and out lengths 2017-09-10 11:30:43 +00:00
pkg-config Don't remove subpaths of /usr/include or /usr/lib from the output of 2017-08-26 09:03:51 +00:00
pkill remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
pr Kill bogus use of LC_TIME 2017-11-02 09:52:04 +00:00
printenv
printf Fix two documentation bugs: 2016-11-18 15:59:10 +00:00
quota More "(<blah> *)0" -> NULL, avoiding any stdarg functions. 2016-03-16 15:41:10 +00:00
radioctl
rcs add missing HISTORY; based on CVS logs and release announcements 2017-10-17 22:47:58 +00:00
rdist Use <elf.h> instead of <elf_abi.h> 2017-10-27 16:47:08 +00:00
rdistd gid_t is unsigned, so < 0 test is always false, compare against (gid_t)-1 2017-08-30 07:43:52 +00:00
readlink
renice Replace an exit(3) call in main() with a return to enable the stack 2016-09-19 20:20:38 +00:00
rev Document that rev(1) uses LC_CTYPE. 2016-10-28 07:28:27 +00:00
rpcgen Nuke whitespace foolish enough to expose itself during the great 2017-01-21 08:33:07 +00:00
rpcinfo I'm equally upset as Kurt Mosiejczuk, who found irrelevant 22-year 2017-07-21 02:58:51 +00:00
rs Unify wording for LC_CTYPE in ENVIRONMENT: 2016-10-24 13:46:58 +00:00
rup recallocarray array that has remote data 2017-03-20 16:10:10 +00:00
rusers The POSIX APIs that that sockaddrs all ignore the s*_len field in the 2017-01-21 11:32:04 +00:00
rwall
script bluhm discovered "script < /dev/null" attempts tty operations in violation 2017-04-12 14:49:05 +00:00
sdiff add missing HISTORY; based on CVS logs and release announcements 2017-10-17 22:47:58 +00:00
sed Fix and change y command in the following ways: 2017-12-11 13:25:57 +00:00
sendbug Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(), 2017-08-21 21:41:13 +00:00
shar
showmount The POSIX APIs that that sockaddrs all ignore the s*_len field in the 2017-01-21 11:32:04 +00:00
signify also crank for 6.2 2017-08-20 22:36:10 +00:00
skey Use the safe idiom of cleaning sensitive data from memory with explicit_bzero, 2017-05-03 09:51:39 +00:00
skeyaudit Another use for fcntl() and thus of the superfluous 3rd parameter 2016-04-02 14:37:42 +00:00
skeyinfo
skeyinit Refactor the handling of pledge and the optional user string: The three 2016-05-17 23:36:29 +00:00
sndiod Fix slot leak occuring when the device mode doesn't match 2017-11-23 06:26:45 +00:00
sort add missing blanks before several delimiters; found with mandoc -Tlint 2017-06-10 14:54:42 +00:00
spell add missing HISTORY; based on CVS logs and release announcements 2017-10-17 22:47:58 +00:00
split Remove use of sysexits.h. 2015-12-31 16:13:01 +00:00
ssh ssh/lib hasn't worked towards our code-sharing goals for a quit while, 2017-12-10 19:37:57 +00:00
stat
su
systat print the number of GCs with print_fld_size instead of print_fld_uint. 2017-07-31 04:23:30 +00:00
tail Change a reallocarray+bzero into recallocarray. 2017-03-26 19:55:07 +00:00
talk incompatibilities with 4.2 are no longer interesting 2017-05-25 20:25:50 +00:00
tcpbench remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
tee Replace manual list with SLIST. 2017-07-11 13:14:59 +00:00
telnet Use a boolean variable to remember the quotation level instead of 2017-08-22 15:04:18 +00:00
tftp Use monotonic clock for statistics display. From Scott Cheloha. 2017-09-10 07:29:39 +00:00
tic mark files as BUILDFIRST, or write explicit dependencies, so that most 2017-06-16 10:25:54 +00:00
time Minor cleanup, joint work with Scott Cheloha <scottcheloha at gmail dot com>: 2017-08-21 13:38:02 +00:00
tmux Allow formats in selectp -T, from Thomas Adam. 2017-11-17 09:52:18 +00:00
top avoid some shadow warnings. from Brian Callahan 2017-05-30 06:01:30 +00:00
touch
tput Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(), 2017-08-21 21:41:13 +00:00
tr
true remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
tset mark files as BUILDFIRST, or write explicit dependencies, so that most 2017-06-16 10:25:54 +00:00
tsort remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
tty
ul More HISTORY and AUTHORS, in part from Jonathan de Boyne Pollard 2017-10-29 22:00:22 +00:00
uname Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
unexpand Make the "all" global variable local to main() since it is passed 2016-10-11 16:22:15 +00:00
unifdef Pa -> Lk; ok jmc@ 2017-10-23 17:19:21 +00:00
uniq Unify wording for LC_CTYPE in ENVIRONMENT: 2016-10-24 13:46:58 +00:00
units update currency exchange rates; 2017-12-01 09:40:33 +00:00
unvis
usbhidaction remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
usbhidctl revert previous now that they are found in usbhid.h again 2016-01-09 02:01:34 +00:00
users
uudecode Add missing pledge "getpw". If -s or -o were specified on the command 2016-01-03 14:43:20 +00:00
uuencode for some time now mandoc has not required MLINKS to function 2016-03-30 06:38:40 +00:00
vacation
vi Fix segfault which could be triggered by deleting a backwards sentence if 2017-11-26 09:59:41 +00:00
vis When iterating over the list of input files close them when 2016-08-31 09:45:00 +00:00
vmstat remove description of 'at' field which was removed from vmstat.c -r1.21 2017-12-08 09:45:05 +00:00
w kp can be NULL (eg, stale utmp entry), so adjust the comment. 2017-07-27 14:17:34 +00:00
wall Allow a bel character in wall. This was missed when migrating away from 2016-08-01 20:30:25 +00:00
wc Unify wording for LC_CTYPE in ENVIRONMENT: 2016-10-24 13:46:58 +00:00
what
which Delete some useless setlocale(3) calls in /usr/bin, no functional change. 2016-10-28 07:22:59 +00:00
who Mark up "am i" as Cm, not Ar. 2017-06-19 06:05:33 +00:00
whois Teach whois(1) to use the new whois referral field name which has now gone 2017-07-26 15:48:38 +00:00
write Explain why we intentionally violate POSIX here, to prevent people from 2016-02-05 21:03:51 +00:00
x99token Use the safe idiom of cleaning sensitive data from memory with explicit_bzero, 2017-05-03 09:51:39 +00:00
xargs Favor memmove() over memcpy() since dst and src originates from the same 2017-10-16 13:10:50 +00:00
xinstall Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(), 2017-08-21 21:41:13 +00:00
yacc fix a variety of warnings. from Brian Callahan 2017-05-25 20:11:03 +00:00
yes
ypcat
ypmatch
ypwhich remove redundant variable declarations in Makefiles, since those are 2017-07-09 21:23:18 +00:00
Makefile Enter ctfconv and ctfdump 2017-08-11 14:28:14 +00:00
Makefile.inc