[PATCH] ubusd: handle invoke on event object without data

2021-07-02 Thread erik . r . karlsson
From: Erik Karlsson When a built-in object is invoked with UBUS_ATTR_DATA absent, recv_msg will be called with NULL as the msg argument and ubusd_forward_event and ubusd_alloc_event_pattern need to handle this. Otherwise, a truncated invoke of "send" or "register" on UBUS_SYSTEM_OBJECT_EVENT that

[PATCH] file: strengthen exec access control

2023-05-29 Thread erik . r . karlsson
From: Erik Karlsson Do not allow setting environment variables if there is a session as there is no access control for environment variables and allowing arbitrary data into the environment is unsafe. Do not leak arguments through unchecked if the size of the buffer for access checking the whole

[PATCH netifd] device: restore cleared flags on device down

2023-07-12 Thread erik . r . karlsson
From: Erik Karlsson In case flags have been cleared because settings failed to apply, restore them when the device is brought down so that they will be re-attempted the next time the device is brought up. Signed-off-by: Erik Karlsson --- device.c | 9 + 1 file changed, 9 insertions(+)