3 <link rel="stylesheet" type="text/css" href="doc.css">
7 <a name="The.afm-system-daemon"></a>
8 <h1>The afm-system-daemon</h1>
15 <a name="Organisation.of.directory.of.applications"></a>
16 <h1>Organisation of directory of applications</h1>
18 <p>The main path for applivcations are: APPDIR/PKGID/VER.</p>
23 <li>APPDIR is as defined above</li>
24 <li>PKGID is a directory whose name is the package identifier</li>
25 <li>VER is the version of the package MAJOR.MINOR</li>
29 <p>This organisation has the advantage to allow several versions to leave together.
30 This is needed for some good reasons (rolling back) and also for less good reasons (user habits).</p>
32 <a name="Identity.of.installed.files"></a>
33 <h2>Identity of installed files</h2>
35 <p>All the files are installed as the user “userapp” and group “userapp”.
36 All files have rw(x) for user and r-(x) for group and others.</p>
38 <p>This allows any user to read the files.</p>
40 <a name="Labelling.the.directories.of.applications"></a>
41 <h2>Labelling the directories of applications</h2>
43 <a name="Organisation.of.data"></a>
44 <h1>Organisation of data</h1>
46 <p>The data of a user are in its directory and are labelled using the labels of the application</p>
48 <a name="Setting.Smack.rules.for.the.application"></a>
49 <h1>Setting Smack rules for the application</h1>
51 <p>For Tizen, the following rules are set by the security manager for each application.</p>
53 <pre><code>System ~APP~ rwx
55 System ~PKG~::RO rwxat
57 ~APP~ System::Shared rxl
58 ~APP~ System::Run rwxat
59 ~APP~ System::Log rwxa
66 ~APP~ User::App::Shared rwxat
71 <p>Here, ~PKG~ is the identifier of the package and ~APP~ is the identifier of the application.</p>
73 <a name="What.user.can.run.an.application."></a>
74 <h1>What user can run an application?</h1>
76 <p>Not all user are able to run all applications.
77 How to manage that?</p>