Commit graph

74 commits

Author SHA1 Message Date
Tobias Kortkamp 08dab0cd9c Use setusercontext on FreeBSD and get rid of the geteuid/setuid workaround 2016-09-17 02:15:40 +02:00
Jesse Smith 8bec4dcaa6 Fixed bug which prevented the -u flag from switching to
the specified user on FreeBSD when the option was permitted
in the doas.conf file.
2016-08-06 17:31:52 -03:00
Jesse dc0fb3212d When the user is allowed to run commands without a password (ie nopass has
been set in the doas.conf file) then we do not need to redirect a password
prompt to stderr. This patch makes sure output is displayed properly
when the user authenticates with "nopass" set.
2016-07-05 19:45:40 +00:00
Jesse Smith 1a3589f137 Minor clean up of pre-compiler directive that was broken by merge. 2016-06-26 16:40:31 -03:00
Jesse Smith 76f082bed7 cleared up merge errors in doas.c 2016-06-26 16:38:44 -03:00
Jesse Smith 24705b6558 Merge work from branch 'linux' 2016-06-26 16:37:25 -03:00
Jesse Smith 4b32171218 Made sure when running as the effective user root (euid is zero) we actually become
uid 0 in order to avoid file system permission errors/restrictions.
2016-06-26 16:24:42 -03:00
Jesse Smith 47b4ab919a Linux port now compiles and runs. Properly authenticates. 2016-06-26 14:34:33 -03:00
Jesse Smith 304ddb0f5a Minor update to Linux port. 2016-06-26 14:07:06 -03:00
Jesse Smith 14ea837825 Imported hiding password prompt into Linux branch. 2016-06-26 11:45:58 -03:00
Jesse Smith cdf69cb5f5 This commit allows doas to compile on Linux. Does not authenticate yet. 2016-06-26 11:41:31 -03:00
Jesse cef2929df3 Force PAM to display password prompt on stderr instead of stdout. This makes
it possible to redirect command output to a file/pipe without including the doas
password prompt in the output.
2016-06-25 18:32:20 +00:00
Jesse Smith 720db72121 Try to bail out if permitted user suppleis incorrect password. 2016-06-24 16:01:35 -03:00
Jesse Smith f3958f04ad Added reallocarray.c to Makefile to insure it compiles. 2016-06-24 10:06:43 -03:00
Jesse Smith 5559ab3b42 Merge pull request #1 from t6/reallocarray
Import reallocarray implementation from OpenBSD
2016-06-24 09:39:40 -03:00
Tobias Kortkamp aea70ce4ea Apply patches from security/doas port 2016-06-24 13:42:00 +02:00
Tobias Kortkamp 0e2179b92e Simplify Makefile and respect CFLAGS and LDFLAGS from environment 2016-06-24 13:38:10 +02:00
Tobias Kortkamp 64ab988d34 Change realloc() back to reallocarray() 2016-06-24 13:29:08 +02:00
Tobias Kortkamp ef6ff75f22 Fix reallocarray.c compilation on FreeBSD 2016-06-24 13:25:03 +02:00
Tobias Kortkamp 9183a0bb31 Add lib/libc/stdlib/reallocarray.c from OpenBSD 2016-06-24 13:24:23 +02:00
User Jesse e6f145622d Removed unused reallocarr.c file and removed references to it from Makefile.
Fixed typo in parse.y which used + instead of * when calculating memory usage.
2016-06-22 22:59:03 +00:00
Jesse Smith d55af6cdf4 This is the initial port of doas to FreeBSD. It compiles, installs and works.
Could probably use a clean-up, but this code is functional on FreeBSD 10.3.
2016-06-22 12:21:34 -03:00
Jesse Smith cb8d475985 Initial upload from OpenBSD
This is the initial upload from OpenBSD. Kept for history and comparision with future releases.
2016-06-22 12:17:53 -03:00
Jesse Smith de1553d114 Initial commit 2016-06-22 12:16:18 -03:00