Commit graph

126 commits

Author SHA1 Message Date
vdutta
5812d812b1 owsd: 1.1.4 2022-02-04 19:07:49 +05:30
Erik Karlsson
8816c26e2a Use correct ranges with tr
The tr command does not take regular expressions and should not be
used with ranges such as [a-z] which furthermore can cause issues if
unquoted as they are interpreted by the shell.
2021-12-15 13:08:18 +00:00
Erik Karlsson
fd050bc759 Revert "owsd: hotplug: map aliases against interface on ifup"
This reverts commit 051826305e.

Reason for revert: This appears unnecessary as individual ifup events
are already being generated for main and alias interfaces. The logic
is also broken. It causes owsd to be reloaded every time there is ifup
event on alias interface, regardless of owsd configuration.
2021-09-19 14:38:18 +00:00
Sukru Senli
94f5d5b98b owsd: adapt to ubus socket default path 2021-05-13 22:17:49 +02:00
Sukru Senli
4e1a1c45a0 owsd: disable by default 2021-05-12 13:11:50 +02:00
Jakob Olsson
dec1cb5146 owsd: 1.1.3 2021-05-12 10:03:18 +02:00
Jakob Olsson
1d41fce2a3 owsd: use NULL socket by default 2021-05-12 09:26:58 +02:00
Raphael Derensy
051826305e owsd: hotplug: map aliases against interface on ifup 2021-03-17 09:48:22 +01:00
Andreas Gnau
d2b9140468 treewide: Add PKG_MIRROR_HASH:=skip to pkgs downloaded from git
OpenWrt 21.02 will redownload from git over and over if PKG_MIRROR_HASH
is not set. Set it to skip to prevent it from happening.
2021-03-15 10:57:13 +01:00
Jakob Olsson
e3dd402d4e owsd: let written be longer than len 2020-08-28 13:37:39 +02:00
Jakob Olsson
6c1b78b69d owsd: make async cleanout timeout more leniant 2020-06-23 16:48:05 +02:00
Jakob Olsson
428a1791ed owsd: fix segfault on remove_client
use safe func when iterating and removing from list
2020-06-15 16:12:13 +02:00
Jakob Olsson
0c5f03d50c owsd: make client connection timers configurable 2020-06-01 08:55:39 +02:00
Sukru Senli
7ec727e994 owsd: install uproxyd only if selected 2020-05-17 17:21:51 +02:00
Jakob Olsson
4f5a1ad365 owsd: init.d: let whitelist_interface_as_origin default to 1 2020-04-23 13:32:05 +02:00
Sukru Senli
ea87bfe337 owsd: disable ubus-x by default 2020-04-23 11:11:15 +02:00
Jakob Olsson
de03c6149c owsd: remove some sections from default cfg 2020-04-23 08:42:18 +02:00
Jakob Olsson
92480328ac owsd: update default configuration 2020-04-22 13:55:48 +02:00
Jakob Olsson
02404d5f22 owsd: only include json-validator.h if flag is given 2020-04-22 12:47:32 +02:00
Jakob Olsson
bd65c9a666 owsd: update for lws-3.1.0, make one vhost per origin 2020-04-22 12:36:40 +02:00
Ronny Nilsson
0bf21c30c6 owsd: Workaround a bug which cases origin check to fail on LAN.
When the LAN interface has an IPv6 Unique local address owsd gets confused.
IPv4 requests arrive into the virtual IPv6 interface of owsd which makes
the origin check to fail. Workaround the problem by disabling origin check
for LAN. This shouldn't be a problem (?) due to we already has the same
check disabled on WAN by default.
2020-01-23 12:44:59 +01:00
Jakob Olsson
b30aca1b27 owsd: include fix for memory leak on too many requests 2019-12-10 16:19:10 +01:00
Jakob Olsson
09e20e451a owsd: allow ubus.object.* events if access specified to affected obj in acl #267 2019-10-14 12:38:16 +02:00
Strhuan Blomquist
d35680fb5d owsd:Added opkg LICENSE tag 2019-09-05 16:14:51 +02:00
Sukru Senli
fd16e6dc81 owsd: save owsd_acl file under /tmp/owsd folder 2019-08-20 08:58:41 +02:00
Jakob Olsson
314d432420 owsd: update pkg and init.d to pass arguments from a json config file 2019-08-12 10:36:03 +02:00
Sukru Senli
261e890771 owsd: ubusproxy with demo only certificates 2019-06-25 08:51:03 +02:00
Jakob Olsson
947da034bb owsd: start owsd without ubusproxy args if ubusx validation fails 2019-06-17 09:47:12 +02:00
Jakob Olsson
5b2a92cf14 owsd: update polling interval in uproxyd 2019-06-04 13:46:19 +02:00
Jakob Olsson
165faa23dc owsd: update pkg to include uproxyd polling change 2019-06-04 13:24:00 +02:00
Sukru Senli
6aec80f56c owsd: remove unused uci default script 2019-06-04 12:55:54 +02:00
Jakob Olsson
b175340397 owsd: update pkg with uproxyd client event fix 2019-06-04 12:39:16 +02:00
Jakob Olsson
608dfd532a owsd: add uproxyd 2019-06-04 11:02:48 +02:00
Sukru Senli
5f3e4e40ae Inteno->iopsys adaptations 2019-04-14 10:59:37 +02:00
Sukru Senli
1b89309647 update package maintaniners for owsd and imonitor 2019-04-14 10:55:13 +02:00
Jakob Olsson
8f67b8f58e owsd: wifilife: prevent procd crash loop error 2019-02-12 14:17:29 +01:00
Jakob Olsson
2a4c5a1c56 owsd: update pkg hash 2019-01-24 15:09:02 +01:00
Jakob Olsson
8a83899eba owsd: update pkg hash #16527 2019-01-16 16:20:52 +01:00
Jakob Olsson
56fab86483 owsd: update pkg hash 2018-12-17 10:53:39 +01:00
Jakob Olsson
7befbac499 owsd: update pkg hash to include losing objects fix 2018-12-11 11:30:45 +01:00
Jakob Olsson
b355f5e8f8 owsd: update package hash to include acl changes 2018-11-26 11:24:03 +01:00
Sukru Senli
8363a9d567 owsd: remove ubusx_acl list by default 2018-10-02 15:45:51 +02:00
Sukru Senli
d4aa675a7a iopsys: point to new iopsys git repositories 2018-09-23 11:19:23 +02:00
Sukru Senli
1f7018969b owsd: revert ubusx_acl support 2018-08-24 12:11:21 +02:00
Ionuț-Alex Oprea
9d501b2185 Update feed [ feed_inteno_packages ] package [ owsd ]
-------------------------------------------------------------------------------
* 372743e Revert "use mac as ubusx event prefix refs #15472"
-------------------------------------------------------------------------------
commit 372743e4c905c9d51988742442b375f0b2bab8db
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-25 16:51:46 +0200

    Revert "use mac as ubusx event prefix refs #15472"

    This reverts commit ddaaafa5cd5a6b4fbeb554afd03e982559ceab88.

