-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPSec (charon) demon does not reduce privilege after startup #1103
Comments
|
According to the following document, this needs to be compiled into StrongSwan, but I found no such option in the FreeBSD port of StrongSwan. https://wiki.strongswan.org/projects/strongswan/wiki/ReducedPrivileges Am I missing something vital here? |
|
You'll probably need to patch the Makefile with --with-capabilities=libcap to enable it. I've it working in FreeBSD before after patching the makefile and building it. |
|
I'll look into this, although I can't find a libcap on FreeBSD itself. It's in the Linux emulators which we shouldn't touch. Curious how the build goes. Will report back. |
|
yup: and this is using "native": Cheers, |
|
Looks like now FreeBSD does not have the necessary APIs to support this. There is no libcap in both base and ports. This is really a setback as it would greatly reduce attack vector although StrongSwan has a rather nice historical record in terms of patching vulnerabilities. |
|
Hi, just re-open it to let you know that I've tested setting |
|
I don't see a path forward here mainly for time constraints. If somebody wants to work on this I'll be glad to review, otherwise I'll keep it closed... |
IPSec (charon) daemon from strongswan does not reduce privilege from root after startup. It would greatly improve security if this is done and there should not be any harm of doing so.
Currently if you do
ps aux | grep charonyou will see that it is running as root.
The text was updated successfully, but these errors were encountered: