From 0dc8b87f5d8a03183c1b947640f6315545e4207b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 13 Jul 2017 18:47:18 +0200 Subject: Create an auth verb to raise privilege of session Simply raise to a LOA of 1 the current session if asked Need to add some checks to not allow anyone raise its session must hold a specific permission urn:AGL:permission::platform:can:write to be able to authenticate. Change-Id: Id4e01ca20ba8437e97a64db682fdd3ebf45ce7b4 Signed-off-by: Romain Forlot --- low-can-binding/binding/low-can-hat.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'low-can-binding/binding/low-can-hat.hpp') diff --git a/low-can-binding/binding/low-can-hat.hpp b/low-can-binding/binding/low-can-hat.hpp index 6ecad23a..b0f29b5e 100644 --- a/low-can-binding/binding/low-can-hat.hpp +++ b/low-can-binding/binding/low-can-hat.hpp @@ -36,6 +36,7 @@ void on_no_clients(std::shared_ptr can_subscription, std void on_no_clients(std::shared_ptr can_subscription, uint32_t pid, std::map >& s); int read_message(sd_event_source *s, int fd, uint32_t revents, void *userdata); +void auth(struct afb_req request); void subscribe(struct afb_req request); void unsubscribe(struct afb_req request); void swrite(struct afb_req request); -- cgit 1.2.3-korg