On Fr, 31.03.23 05:32, Lal, Arun (arun.lal@xxxxxxxxx) wrote: > Hi All, > > In file systemd\src\libsystemd\sd-bus\bus-objects.c function check_access has the following check: > > /* If the member is marked UNPRIVILEGED let's grant access */ > if (c->vtable->flags & SD_BUS_VTABLE_UNPRIVILEGED) > return 0; > > Can someone tell me how to set the flag as SD_BUS_VTABLE_UNPRIVILEGED? > > This is because I want a non-root user to make dbus method call. As of now this get's blocked in check_access function. > I would like to allow this by satisfying the condition c->vtable->flags & SD_BUS_VTABLE_UNPRIVILEGED There are roughly a bazillion examples in the systemd source tree for that. For example here: https://github.com/systemd/systemd/blob/main/src/login/logind-session-dbus.c#L857 Lennart -- Lennart Poettering, Berlin