]> git.armaanb.net Git - opendoas.git/log
opendoas.git
8 years agoone whitespace out of place
Theo de Raadt [Wed, 22 Jul 2015 05:37:23 +0000 (05:37 +0000)]
one whitespace out of place

8 years agooptions w/o args go first in SYNOPSIS, and add -C to usage();
Jean-Marie Cannie [Tue, 21 Jul 2015 17:49:33 +0000 (17:49 +0000)]
options w/o args go first in SYNOPSIS, and add -C to usage();

8 years agooops, previous commit regarding cases should have just been for parse.y.
Ted Unangst [Tue, 21 Jul 2015 16:15:20 +0000 (16:15 +0000)]
oops, previous commit regarding cases should have just been for parse.y.

then a commit that says:
add a -C option to check config files without running. ok halex

then *this* commit:
use setresuid to be explicit. suggested by deraadt

8 years agocases should line up with switch, from Dimitris Papastamos
Ted Unangst [Tue, 21 Jul 2015 16:12:04 +0000 (16:12 +0000)]
cases should line up with switch, from Dimitris Papastamos

8 years agoAdd argument matching support to doas.
Vadim Zhukov [Tue, 21 Jul 2015 11:04:06 +0000 (11:04 +0000)]
Add argument matching support to doas.

Input and generic support from many. Final okay from tedu@.

8 years agoSHELL is out, from Michael Reed
Ted Unangst [Mon, 20 Jul 2015 20:18:45 +0000 (20:18 +0000)]
SHELL is out, from Michael Reed

8 years agowhitespace;
Jean-Marie Cannie [Mon, 20 Jul 2015 07:43:27 +0000 (07:43 +0000)]
whitespace;

8 years agosf points out sudo doesn't allow SHELL in children
Ted Unangst [Mon, 20 Jul 2015 01:04:37 +0000 (01:04 +0000)]
sf points out sudo doesn't allow SHELL in children

8 years agocheck that badlisted env has = after the name
Ted Unangst [Mon, 20 Jul 2015 01:00:48 +0000 (01:00 +0000)]
check that badlisted env has = after the name

8 years agorescope and rename some variables to reduce pressure on the alphabet
Ted Unangst [Mon, 20 Jul 2015 00:57:53 +0000 (00:57 +0000)]
rescope and rename some variables to reduce pressure on the alphabet

8 years agointroduce a minimal badset ($ENV) for environment stripping so that
Ted Unangst [Mon, 20 Jul 2015 00:54:01 +0000 (00:54 +0000)]
introduce a minimal badset ($ENV) for environment stripping so that
root shells read the right .kshrc

8 years agowrap long lines and kill some whitespace
<benno@openbsd.org> [Sun, 19 Jul 2015 22:11:41 +0000 (22:11 +0000)]
wrap long lines and kill some whitespace

8 years agoIn the config file allow line continuations with backslashes.
<benno@openbsd.org> [Sun, 19 Jul 2015 22:09:08 +0000 (22:09 +0000)]
In the config file allow line continuations with backslashes.
Document this, and comments and environment variables.
ok tedu@

8 years agowhitespace;
Jean-Marie Cannie [Sun, 19 Jul 2015 17:00:22 +0000 (17:00 +0000)]
whitespace;

8 years agospell out complete path to config file, okay tedu@
Marc Espie [Sun, 19 Jul 2015 16:42:31 +0000 (16:42 +0000)]
spell out complete path to config file, okay tedu@

8 years agosudo emulation: if execvpe fails with ENOENT, print "command not found"
Ted Unangst [Sun, 19 Jul 2015 01:19:22 +0000 (01:19 +0000)]
sudo emulation: if execvpe fails with ENOENT, print "command not found"
requested by krw

8 years agorearrange variable decls a little
Ted Unangst [Sat, 18 Jul 2015 18:44:26 +0000 (18:44 +0000)]
rearrange variable decls a little

8 years agoAdd RCS ID.
Brian Callahan [Sat, 18 Jul 2015 07:49:16 +0000 (07:49 +0000)]
Add RCS ID.
ok deraadt@

8 years agoidentity isn't optional.
<bentley@openbsd.org> [Sat, 18 Jul 2015 07:03:48 +0000 (07:03 +0000)]
identity isn't optional.

ok tedu@

8 years agoAdd doas -s as a shorthand for doas $SHELL. ok tedu
Nicholas Marriott [Sat, 18 Jul 2015 06:33:23 +0000 (06:33 +0000)]
Add doas -s as a shorthand for doas $SHELL. ok tedu

8 years agoAdd more error checking and use named constants when useful.
<doug@openbsd.org> [Sat, 18 Jul 2015 00:19:38 +0000 (00:19 +0000)]
Add more error checking and use named constants when useful.

ok sthen@ tedu@

8 years agoadd some missing content and markup and optimize some indentation
Ingo Schwarze [Fri, 17 Jul 2015 20:50:31 +0000 (20:50 +0000)]
add some missing content and markup and optimize some indentation
ok tedu@

8 years agotweak wording
Ted Unangst [Fri, 17 Jul 2015 20:24:41 +0000 (20:24 +0000)]
tweak wording

8 years agoimprove wording, from Thanos Tsouanas
Ted Unangst [Fri, 17 Jul 2015 17:11:18 +0000 (17:11 +0000)]
improve wording, from Thanos Tsouanas

8 years agoFail if /etc/doas.conf is g+w or o+w or is not owned by root. ok tedu
Nicholas Marriott [Thu, 16 Jul 2015 23:22:08 +0000 (23:22 +0000)]
Fail if /etc/doas.conf is g+w or o+w or is not owned by root. ok tedu

8 years agoPrototype yy* functions, and use verrx in yyerror(). ok tedu
Nicholas Marriott [Thu, 16 Jul 2015 23:02:56 +0000 (23:02 +0000)]
Prototype yy* functions, and use verrx in yyerror(). ok tedu

8 years agoAllow (almost) any non-space character to be a part of "word" in doas.conf.
Vadim Zhukov [Thu, 16 Jul 2015 22:33:01 +0000 (22:33 +0000)]
Allow (almost) any non-space character to be a part of "word" in doas.conf.
This allows weird commands like /bin/echo to be used for real. No command
arguments handling yet, though, as well as quoting.

okay tedu@

8 years agoMissing reallocarray check in doas.c (ok tedu) and a calloc in parse.y
Nicholas Marriott [Thu, 16 Jul 2015 22:11:01 +0000 (22:11 +0000)]
Missing reallocarray check in doas.c (ok tedu) and a calloc in parse.y
as well.

8 years agowrap long lines
Theo de Raadt [Thu, 16 Jul 2015 21:57:54 +0000 (21:57 +0000)]
wrap long lines

8 years agodoas grows up. no insults.
Ted Unangst [Thu, 16 Jul 2015 21:55:03 +0000 (21:55 +0000)]
doas grows up. no insults.

8 years agoTypo: exeucte -> execute
Nicholas Marriott [Thu, 16 Jul 2015 21:24:07 +0000 (21:24 +0000)]
Typo: exeucte -> execute

8 years agocombine fprintfs and use a constant format string. hint from reyk
Ted Unangst [Thu, 16 Jul 2015 21:00:59 +0000 (21:00 +0000)]
combine fprintfs and use a constant format string. hint from reyk

8 years agoimport doas. still subject to changes, large and small.
Ted Unangst [Thu, 16 Jul 2015 20:44:21 +0000 (20:44 +0000)]
import doas. still subject to changes, large and small.