Languages

Menu
Sites
Language
Smack label on WRT

Hi,

I'm currently working on research how the SMACK on Tizen works.

From my understanding WRT process hosts a web application and the process is set a SMACK label.

It is based on  "Understanding the Permission and Access Control Model for Tizen Application Sandboxing" .

It says that WRT Initializer sets label "widgetA" to a WRT process which hosts the widget in the example in page 25.

So I wanted to confirm this fact in my emulator (It is from Tizen SDK 2.0)

 

I created sample web application from Tizen IDE (I took first one "Annex" in Samples). And I run it on my emulator. It looks working correctly and I checked its PID. Assume that its PID is 1000 and I tried to get the SMACK label on it with following command ( from sdb shell )

# cat /proc/1000/attr/currnet

But what I get from the command is just "_" as a label. Is it expected result??

If not how I can get the expected result?

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
Yunchan Cho
SMACK has been provided in Tizen 2.1. So that result is right on Tizen 2.0 that you use. (the method that you check smack label is also correct) If you check smack label of web application's process on Tizen 2.1, you can see that the process has specific lable named as its package name that consist of 10bytes character. In tizen 2.1, web application is sandboxed as having own smack lebel :)
Shuichiro Suzuki
Thanks! I'll try to install Tizen 2.1.