Base directory -> /
 src/local_stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2018-07-25 17:02:22 +02:00
Ionuț-Alex Oprea
08c0aae9a5 Update feed [ feed_inteno_packages ] package [ owsd ]
-------------------------------------------------------------------------------
* ddaaafa use mac as ubusx event prefix refs #15472
* 1c99f70 use mac as ubusx object prefix refs #15472
* 5f2da35 add cmdline parameter to control the ubusx prefix type refs #15472
* db5477b wsubus: match origin case insensitively refs #15501
* 19a429e prepare for: ubusx object prefix change from ip to mac refs #15472
-------------------------------------------------------------------------------
commit ddaaafa5cd5a6b4fbeb554afd03e982559ceab88
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-24 16:41:15 +0200

    use mac as ubusx event prefix refs #15472

Base directory -> /
 src/local_stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 1c99f70271531871468ebe538b516152092c9d4f
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-24 16:29:14 +0200

    use mac as ubusx object prefix refs #15472

Base directory -> /
 src/local_stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 5f2da3522ceb95c44f200d6ffa24d62eb31d0fed
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-24 16:19:12 +0200

    add cmdline parameter to control the ubusx prefix type refs #15472

Base directory -> /
 src/local_stub.c    | 11 +++++++++++
 src/main.c          |  9 +++++++++
 src/wsubus_client.h |  1 +
 3 files changed, 21 insertions(+)
