No description
Find a file
David van Moolenbroek dfc3261535 PFS, inet: use static UID to drop privileges
Previously, services would obtain the user ID of "service" through
getpwnam(3).  While this approach is conceptually better, it also
imposes linking against libc which in turn causes problems with
printf(3), which already led to PFS no longer dropping privileges at
all.  For now, we hardcode SERVICE_UID and use that instead.

In the future, two changes should allow removal of SERVICE_UID again:
- "service edit" should cause RS to request that a service (such as
  PFS) drop privileges through SEF, using the user ID resolved by
  service(8), or something similar;
- a future devfs should make it possible for inet to start without
  root privileges altogether.

Change-Id: Ie02a1e888cde325806fc0ae76909943ac42c9b96
2015-06-06 21:42:48 +00:00
bin Importing bin/dd 2015-04-15 13:50:57 +02:00
common ARM: can build with llvm, switch to EABI 2014-12-12 13:04:56 +01:00
distrib Add manpage for sprofdiff 2015-05-18 13:52:13 +02:00
docs Clearing history in docs/UPDATING 2014-08-01 14:58:40 +02:00
etc man: clean-out man1x category. 2015-03-25 06:53:44 +01:00
external ARM: can build with llvm, switch to EABI 2014-12-12 13:04:56 +01:00
games Import games/caesar and games/rot13 2015-04-15 09:47:27 +02:00
gnu Update download urls in fetch.sh 2014-08-07 14:27:32 +02:00
include New sources layout 2014-07-31 16:00:30 +02:00
lib Fix unused variable warnings 2015-03-18 07:49:03 +01:00
libexec LLVM Minix changes 2014-07-28 17:05:59 +02:00
minix PFS, inet: use static UID to drop privileges 2015-06-06 21:42:48 +00:00
releasetools release.sh: Support preinstalled package selection 2015-03-20 11:17:24 +01:00
sbin INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
share ARM: can build with llvm, switch to EABI 2014-12-12 13:04:56 +01:00
sys libsa: add string precision support to vprintf 2015-02-10 13:47:28 +00:00
tests LLVM Minix changes 2014-07-28 17:05:59 +02:00
tools buildsystem: fix build errors for x86 on OSX 2014-11-04 11:00:29 +01:00
usr.bin ARM: can build with llvm, switch to EABI 2014-12-12 13:04:56 +01:00
usr.sbin Import NetBSD shell environment files 2014-11-10 16:48:56 +01:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview build:update 'git review' config to match gerrit.minix3.org 2014-07-28 17:05:15 +02:00
build.sh Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile INIT died problem / build system robustness 2014-08-28 08:52:50 +02:00
Makefile.inc Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00