Skip to content
Commit be2b361b authored by Michael Scott's avatar Michael Scott Committed by Anas Nashif
Browse files

net: lwm2m: check for read permission on observe

When processing an observe request we fail to check whether a
resource has the read permission set.  Let's check and if it
doesn't return -EPERM.

NOTE: Also do diligence and return -ENOENT when an object field
cannot be found while looking for the permission.

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/8286



Signed-off-by: default avatarMichael Scott <mike@foundries.io>
parent 3b80998f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment