Hi Zheng Wu,
On 09/23/2014 10:47 AM, Zheng, Wu wrote:
Hi Patrick,
You don't get a list of privileges from Cynara. You ask whether a uid
+app combination has a certain privilege and get a yes/no answer back.
What would be the privilege here? It would be your job to define that privilege
and ensure that Cynara knows who is allowed to have it.
Please check the following the steps and it matches the requirement of
multi-paired?
1. each user can run a NTB daemon and NTB daemon will control the user's BT
agent and paired.
2. When userA (in DeviceL) want to pair DeviceR, userA will check if DeviceL
has been paired in DeviceL.
I would say userA will check if deviceL is already paired with deviceR
by an other user.
3. If not is paired, userA will paired with DeviceR and userA will save that
userA has paired with DeviceL successfully and DeviceL has been paired.
And userA can use the device.
Yes
4. if userB want to pair with DeviceR, it will check if userB has paired with
DeviceR or not and if DeviceR has been paired or not.
I would say it will check if userA or an other user is paired with deviceR.
If DeviceR not paired, the process is the same with UserA.
yes
If userB not paired with DeviceR and DeviceR has been paired, please check
the following steps.
Here userA is paired with deviceR, deviceL is paired with deviceR. if
userB asks for pairing with deviceR.
1st phase: userB can't pair with deviceR.
2nd phase : userB can pair with deviceR only if deviceR and userB accept
the pairing request (authentication required).
userB will ask whether a uid+app combination has a certain privilege and get a yes/no answer back from Cynara.
If Cynara tell userB that it has a certain privilege to use DeviceR, userB
will set a mark and use DeviceR.
If Cynara tell userB that it has not a certain privilege to use DeviceR,
userB will pair with DeviceR failure and can't use DeviceR and tell app that
paired with DeviceR failure.
From my point of view, multi-pairing part is not related to privileges
check right now. It mostly concern adapter multi-control part for
multi-user support.
Later when userA will request to pair with deviceR, I assume that userA
will have to verified his privileges from Cynara before being allowed to
make the pairing request.
But first we need a mechanism to check who is paired with what device
and so on...
Best regards,
Corentin
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev