diff options
author | John Crispin <blogic@openwrt.org> | 2015-04-25 10:50:39 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-06-18 19:01:17 +0200 |
commit | 8309c75828acbcee73b11d9ce90d76b7ef14b891 (patch) | |
tree | 90cd13ad40b42230e1af4135ca1a1d841b5d2f98 /ubusd.h | |
parent | 3bfa6ab128ee0ab9bd4bc0b2dbaa751902e7f340 (diff) | |
download | ubus-8309c75828acbcee73b11d9ce90d76b7ef14b891.tar.gz |
add acl code
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'ubusd.h')
-rw-r--r-- | ubusd.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |