]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
privsep: Limit rights generically rather than Capsicum specifc
authorRoy Marples <roy@marples.name>
Fri, 5 Jun 2020 19:24:21 +0000 (20:24 +0100)
committerRoy Marples <roy@marples.name>
Fri, 5 Jun 2020 19:24:21 +0000 (20:24 +0100)
commit7ef3d6a703f5c3b1fa537ae324f7d79f085f31f9
tree096d27b660b63c09ff2d66c183ab3a21b1fbea6f
parentff6831723b04b617f73e88cf84387f46eea1faf5
privsep: Limit rights generically rather than Capsicum specifc

You never know when another sandbox tech comes around.
While here, add limits for every socket in the unpriviledged
processes. Some were absent before.

Also, note that RLIMIT_NOFILE breaks our control socket so
temporary disable that.
src/control.c
src/dhcpcd.c
src/if-bsd.c
src/if.c
src/privsep-inet.c
src/privsep-root.c
src/privsep.c
src/privsep.h