artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e024fcb
)
Pledge the syslogd privsep process with "stdio rpath wpath cpath
author
bluhm
<bluhm@openbsd.org>
Fri, 16 Oct 2015 16:10:10 +0000
(16:10 +0000)
committer
bluhm
<bluhm@openbsd.org>
Fri, 16 Oct 2015 16:10:10 +0000
(16:10 +0000)
inet dns getpw sendfd proc exec".
OK deraadt@
usr.sbin/syslogd/privsep.c
patch
|
blob
|
history
diff --git
a/usr.sbin/syslogd/privsep.c
b/usr.sbin/syslogd/privsep.c
index
94f6b2a
..
4487650
100644
(file)
--- a/
usr.sbin/syslogd/privsep.c
+++ b/
usr.sbin/syslogd/privsep.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: privsep.c,v 1.5
6 2015/10/15 20:26:47
bluhm Exp $ */
+/* $OpenBSD: privsep.c,v 1.5
7 2015/10/16 16:10:10
bluhm Exp $ */
/*
* Copyright (c) 2003 Anil Madhavapeddy <anil@recoil.org>
@@
-144,6
+144,10
@@
priv_init(char *conf, int numeric, int lockfd, int nullfd, char *argv[])
return 0;
}
+ if (pledge("stdio rpath wpath cpath inet dns getpw sendfd proc exec",
+ NULL) == -1)
+ err(1, "pledge priv");
+
if (!Debug) {
close(lockfd);
dup2(nullfd, STDIN_FILENO);