An ubus RPC daemon for Liminix
Find a file
Jo-Philipp Wich 69eeb1b480 file: refactor message parsing and permission checking
Refactor rpc_check_path() and wrap it with a macro to allow passing
different policies and permission names.

This allows using the function for non-read operations and simplifies
the message parsing code there.

Also change the stat and list methods to require "list" instead of
"read" permissions which is useful to allow browing the filesystem
without allowing read access to all files.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-08 18:29:18 +02:00
include/rpcd plugin: store pointer to exec timeout value in the ops structure 2018-11-28 12:10:40 +01:00
CMakeLists.txt Fix possible linker errors by using CMake find_library macro 2019-06-05 13:10:50 +02:00
exec.c treewide: rename exec_timeout to rpc_exec_timeout 2018-11-28 12:07:58 +01:00
file.c file: refactor message parsing and permission checking 2019-09-08 18:29:18 +02:00
iwinfo.c iwinfo: expose all rate info fields in assoclist reply 2019-09-04 15:51:39 +02:00
main.c treewide: rename exec_timeout to rpc_exec_timeout 2018-11-28 12:07:58 +01:00
plugin.c plugin: store pointer to exec timeout value in the ops structure 2018-11-28 12:10:40 +01:00
session.c session: handle NULL return values of crypt() 2019-05-22 14:25:52 +02:00
sys.c sys: fix symbol redeclaration 2019-09-04 15:51:39 +02:00
uci.c uci: tighten uci reorder operation error handling 2018-08-09 00:07:27 +02:00
unauthenticated.json session: setup a persistent NULL section and implement login procedure 2013-09-10 19:56:36 +02:00