38fb2f9b9e2fe1e6a74a634d8a1ad9bfab77f8dd
[src/app-framework-main.git] / doc / security-framework.html
1 <html>
2 <head>
3   <link rel="stylesheet" type="text/css" href="doc.css">
4   <meta charset="UTF-8">
5 </head>
6 <body>
7 <a name="The.security.framework"></a>
8 <h1>The security framework</h1>
9
10 <pre><code>version: 1
11 Date:    29 mai 2016
12 Author:  José Bollo
13 </code></pre>
14
15 <p><ul>
16  <li><a href="#The.security.framework">The security framework</a></li>
17  <li><a href="#Setting.Smack.rules.for.the.application">Setting Smack rules for the application</a></li>
18  <li><a href="#What.user.can.run.an.application.">What user can run an application?</a></li>
19 </ul></p>
20
21 <a name="Setting.Smack.rules.for.the.application"></a>
22 <h1>Setting Smack rules for the application</h1>
23
24 <p>For Tizen, the following rules are set by the security manager for each application.</p>
25
26 <pre><code>System ~APP~             rwx
27 System ~PKG~             rwxat
28 System ~PKG~::RO         rwxat
29 ~APP~  System            wx
30 ~APP~  System::Shared    rxl
31 ~APP~  System::Run       rwxat
32 ~APP~  System::Log       rwxa
33 ~APP~  _                 l
34 User   ~APP~             rwx
35 User   ~PKG~             rwxat
36 User   ~PKG~::RO         rwxat
37 ~APP~  User              wx
38 ~APP~  User::Home        rxl
39 ~APP~  User::App::Shared rwxat
40 ~APP~  ~PKG~             rwxat
41 ~APP~  ~PKG~::RO         rxl
42 </code></pre>
43
44 <p>Here, ~PKG~ is the identifier of the package and ~APP~ is the identifier of the application.</p>
45
46 <a name="What.user.can.run.an.application."></a>
47 <h1>What user can run an application?</h1>
48
49 <p>Not all user are able to run all applications.
50 How to manage that?</p>
51 </body>
52 </html>