summaryrefslogtreecommitdiffstats
path: root/usr.bin/doas
AgeCommit message (Expand)AuthorFilesLines
2021-01-27Promote nrules/maxrules to size_t and make sure they can't overflow.millert3-13/+14
2021-01-21Revert r1.87 "Pledge before authentication when possible"kn1-9/+5
2021-01-20Pledge before authentication when possiblekn1-5/+9
2021-01-16s/authorization/authentication/gmartijn2-7/+7
2021-01-15Be more explicit by stating that the -n flag is linked to the nopass optionmartijn1-5/+5
2021-01-13Pledge the "-C" code pathkn1-1/+5
2020-10-09fix SEE ALSO;jmc1-2/+2
2020-10-09Add nolog option to avoid syslog(3)kn4-8/+20
2020-10-09Improve error message on missing permissionkn1-2/+2
2020-05-16list example files in FILES with a short description: generally, "Examplejmc1-4/+4
2020-02-10briefly mention /etc/examples/ in the FILES section of all theschwarze1-4/+7
2019-10-18add some checks to avoid UID_MAX (-1) here. this is not problematic withtedu1-3/+7
2019-09-14correct some unveil(2) violations due to "login.conf.db" access (the .db versionsemarie1-2/+3
2019-07-07fix one last edge case regarding PATH, allows simpler config.tedu2-5/+8
2019-07-04note that authentication is required, unless otherwise configured.tedu1-2/+5
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.deraadt1-2/+2
2019-06-29fix some more fallout from setting path in setusercontext. restoretedu1-2/+5
2019-06-24add an example hint that shows how original path can be retainedtedu1-4/+5
2019-06-21tweak wording a bit. always talk about creating a new environment.tedu2-20/+13
2019-06-19more precisely describe what happens to the environment without keepenv;schwarze1-6/+6
2019-06-19mention that doas(1) resets the umask(2);schwarze1-2/+4
2019-06-17setusercontext resets PATH (which we want). but then it becomestedu3-5/+19
2019-06-17mention environment resetting here as well. ok millerttedu1-2/+19
2019-06-17always reset the "su" variables, which is more consistent and predictable.tedu2-16/+22
2019-06-16redo the environment inheritance to not inherit. it was intended to maketedu4-27/+51
2019-06-12a few cleanups and simplifications possible now that static pw is gone.tedu1-12/+11
2019-06-10use getpwuid_r to avoid problems with hidden static storage.tedu1-12/+14
2019-01-17clear the password even after a mismatchtedu1-1/+2
2018-08-08After authentication is complete, unveil login.conf "r" (to discoverderaadt1-5/+49
2018-07-11Do for most running out of memory err() what was done for most runningkrw1-2/+2
2018-02-07lowercase doas ee cummings styletedu1-2/+2
2018-02-07not necessarily the same name, but the indicated nametedu1-3/+3
2017-07-13man pages with pseudo synopses which list filenames end up creatingjmc1-4/+7
2017-07-03no need to generate y.tab.h if nothing uses it, set YFLAGS to nothingespie1-1/+2
2017-05-27for password failure, print Authorization failed instead of EPERM.tedu1-2/+2
2017-04-06a little const here and there to prevent rules from changingtedu1-4/+4
2017-04-06prepenv can take a const ruletedu2-5/+5
2017-03-20simplify example. list of ports variables was non-exahustive, which meanstedu1-12/+6
2017-03-09exit test for -L was reversed. spotted by Michael Forneytedu1-2/+2
2017-01-14add a geteuid check to make sure we're root before plowing into setauth.tedu1-1/+4
2017-01-02envlist and arglist are both string lists; simplifytedu1-26/+15
2016-12-29it has been six months and two days... remove keepenv { obsolete } syntaxtedu1-9/+1
2016-12-05Be more explicit about the "args" syntax.schwarze1-4/+4
2016-11-10missing semicolon at end of rule. yacc doesn't seem to mind, though.tedu1-2/+2
2016-10-05Add back the call to yyparse() that was accidentally dropped in thetb1-1/+2
2016-10-05move yyparse decl next to yyfptedu2-5/+3
2016-10-05as a result of the env rework, arraylen() is only used in parse.y.tedu3-17/+15
2016-09-15use static in the right places to seperate modules betterderaadt4-13/+31
2016-09-04-L means no commandtedu1-3/+4
2016-09-04don't allow combining nopass and persist in a single ruletedu1-1/+5