Documentation ¶
Index ¶
Constants ¶
View Source
const Debug = false
View Source
const WireguardDeviceName = "cyclops"
This is the name of our wireguard device, which is the same on the HTTPS proxy server and on a camera server.
Variables ¶
This section is empty.
Functions ¶
func DropPrivileges ¶
Drop privileges of this process to the specified username, so that we reduce our attack surface. Returns the home directory of 'username'
func LaunchRootModeSubProcess ¶
Launch a copy of this process, but with the --kernelwg command line argument. This other process will run with root privileges, because it needs to be able to create and/or alter Wireguard interfaces.
This is one of the first things we do when starting up the cyclops server or the HTTPS proxy server.
Returns a secret that is used to authenticate ourselves to the root-mode spawned process.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.