~emersion/basu

ad08d7960f0aa571c88fca8b2d363ab705da99d1 — Kenny Levinsen 3 years ago b0171b1
bus-creds: Skip parse caps instead of -ENOTSUP

This means that we just interpret processes as having no capabilities,
rather than causing errors that terminate bus_cred setup.
1 files changed, 1 insertions(+), 4 deletions(-)

M src/libsystemd/sd-bus/bus-creds.c
M src/libsystemd/sd-bus/bus-creds.c => src/libsystemd/sd-bus/bus-creds.c +1 -4
@@ 624,11 624,8 @@ static int parse_caps(sd_bus_creds *c, unsigned offset, const char *p) {

                c->capability[offset * max + (sz - i - 1)] = v;
        }

        return 0;
#else
        return -ENOTSUP;
#endif
        return 0;
}

int bus_creds_add_more(sd_bus_creds *c, uint64_t mask, pid_t pid, pid_t tid) {