-------------------------------------------------------------------------------
commit db5477ba0ef4596b4b68c73a16c042f6d8400474
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2018-07-23 14:25:47 +0200

    wsubus: match origin case insensitively refs #15501

Base directory -> /
 src/wsubus.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 19a429e78c025c03ec11fb20229c389e453a8825
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-20 15:32:37 +0200

    prepare for: ubusx object prefix change from ip to mac refs #15472

    	The ubus objects that belong to other routers and are published
    through ubusx have a prefix to identify the remote router.
    This is normally the ip, for example:
    	192.168.1.201/router.system
    This commit adds a function that can change this prefix to the
    corresponding mac(as seen in the dhcp leases), for example:
    	06:22:07:67:75:9a/router.system

    	Note that this commit does not enable this functionality,
    only adds it.

Base directory -> /
 src/local_stub.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
-------------------------------------------------------------------------------
2018-07-24 16:44:04 +02:00
Ionuț-Alex Oprea
45dd7acb3d owsd: use mac as ubusx object prefix refs #15472 2018-07-24 16:43:19 +02:00
Sukru Senli
8febdc5117 owsd: fix the copyright header in the Makefile 2018-06-13 13:30:33 +02:00
Ionuț-Alex Oprea
86dd2c0994 owsd config: add ubusx_acl example 2018-06-07 14:23:00 +02:00
Ionuț-Alex Oprea
1d78413c74 Update feed [ feed_inteno_packages ] package [ owsd ]
-------------------------------------------------------------------------------
*   f0147e7 Merge branch 'ubusx_acl' into devel
|\
| * d13aeee fix checkpatch.pl warnings and errors
| * 6eac202 replace avl_strcmp with ubus_object_path_compare: proper comparison for object that end with *
| * d092c9e replace printf with lwsl_notice
| * ce1b001 fix compile warnings: type cast
| * a58a5de implement ubusx_acl__add_object to the avl tree
| * b45d846 ubusx_acl: if option is not used, allow all objects bu default
| * 6a4240c add include ubusx_acl.h in main.c
| * 18450f3 add ubusx_acl__add_objects method
| * 60158a8 add the -X option: ubusx acl
| * 2d98397 add the avl tree to keep the object names
| * c3afdb3 add ubusx_acl to makefile
| * 292b619 initial add ubusx_acl files
| * 7f7752e call the ubusx_acl methods
|/
* aed9de1 Create new vhost on -i if iface already defined
-------------------------------------------------------------------------------
commit f0147e754b1018ef51b96ec21f40b921a30e6a6e
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 16:15:32 +0200

    Merge branch 'ubusx_acl' into devel

Base directory -> /
 CMakeLists.txt      |   1 +
 src/main.c          |  11 ++++
 src/rpc_list_ubus.h |   6 ++
 src/ubusx_acl.c     | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/ubusx_acl.h     |  36 ++++++++++++
 5 files changed, 213 insertions(+)
-------------------------------------------------------------------------------
commit d13aeee31979200f801e203dda58c0c7624ede9e
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 16:13:17 +0200

    fix checkpatch.pl warnings and errors

