Languages

Menu
Sites
Language
How can I enroll smack rule in tizen studio project?

I want to request a smack rule for my tizen native app to use some function.

In some tizen project, there are a '~~.manifest' file.  But in tiezen studio, I can see only 'tizen-manifest.xml' and there are no smack rule.  I can't use <define> or <smack request> in tizen-manifest.xml

Where can I search or make *.manifest in tizen studio?

The content in manifest file have like below.

<manifest>
    <define>
        <domain name="mytizenapp"/>
        <request>
            <smack request="otherapp" type="rwx" />

...
        </request>
    </define>

...

 

And other tizen project's manifest file is doing that

<manifest>
    <define>
        <domain name="otherapp"/>
        <permit>
            <smack permit="mytizenapp" type="rwx" />
  ...

...

Edited by: An on 02 Nov, 2016

Responses

1 Replies
Anirban Dutta

Hello!

As far as I know, Smack rules can't be requested from tizen applications directly. Tizen provides 'privileges' concept for applications to access system resources/daemons. Look here: https://wiki.tizen.org/wiki/Security/Tizen_2.X_smack-privilege-config
Smack-privilege-config is pre-defined set of smack rule templates which are mapped to a privilege.

But, we can define custom privileges using API. We have to find our specific resource and define our API as mentioned here:

https://wiki.tizen.org/wiki/Security/Tizen_2.X_Privileges#Adding_custom_privileges

Thanks.