Commit graph

  • 26c98ec94d sys: Check return values of chdir and write Florian Fainelli 2016-12-03 09:34:45 -08:00
  • f4089654a3 cmake: Find libubus.h Florian Fainelli 2016-07-11 14:03:49 -07:00
  • 23417e94d2 iwinfo: expose available HT rates Jo-Philipp Wich 2016-06-30 00:36:01 +02:00
  • f8174eacef iwinfo: zero out ccode buffer since library doesn't Denis Osvald 2016-06-02 17:06:30 +02:00
  • 73aea9b8b6 file: add myself in Copyright header Luka Perkov 2016-04-11 18:56:53 +02:00
  • 2350c6fa91 file: handle return output of b64_decode Luka Perkov 2016-04-12 10:56:21 +02:00
  • c8c8f7d014 file: add append write support Luka Perkov 2016-04-11 18:56:51 +02:00
  • e64cbdd9b4 uci: allow setting zero-length values (to delete an option) Jo-Philipp Wich 2015-11-23 19:11:44 +01:00
  • fb6e4604fb paths: substitute literal with macro Javier Domingo Cansino 2015-11-11 13:10:11 +00:00
  • f00890cd6e add a reload_config method to the uci object John Crispin 2015-08-21 07:45:44 +02:00
  • 032346f479 add a system object that allows us to set passwords and trigger sysupgrade John Crispin 2015-08-20 22:49:43 +02:00
  • 410802e106 file: be consistent with string termination character Luka Perkov 2015-05-11 23:28:19 +02:00
  • 4db5df8a96 file: add support for setting mode when writing files Luka Perkov 2015-05-11 23:28:18 +02:00
  • fc895bb1e2 file: add support for base64 Luka Perkov 2015-05-12 00:22:01 +02:00
  • 3d655417ab uci: unload package on revert Jo-Philipp Wich 2015-05-17 14:13:02 +02:00
  • 9a6bfa110a file: add md5sum support Luka Perkov 2015-04-12 03:56:50 +02:00
  • 311c85e7d9 properly handle return codes John Crispin 2015-03-28 17:05:56 +01:00
  • 361b823e8d file: free memory after opendir() Luka Perkov 2015-03-10 18:00:03 +01:00
  • b65f6a844f file: use blob_buf_free() Luka Perkov 2015-03-10 18:00:02 +01:00
  • e2d37b7e40 file: show "data" ubus parameter only when used Luka Perkov 2015-03-10 18:00:01 +01:00
  • b71df5b75f fix for json 0.12 Signed-off-by: John Crispin <blogic@openwrt.org> John Crispin 2015-03-08 15:04:13 +01:00
  • 805e8ce891 cmake: fix libcrypt test Jo-Philipp Wich 2015-02-26 16:34:31 +01:00
  • a75c310e7c iwinfo: add phyname procedure Jo-Philipp Wich 2015-02-11 14:04:08 +01:00
  • 7b7f254682 session: fix method signatures for create, list and destroy Jo-Philipp Wich 2015-02-09 12:51:44 +01:00
  • 1ceab6196f iwinfo: add support for requesting assoc info for a specific mac address Felix Fietkau 2014-11-29 19:43:00 +01:00
  • d99e8adc4f iwinfo: add 802.11ac hw mode Felix Fietkau 2014-10-20 15:49:24 +02:00
  • ed7d16a3e0 iwinfo: use UBUS_METHOD_NOARG Felix Fietkau 2014-10-04 19:55:58 +02:00
  • c1ed6d7856 plugin.h: explicitly include json.h Felix Fietkau 2014-10-04 19:54:58 +02:00
  • 7fd4564b8a plugin: fix parsing libexec plugin output Jo-Philipp Wich 2014-07-03 23:39:21 +02:00
  • 3c55504336 session: add missing include Felix Fietkau 2014-06-29 23:22:50 +02:00
  • 7c789622a6 uci: rework variable usage Luka Perkov 2014-05-29 12:57:35 +02:00
  • 4cc6a9deb8 fix segmentation fault when plugins are loaded Luka Perkov 2014-01-29 11:21:59 +00:00
  • 835b8b768d file: when writing a file make sure it's contents are stored Luka Perkov 2014-01-29 11:21:58 +00:00
  • 11f5072bb1 file: create a file on write if it does not exist Luka Perkov 2014-01-29 11:21:57 +00:00
  • ec21f653b9 fix whitespaces Luka Perkov 2014-01-29 11:21:56 +00:00
  • 967d815022 session: make object and function arguments of session.access optional, dump effective acls in this case Jo-Philipp Wich 2014-01-19 19:45:25 +00:00
  • 49f6e218a4 uci: fix same buffer reuse introduced by previous commit Jo-Philipp Wich 2014-01-12 17:43:48 +00:00
  • b0254d1203 debug Jo-Philipp Wich 2014-01-12 17:33:46 +00:00
  • 7cac6af5ed uci: grant access to confirm and rollback methods only to initiating session Jo-Philipp Wich 2014-01-12 17:23:27 +00:00
  • 0239c345ca uci: introduce confirm method to cancel pending rollbacks without side effects Jo-Philipp Wich 2014-01-12 17:02:43 +00:00
  • 0c4e97b4e7 Extend copyright Jo-Philipp Wich 2014-01-12 12:48:58 +00:00
  • 64633f3136 uci: rename uci.apply "commit" attribute to "roolback" and invert its logic Jo-Philipp Wich 2014-01-12 12:45:11 +00:00
  • bbaaa41f8c config.change triggers should only run if the config is valid John Crispin 2013-12-18 13:59:16 +01:00
  • 326f5bcaf6 fix inverted apply_running check John Crispin 2013-12-18 13:56:54 +01:00
  • 065d8f47fc uci: make config argument of changes call optional to allow listing all changes in all files Jo-Philipp Wich 2013-11-23 20:31:39 +00:00
  • 2f5a613718 uci: add state call to retrieve uci state variables Jo-Philipp Wich 2013-11-23 19:30:29 +00:00
  • a7ef5ca736 session: fix file descriptor leak in rpc_blob_from_file() Jo-Philipp Wich 2013-10-26 14:16:29 +00:00
  • a511e620c8 rpcd: CMake: fix out of tree builds Alexander Couzens 2013-10-10 06:30:31 +02:00
  • 095b1058c8 uci: clear ptr.value in rpc_uci_merge_set(), this fixes missing delete deltas if multiple options are merged Jo-Philipp Wich 2013-09-29 13:11:37 +00:00
  • a23010d407 session: change "sid" attribute to "ubus_rpc_session", this ensures that exposed session calls are confined to the calling session context Jo-Philipp Wich 2013-09-13 14:52:35 +02:00
  • 6b189b2201 plugin: use blobmsg_type() instead of blob_id() Jo-Philipp Wich 2013-09-12 13:36:49 +02:00
  • 22c7c2675d session.c: use blobmsg_type() instead of blob_id() Jo-Philipp Wich 2013-09-12 13:31:21 +02:00
  • 296c9d9ceb session: support negative group expressions Jo-Philipp Wich 2013-09-12 13:10:30 +02:00
  • b76addec87 session: restore ACL dumping for session get and session list calls Jo-Philipp Wich 2013-09-12 12:13:05 +02:00
  • 4c9f178ad6 session: fix enum mismatch in rpc_handle_get() and rpc_handle_set() Jo-Philipp Wich 2013-09-12 11:51:58 +02:00
  • 6128bf647c session: remove unused ctx argument from rpc_session_grant() and rpc_session_destroy() Jo-Philipp Wich 2013-09-12 11:50:33 +02:00
  • d0d1a92432 session: do not dump and restore session ACLs but recalculate them when restoring the session Jo-Philipp Wich 2013-09-12 11:45:59 +02:00
  • 00a3ec2e52 session: disallow destroying the null session Jo-Philipp Wich 2013-09-12 10:35:55 +02:00
  • ae63188069 uci: properly deal with uci_load() failures Jo-Philipp Wich 2013-09-11 13:16:27 +02:00
  • 4d618b2e3b session: fix argument order of crypt() and prevent segfault if /etc/config/rpcd does not exist Jo-Philipp Wich 2013-09-10 20:12:39 +02:00
  • 4bf5d60f65 session: use correct policy for rpc_handle_login() Jo-Philipp Wich 2013-09-10 20:01:05 +02:00
  • 5a101fcc08 session: setup a persistent NULL section and implement login procedure Jo-Philipp Wich 2013-09-10 19:41:29 +02:00
  • 22fbf13086 Drop LuCI2 backend, it will move to its own repository Jo-Philipp Wich 2013-09-09 16:32:53 +02:00
  • 6f78bfbbdf add config transaction support John Crispin 2013-09-05 21:55:51 +02:00
  • 7abfa9bc05 make uci commit calls trigger config.change events John Crispin 2013-09-05 21:55:50 +02:00
  • f1882ac5bd rename rpc_uci_purge_savedir to rpc_uci_purge_dir John Crispin 2013-09-05 21:55:49 +02:00
  • 334a067a74 Fix rpcd includes in plugin.h Jo-Philipp Wich 2013-09-05 17:00:23 +02:00
  • b86774de65 Set umask to 0077 on daemon startup to prevent libuci from making world-readable directories Jo-Philipp Wich 2013-09-05 16:14:30 +02:00
  • fa53571f2b Use common /var/run/rpcd base directory to store runtime information Jo-Philipp Wich 2013-09-05 15:14:00 +02:00
  • b4649c9fda main: only purge uci savedirs if not reloading Jo-Philipp Wich 2013-09-05 14:26:14 +02:00
  • fc1b008e08 uci: expose rpc_uci_purge_savedirs() helper Jo-Philipp Wich 2013-09-05 14:25:51 +02:00
  • 524032c291 main: store session data to disk on receipt of SIGUSR1 or SIGHUP. On HUP terminate self and re-exec Jo-Philipp Wich 2013-09-04 17:09:51 +02:00
  • aa2afdb739 session: add support for saving and restoring session data to disk Jo-Philipp Wich 2013-09-04 15:18:14 +02:00
  • e0afdb10ae Move includes into subdirectory Jo-Philipp Wich 2013-09-04 12:46:11 +02:00
  • b3a5c08e08 uci: use per-session save directory and register session destroy callback to purge leftover deltas Jo-Philipp Wich 2013-09-03 12:42:54 +02:00
  • ad8e937f97 luci2: change ops->access to ops->session_access to accomodate for changed plugin api Jo-Philipp Wich 2013-09-03 12:25:14 +02:00
  • 059a6df1fd plugin: expose rpc_session_create_cb() and rpc_session_destroy_cb() in plugin ops; rename access to session_access Jo-Philipp Wich 2013-09-03 12:23:45 +02:00
  • 60b9c9d919 session: introduce api to register session create and destroy callbacks Jo-Philipp Wich 2013-09-03 12:21:09 +02:00
  • 11f37e2889 Fold plugin specific headers files into the plugins .c file Jo-Philipp Wich 2013-09-02 17:29:06 +02:00
  • 07c2f0a9b1 Rename from "luci-rpcd" to "rpcd" Jo-Philipp Wich 2013-09-02 17:09:57 +02:00
  • 84642137f0 Add CMake definitions for plugins Jo-Philipp Wich 2013-09-02 15:14:33 +02:00
  • 7434b2bf6c luci2: convert to plugin library Jo-Philipp Wich 2013-09-02 14:52:49 +02:00
  • c849d04fc8 file: convert to plugin library Jo-Philipp Wich 2013-09-02 14:52:37 +02:00
  • bc100538d3 iwinfo: convert to plugin library Jo-Philipp Wich 2013-09-02 14:52:22 +02:00
  • 3d358bb3a1 Introduce shared object plugin api Jo-Philipp Wich 2013-09-02 14:52:12 +02:00
  • 0b4d4aeeac Register dummy stderr callback when ivoking plugins calls to avoid filling the ustream with unread data. Jo-Philipp Wich 2013-09-01 22:42:17 +02:00
  • 3cac366777 Link json-c Jo-Philipp Wich 2013-09-01 22:12:19 +02:00
  • 90e8e9ca00 Rework plugin support to use incremental json parsing and rpc_exec() framework for invocation Jo-Philipp Wich 2013-09-01 22:05:38 +02:00
  • 768553b3fe luci2: change rpc_exec() callsites to accomodate for extra stdin_cb argument, change finish callbacks to emit proper return code Jo-Philipp Wich 2013-09-01 20:02:01 +02:00
  • a95079e0e7 Extend rpc_exec() to allow feeding childs stdin via callbacks, allow finish callback to override the ubus return code Jo-Philipp Wich 2013-09-01 19:58:10 +02:00
  • a86ef267a4 Add initial plugin api support Jo-Philipp Wich 2013-08-30 18:31:15 +02:00
  • a00f2d08a2 luci2: change luci2.ui.menu call to return acl levels for each menu item Jo-Philipp Wich 2013-08-16 16:29:55 +02:00
  • f74be70327 luci2: add luci2.ui namespace Jo-Philipp Wich 2013-08-13 13:44:53 +02:00
  • 97384dd72a uci: refactor revert code to avoid illegal pointer access Jo-Philipp Wich 2013-08-12 14:49:02 +02:00
  • c2a7fcf947 uci: implement config level ACLs Jo-Philipp Wich 2013-08-12 13:53:09 +02:00
  • c6985dd5a6 session: expose rpc_session_access() function for testing session ACLs in other rpcd subsystems Jo-Philipp Wich 2013-08-12 13:51:51 +02:00
  • 743901cfca session: fix acl dumping if last object of previous scope is equal to first object of next one Jo-Philipp Wich 2013-08-10 21:56:06 +02:00
  • c6e81f4b69 sessions: add scopes for acls, default to "ubus" scope Jo-Philipp Wich 2013-08-08 18:53:59 +02:00
  • c2c39eeb30 luci2: fix incorrect buffer length in luci2.opkg config_set call Jo-Philipp Wich 2013-08-05 13:19:38 +02:00
  • 2ab4dc45d1 luci2: add backup_list, backup_config_get and backup_config_set calls Jo-Philipp Wich 2013-08-05 13:16:25 +02:00