Commit graph

15 commits

Author SHA1 Message Date
Jesse 9a4eb403de Updated manual pages to address situations where multiple usernames
resolve to the same UID and how the "as" syntax in the doas.conf
file is affected.
2022-09-12 17:33:17 -03:00
Jesse Smith 065b375add Updated doas.conf page to match current list of environment variables
passed to new session.
2021-06-03 11:49:03 -03:00
Jesse Smith 6613c9d10c Updated doas.conf manual page to clarify environment variables copied over
from original user's account.
2021-06-01 22:58:07 -03:00
Jesse Smith bb7069a9ff Modified the doas.conf manual page to include a note about
each rule in the doas.conf file requiring a newline at
the end.
2021-02-02 19:35:37 -04:00
Jesse Smith 91622fcbb1 Added the "nolog" configuration file flag which allows specified
users to perform commands without successful commands being
logged to syslogd.

Added documentation to doas.conf manual page and doas.conf.sample
files to include tips and and example of the "nolog" flag in action.

The "nolog" flag is a feature of OpenBSD's doas command and has
been introduced for compatibility and as an optional way to avoid
filling up system logs with successful doas calls.
2021-01-27 22:43:22 -04:00
Jesse Smith be85cdabda Updated doas.conf manual page to reflect new way of calling
vidoas script.
2021-01-25 22:41:10 -04:00
Kimmo Suominen 7648f25667 Install doas.conf safely. Define DOAS_CONF only once.
- Use mv(1) to install doas.conf to avoid writing a configuration file
  while other processes might be reading it.
- Define the DOAS_CONF path once in Makefile and pass that to the
  substitutions instead of recreating the full path independently in
  multiple files.
- Add a separate rule for building the doas binary, instead of creating
  it in the "all" target.  This avoids some unnecessary re-linking.
2020-11-09 00:12:50 +02:00
Jesse Smith e2a5c3f5f7 Added warning about implicit versus explicity rules in
the doas.conf manual page.
2020-11-07 17:04:16 -04:00
Jesse Smith 0d53f98938 Updated doas.conf.5 manual page to include mention of the vidoas script. 2020-08-07 18:41:41 -03:00
ng0 dad0c10232 manpages: patch in the correct installed location of the config file.
This resolves http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54717
2019-11-28 10:17:11 +00:00
Jesse Smith 8e9c2bde06 Removed the transfer of most environment variables, such as USER, HOME,
and PATH from the original user to the target user. This could cause
files in the wrogn path or home directory to be read (or written to),
which resulted in potential security problems.

This has been changed so that only DISPLAY and TERM are passed to the
new environment. This is fine for running command line programs. When
GUI programs need to be run, "keepenv" can be added to the user's
doas.conf entry. This results in variables like HOME being copied
to the target user, allowing GUI programs to run.

Many thanks to Sander Bos for reporting this issue and explaining
how it can be exploited.

This commit also adds the ability to pass a customized PATH to
target users. The new PATH can be set at compile time in the
Makefile. The default path is provided in the Makefile and commented
out.
2019-08-03 17:39:15 -03:00
Jesse Smith ce871f82bc Updated documentation to include -- paramter and to make it clear
the persist keyword does not currently work on Linux or FreeBSD.
2017-02-17 11:24:29 -04:00
katakk 453102110a Merge, update from OpenBSD 2017-01-24 01:12:56 +09: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