From 8c9322c7237a245e445c1ffac696660b78a0e0ff Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 9 Dec 2015 19:48:08 +0100 Subject: [PATCH] ubusd: fix the return code for acl check mismatch Signed-off-by: Felix Fietkau --- ubusd_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubusd_proto.c b/ubusd_proto.c index 09faeb2..baf3eb6 100644 --- 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_FOUND; + return UBUS_STATUS_PERMISSION_DENIED; if (!obj->client) return obj->recv_msg(cl, ub, method, attr[UBUS_ATTR_DATA]); -- 2.25.1