summaryrefslogtreecommitdiff
path: root/ubusd.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-04-25 10:50:39 +0200
committerJohn Crispin <blogic@openwrt.org>2015-06-18 19:01:17 +0200
commit8309c75828acbcee73b11d9ce90d76b7ef14b891 (patch)
tree90cd13ad40b42230e1af4135ca1a1d841b5d2f98 /ubusd.h
parent3bfa6ab128ee0ab9bd4bc0b2dbaa751902e7f340 (diff)
downloadubus-8309c75828acbcee73b11d9ce90d76b7ef14b891.tar.gz
add acl code
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'ubusd.h')
-rw-r--r--ubusd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ubusd.h b/ubusd.h
index bd2590e..32fe852 100644
--- a/ubusd.h
+++ b/ubusd.h
@@ -21,6 +21,7 @@
#include "ubusd_id.h"
#include "ubusd_obj.h"
#include "ubusmsg.h"
+#include "ubusd_acl.h"
#define UBUSD_CLIENT_BACKLOG 32
#define UBUS_OBJ_HASH_BITS 4
@@ -39,6 +40,11 @@ struct ubus_client {
struct ubus_id id;
struct uloop_fd sock;
+ uid_t uid;
+ gid_t gid;
+ char *user;
+ char *group;
+
struct list_head objects;
struct ubus_msg_buf *tx_queue[UBUSD_CLIENT_BACKLOG];
@@ -76,5 +82,6 @@ void ubusd_send_obj_event(struct ubus_object *obj, bool add);
int ubusd_send_event(struct ubus_client *cl, const char *id,
event_fill_cb fill_cb, void *cb_priv);
+void ubusd_acl_init(void);
#endif