Base directory -> /
 src/main.c          |  2 +-
 src/rpc_list_ubus.h |  5 +++--
 src/ubusx_acl.c     | 25 +++++++++++++------------
 src/ubusx_acl.h     |  4 ++--
 4 files changed, 19 insertions(+), 17 deletions(-)
-------------------------------------------------------------------------------
commit 6eac202a77a9f3d2288e37ad82624075507c03cf
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 15:59:40 +0200

    replace avl_strcmp with ubus_object_path_compare: proper comparison for
    object that end with *

Base directory -> /
 src/ubusx_acl.c | 33 +++++++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit d092c9e1832c5c225adc708f027811319a06486a
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 15:27:58 +0200

    replace printf with lwsl_notice

Base directory -> /
 src/ubusx_acl.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit ce1b00135b25d8020813830df52c70aff674944a
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 13:54:53 +0200

    fix compile warnings: type cast

Base directory -> /
 src/ubusx_acl.c | 6 +++---
 src/ubusx_acl.h | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit a58a5de270f1cf360f894fad875cba359ebe3fa3
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 13:49:43 +0200

    implement ubusx_acl__add_object to the avl tree

Base directory -> /
 src/ubusx_acl.c | 28 ++++++++++++++++++++++++----
 src/ubusx_acl.h |  2 +-
 2 files changed, 25 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit b45d84696d8a77ede69c0176fa12c02b2fbf0890
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 12:00:44 +0200

    ubusx_acl: if option is not used, allow all objects bu default

Base directory -> /
 src/ubusx_acl.c | 4 ++++
 1 file changed, 4 insertions(+)
-------------------------------------------------------------------------------
commit 6a4240c5c9b9eb74ac0c2b864db1ffbd01b7d0b1
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 11:35:41 +0200

    add include ubusx_acl.h in main.c

Base directory -> /
 src/main.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit 18450f3548a8b9f71c597ab73b544bfa144a552c
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 11:31:13 +0200

    add ubusx_acl__add_objects method

Base directory -> /
 src/main.c      |  1 +
 src/ubusx_acl.c | 18 ++++++++++++++++++
 src/ubusx_acl.h |  1 +
 3 files changed, 20 insertions(+)
-------------------------------------------------------------------------------
commit 60158a8c5a14a0dc18eb94d55584cbf174f57b5f
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 10:26:23 +0200

    add the -X option: ubusx acl

Base directory -> /
 src/main.c | 9 +++++++++
 1 file changed, 9 insertions(+)
-------------------------------------------------------------------------------
commit 2d98397f786954935946ceec29550e29a6e6e445
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-04 15:15:36 +0200

    add the avl tree to keep the object names

Base directory -> /
 src/ubusx_acl.c | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit c3afdb3a6f5df1c7b8f23eafa7e86455a71851c5
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-30 16:57:42 +0200

    add ubusx_acl to makefile

Base directory -> /
 CMakeLists.txt  | 1 +
 src/ubusx_acl.c | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 292b61900a1e6b73d1fb6b205f627b69fb5c1b93
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-30 16:32:30 +0200

    initial add ubusx_acl files

Base directory -> /
 src/ubusx_acl.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/ubusx_acl.h | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)
-------------------------------------------------------------------------------
commit 7f7752eba0f65ac53cbdacf44c416a989e768f7d
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-30 16:30:54 +0200

    call the ubusx_acl methods

Base directory -> /
 src/rpc_list_ubus.h | 5 +++++
 1 file changed, 5 insertions(+)
-------------------------------------------------------------------------------
commit aed9de16f49d94bd5abf10a3038fd9a1712cec19
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-02-27 11:27:44 +0100

    Create new vhost on -i if iface already defined

    New lws virtual host will now be created if option -i is specified multiple
    times on the same port(vhost). New vhost will have the same port and label
    as previous vhost.

    Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>

Base directory -> /
 src/main.c | 75 +++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 52 insertions(+), 23 deletions(-)
-------------------------------------------------------------------------------
2018-06-05 16:26:26 +02:00