usb_moded
0.86.0+mer57
|
#include <stdbool.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
uid_t | user_get_current_user (void) |
Copyright (c) 2021 Open Mobile Platform LLC. Copyright (c) 2021 Jolla Ltd.
This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the Lesser GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file usb_moded-user.h.
uid_t user_get_current_user | ( | void | ) |
Get the user using the device
When built without Sailfish access control support, this returns root's uid (0) unconditionally.
Note: Whether this function is available or not depends on configure options -> usbmoded_get_current_user() can be used to avoid excessive ifdef blocks.
Definition at line 104 of file usb_moded-user.c.