From: Daniel Wagner <daniel.wag...@bmw-carit.de>

The session core needs to the security context in order to setup
iptables to match on it.
---
 include/session.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/session.h b/include/session.h
index 62c303c..24a03ac 100644
--- a/include/session.h
+++ b/include/session.h
@@ -49,9 +49,17 @@ enum connman_session_type {
        CONNMAN_SESSION_TYPE_INTERNET = 3,
 };
 
+enum connman_session_id_type {
+       CONNMAN_SESSION_ID_TYPE_UID     = 0,
+       CONNMAN_SESSION_ID_TYPE_GID     = 1,
+       CONNMAN_SESSION_ID_TYPE_LSM     = 2,
+};
+
 struct connman_session;
 
 struct connman_session_config {
+       enum connman_session_id_type id_type;
+       char *id;
        connman_bool_t priority;
        enum connman_session_roaming_policy roaming_policy;
        enum connman_session_type type;
-- 
1.8.1.3.566.gaa39828

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to