summaryrefslogtreecommitdiff
path: root/src/connman.h
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-10-11 15:08:18 +0800
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-11-07 23:32:57 +0800
commit44a0a44c579df0192ec33c291b2efdfabfe5c7eb (patch)
treec4270f3bf4c005225a270ef8184c3cc7bb4d1bc2 /src/connman.h
parent113ccd0ca92ab8fe8a6e6c2db190cbcbeebe912d (diff)
downloadconnman-44a0a44c579df0192ec33c291b2efdfabfe5c7eb.tar.gz
connman-44a0a44c579df0192ec33c291b2efdfabfe5c7eb.tar.bz2
connman-44a0a44c579df0192ec33c291b2efdfabfe5c7eb.zip
multi-user: Add multi-user support in service
Use cases: Given 2 users: UserA and UserB 1. If UserA is connected to a wifi service, then UserB is not allowed to connect wifi service, and not allowed to disconnect the service UserA connected. 2. If UserA is connected to a wifi service, then UserB is allowed to use the same connection, but he is not allowed to modify the connection. 3. If UserA is connected to a wifi service with security wep/wpa/psk, then UserA disconnects it, when UserB tries to connect the same wifi service, it must input passphrase to connect it. Change-Id: Id686ebd7d1f3490875a9d8f877219bd004907227
Diffstat (limited to 'src/connman.h')
-rw-r--r--src/connman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 4d78eab0..386e8c83 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -791,6 +791,9 @@ void __connman_service_notify(struct connman_service *service,
unsigned int rx_error, unsigned int tx_error,
unsigned int rx_dropped, unsigned int tx_dropped);
+bool __connman_service_is_user_allowed(enum connman_service_type type,
+ uid_t uid);
+
int __connman_service_counter_register(const char *counter);
void __connman_service_counter_unregister(const char *counter);