• Tomi Leppänen's avatar
    [dbus] Check sender uid for mode restrictions. Fixes JB#48441 · 6e98e56b
    Tomi Leppänen authored
    Check sender uid to deny access for modes that are restricted. Prevent
    non-owner users from hiding or unhiding modes. Add
    get_allowed_modes_for_user method that lists only those methods that
    user may choose.
    
    Set last seen user based on uid that has called
    get_allowed_modes_for_user last. This is not a perfect solution by any
    means since it can be easily confused by calling it from command line as
    root but generally no user other than the active one should call it.
    Later when there is a proper way to get the active user this can be
    improved.
    Signed-off-by: Tomi Leppänen's avatarTomi Leppänen <tomi.leppanen@jolla.com>
    6e98e56b
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...