projects
/
oweals
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766d498
)
ubusd: fix the return code for acl check mismatch
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 9 Dec 2015 18:48:08 +0000
(19:48 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 9 Dec 2015 18:48:08 +0000
(19:48 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ubusd_proto.c
patch
|
blob
|
history
diff --git
a/ubusd_proto.c
b/ubusd_proto.c
index 09faeb2ae3f7ed5c5a773186ae0a32fa9b077151..baf3eb63459a92209a278d42b638ad10cb52cbba 100644
(file)
--- a/
ubusd_proto.c
+++ b/
ubusd_proto.c
@@
-257,7
+257,7
@@
static int ubusd_handle_invoke(struct ubus_client *cl, struct ubus_msg_buf *ub,
method = blob_data(attr[UBUS_ATTR_METHOD]);
if (ubusd_acl_check(cl, obj->path.key, method, UBUS_ACL_ACCESS))
- return UBUS_STATUS_
NOT_FOUN
D;
+ return UBUS_STATUS_
PERMISSION_DENIE
D;
if (!obj->client)
return obj->recv_msg(cl, ub, method, attr[UBUS_ATTR_DATA]);