Dominig ar Foll
Senior Software Architect
Open Source Technology Centre
Intel SSG

Le 24/09/2014 08:30, Zheng, Wu a écrit :
Hi Corentin,

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...
1. if DeviceR was paired with DeviceL by userA, NTB can know who paired with 
DeviceR successfully.
Therefore, NTB can record that which device has paired by which user in a file 
and memory.

Bluez can provide if DeviceR has been paired or not too.

2.Therefore, when user (such as userA) invoke the pair interface of NTB.

a. Firstly, NTB will have to verified his privileges from Cynara before being 
allowed to make the pairing request.
Yes.

The privileges include that if userA can use the paired devices after the 
device has been paired by the other user(userB) or not and if userA can pair 
with DeviceR or not.
That privilege does not exist yet and will likely not come soon. At this stage, If a device is paired by one user that pairing is not to be shared.

b. If userA has not the privileges to pair with DeviceR, useA will not pair 
with DeviceR and return false.
Yes

c. If userA has the privileges to pair with DeviceR, NTB can check with Bluez 
if DeviceR has been paired or not.
Yes

d. If DeviceR has been paired, NTB will check if DeviceR is paired by userA or 
not.
Yes

e. If DeviceR has been paired by userA, userA can work with DeviceR well (such 
as connection).
Ues

f. If DeviceR has been paired by the other user(userB), userA has checked if 
userA can use the paired device after the device has been paired by the other 
user(userB) or not.
Privilege not available, so No.

1. Firstly, userA can't work with DeviceR well (such as connection).

2. Secondly, If userA has the privileges to use the paired device after the 
device has been paired by the other user(userB),  userA can work with DeviceR 
well (such as connection).
If userA has not privileges to use the paired device after the device has been 
paired by the other user(userB),  userA can't work with DeviceR well (such as 
connection).
No, that privilege does not exist.

f. If DeviceR has not been paired, userA will pair with DeviceR.
After paired successfully, userA can work well with DeviceR(such as connection).
Yes.

Any suggestions?
Sharing pairing between user is not our current concern. Please provide user isolation first.


BTW, we can implement NTB related features firstly and Cynara can be done after 
Cynara is ready (in second step).
Please, prepare the calls to a privilege check function stub, that you will fill with Cynara code when available.
Prepare the various return cases from Cynara :
  - allowed
  - refused

Note that Cynara can ask for user confirmation what can take an undefined time.

Dominig
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to