chiark / gitweb /
bus-proxy: beef up policy enforcement
authorLennart Poettering <lennart@poettering.net>
Wed, 26 Nov 2014 22:14:13 +0000 (23:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Nov 2014 21:02:12 +0000 (22:02 +0100)
commit78f9b196ab9671ceb625cd2abf90629ed201c24f
treea4555557014eb7d387e94fc9058d7c91f53f0bac
parent9398f650939aec0d44ea7d20240502cafd667c29
bus-proxy: beef up policy enforcement

- actually return permission errors to clients

- use the right ucreds field

- fix error paths when we cannot keep track of locally acquired names
  due to OOM

- avoid unnecessary global variables

- log when the policy denies access

- enforce correct policy rule order

- always request all the metadata its we need to make decisions
src/bus-proxyd/bus-policy.c
src/bus-proxyd/bus-policy.h
src/bus-proxyd/bus-proxyd.c
src/bus-proxyd/test-bus-policy.c