bus1 / dbus-broker

Linux D-Bus Message Broker
https://github.com/bus1/dbus-broker/wiki
Apache License 2.0
675 stars 78 forks source link

broker: force SO_PEERSEC if new option linux-4-17 is set #222

Closed dvdhrm closed 4 years ago

dvdhrm commented 4 years ago

This introduces a new meson-option called 'linux-4-17=false', which when set to true allows us to depend on linux v4.17 features. In particular, this allows us to enforce SO_PEERSEC to read our own credentials, rather than reading /proc/<ppid>.

The idea here is to have this as a smooth transition and allow people to use the new features in controlled environments. At some point, we will set the option to default to true and reject builds with this set to false. This way, we have a backwards compatible option and will not break build-setups that do not care for this.