Felix Fietkau
3c55504336
session: add missing include
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-29 23:22:50 +02:00
Jo-Philipp Wich
967d815022
session: make object and function arguments of session.access optional, dump effective acls in this case
2014-01-19 19:45:25 +00:00
Jo-Philipp Wich
0c4e97b4e7
Extend copyright
2014-01-12 12:48:58 +00:00
Jo-Philipp Wich
a7ef5ca736
session: fix file descriptor leak in rpc_blob_from_file()
2013-10-26 14:16:29 +00:00
Jo-Philipp Wich
a23010d407
session: change "sid" attribute to "ubus_rpc_session", this ensures that exposed session calls are confined to the calling session context
2013-09-13 14:52:35 +02:00
Jo-Philipp Wich
22c7c2675d
session.c: use blobmsg_type() instead of blob_id()
2013-09-12 13:31:21 +02:00
Jo-Philipp Wich
296c9d9ceb
session: support negative group expressions
...
This change allows excluding specific groups after a wildcard expression.
The following example would grant read access to any acl group except the
group named "example".
list read '*'
list read '!example'
2013-09-12 13:10:30 +02:00
Jo-Philipp Wich
b76addec87
session: restore ACL dumping for session get and session list calls
2013-09-12 12:13:05 +02:00
Jo-Philipp Wich
4c9f178ad6
session: fix enum mismatch in rpc_handle_get() and rpc_handle_set()
2013-09-12 12:04:14 +02:00
Jo-Philipp Wich
6128bf647c
session: remove unused ctx argument from rpc_session_grant() and rpc_session_destroy()
2013-09-12 12:04:14 +02:00
Jo-Philipp Wich
d0d1a92432
session: do not dump and restore session ACLs but recalculate them when restoring the session
2013-09-12 12:04:06 +02:00
Jo-Philipp Wich
00a3ec2e52
session: disallow destroying the null session
2013-09-12 10:35:55 +02:00
Jo-Philipp Wich
4d618b2e3b
session: fix argument order of crypt() and prevent segfault if /etc/config/rpcd does not exist
2013-09-10 20:12:39 +02:00
Jo-Philipp Wich
4bf5d60f65
session: use correct policy for rpc_handle_login()
2013-09-10 20:01:05 +02:00
Jo-Philipp Wich
5a101fcc08
session: setup a persistent NULL section and implement login procedure
2013-09-10 19:56:36 +02:00
Jo-Philipp Wich
aa2afdb739
session: add support for saving and restoring session data to disk
2013-09-04 17:08:56 +02:00
Jo-Philipp Wich
e0afdb10ae
Move includes into subdirectory
2013-09-04 12:46:11 +02:00
Jo-Philipp Wich
60b9c9d919
session: introduce api to register session create and destroy callbacks
2013-09-03 12:47:04 +02:00
Jo-Philipp Wich
07c2f0a9b1
Rename from "luci-rpcd" to "rpcd"
2013-09-02 17:23:30 +02:00
Jo-Philipp Wich
c6985dd5a6
session: expose rpc_session_access() function for testing session ACLs in other rpcd subsystems
2013-08-12 13:51:51 +02:00
Jo-Philipp Wich
743901cfca
session: fix acl dumping if last object of previous scope is equal to first object of next one
2013-08-10 21:56:06 +02:00
Jo-Philipp Wich
c6e81f4b69
sessions: add scopes for acls, default to "ubus" scope
2013-08-08 18:53:59 +02:00
Jo-Philipp Wich
09f387b2fa
Fix session.get procedure with undefined keys attribute
2013-05-30 14:58:30 +02:00
Jo-Philipp Wich
0607cfda5b
initial commit
2013-01-26 15:29:09 +01:00