Thanks for your answer...
See mine below

2015-01-09 6:09 GMT+01:00 장상윤 <[email protected]>:

>  Hello,
>
>
>
> IMHO, it would be good idea to use "usr" as a prefix.
>
> For example,
>
>     pkgmgr_client_usr_xxx
>
>     pkgmgr_pkginfo_usr_get_xxx
>
> because i think it is easy to name consitently and easy to use.
>
>
>
> BTW, is it necessary to make pair of existing apis using "_usr_"?
>
> It seems that use cases of those multi-usr related api in Appfw modules
> are just calling with getuid().
>
> pkgmgr-server forks backend installer with setuid(), so the backend
> installer is running on user who request install pacakge and it calls above
> apis using getuid().
>

It is not correct, please take that CAPI should be used at platform level
and user level.

Please take a look here :
https://wiki.tizen.org/wiki/File:Architecture_Overview_.jpg

That means CAPI should used by deamon to execute a request for a specific
user.

The example is AMD that launch application for a user. so CAPI used in this
case is executer by AMD (so by user root) for a regular user.



Furthermore, it is not allowed that running pkgcmd tool on root user.
>
> And when launching applications, the daemon running on each users(like
> amd_session_agent) handles it.
>

Not correct; There is also AMD launched as root

See https://wiki.tizen.org/wiki/File:AMD-MULTIUSER.png


BR


Baptiste


>
> But i don't know about modules on other framework or daemons, so i don't
> know about all use cases.
>
> Every opinion will be appreciated.
>
>
>
> Best regards,
>
> Sangyoon
>
>
>
> ------- *Original Message* -------
>
> *Sender* : Baptiste Durand<[email protected]>
>
> *Date* : 2015-01-08 22:18 (GMT+09:00)
>
> *Title* : Re: [Dev] Naming convention of mutli-user related APIs in appfw
>
>
>   Hello Sangyoon
>
> Good catch!
> indeed there are some mistakes.
>
> There is no clear naming conventio, what do you propose?
>
> Of course, it is never late for fixing what you are pointing on.
>
> Thanks
>
>
>
> 2015-01-07 12:10 GMT+01:00 장상윤 <[email protected]>:
>
>>  Dear Baptiste and other application framework's maintainersm,
>>
>>
>>
>> I would like to ask about naming convention of multi-user related APIs of
>> application framework.
>>
>> There is unlikely consistent naming convention for it.
>>
>> For instance, in the "slp-pkgmgr" repository, there are two APIs as below:
>>
>>     A)
>> int pkgmgr_client_usr_activate_app(pkgmgr_client *pc, const char *appid, 
>> uid_t uid)
>>
>>     B)
>> int pkgmgr_pkginfo_get_usr_pkginfo(const char *pkgid, uid_t 
>> uid,pkgmgr_pkginfo_h *handle);
>>
>>
>>
>> The thing is that A added "_usr_" before verb, "activate", but B added
>> "_usr_" after verb, "get"
>>
>>
>>
>> Does anybody clarify and fix it?
>>
>> Is it too late to fix it?
>>
>>
>>
>> Thanks,
>>
>> Best regards,
>>
>>
>>
>> Sangyoon
>>
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> https://lists.tizen.org/listinfo/dev
>>
>>
>
>
> --
>  Baptiste DURAND
> Eurogiciel Vannes/FR
>
>
>
>
>



-- 
Baptiste DURAND
Eurogiciel Vannes/FR
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to