×
Namespaces

Variants
Actions
(Difference between revisions)

MeeGo 1.2 Harmattan Security Tokens

From Nokia Developer Wiki
Jump to: navigation, search
gnuton (Talk | contribs)
(Gnuton - - APIs that require security tokens)
gnuton (Talk | contribs)
(Gnuton - - Complete list of tokens available)
Line 172: Line 172:
  
 
=== Complete list of tokens available ===
 
=== Complete list of tokens available ===
As Harmattan developer, you have maybe noticed that some applications work correctly only if launched by Qt Creator or via SSH and that they don't work when launched from the phone application menu.
+
As Harmattan developer, you have maybe noticed that some applications work correctly only if launched by Qt Creator or via SSH and that they don't work when launched from the phone application menu or by terminal.
This happens because these apps need some capabilities to run correctly on Harmattan if they run as "user". These  set of capabilities are generally granted by the system to the app by default when the app runs via SSH/developer.
+
  
The complete list of tokens which are granted to "developer" are the following:
+
when we run an application as developer or inside develsh, our application gets the following security tokens:
 
/home/developer $ accli -I
 
/home/developer $ accli -I
 
Current mode: normal
 
Current mode: normal
Line 226: Line 225:
 
         develsh::develsh
 
         develsh::develsh
  
If you run accli -I in the user terminal instead, you can see how little is the set of capabilities which the system grants to app launched by "user".
+
When the application is launched by the application menu or by user teminal, it takes these capabilities.
 
/home/user $ accli -I
 
/home/user $ accli -I
 
Current mode: normal
 
Current mode: normal
Line 236: Line 235:
 
         meegotouchhome-nokia::meegotouchhome-nokia
 
         meegotouchhome-nokia::meegotouchhome-nokia
  
For this reason, applications which have to redistributed  have to define a manifest file which requests  some of the capabilities listed in the first list and which are missing in the second one.
+
The capabilities granted to applications which run as user are very few. Manifest file can grant additional capabilities to our apps.
  
 
=== Further readings ===
 
=== Further readings ===
 
* [http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Developing_for_Harmattan_Harmattan_security.html Harmattan Security guide]
 
* [http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Developing_for_Harmattan_Harmattan_security.html Harmattan Security guide]

Revision as of 18:10, 8 December 2011

Contents

MeeGo 1.2 Harmattan APIs/Qt Quick Modules that require security credentials

This section lists all MeeGo 1.2 Harmattan and Platform APIs and Qt Declarative modules that require security credentials. Please do not add any unnecessary tokens to your application's Aegis Manifest file .


APIs that require security tokens

API Required token
Accounts Framework
  • TrackerReadAccess
  • TrackerWriteAccess
Associate Content with Actions
  • TrackerReadAccess
Location Extras
  • GRP::metadata-users
  • Location
  • TrackerReadAccess
  • TrackerWriteAccess
Location Picker
  • Location
  • TrackerReadAccess
QmSystem
  • mce::CallStateControl (check comments below)
  • mce::DeviceModeControl (check comments below)
  • timed::TimeControl (check comments below)
  • dsme::DeviceStateControl (check comments below)
  • mce::LEDControl (check comments below)
  • mce::TKLockControl (https://harmattan-bugs.nokia.com/show_bug.cgi?id=114)
  • mce::DeviceLockControl (check comments below)
QtMobility Contacts
  • GRP::metadata-users
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility Gallery
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility Location
  • Location
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility Messaging
  • Cellular
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility Multimedia
  • GRP::pulse-access
  • GRP::video
QtMobility Organizer
  • GRP::calendar
  • GRP::metadata-users
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility Systeminfo
  • mce::DeviceModeControl (check comments below)
  • mce::TKLockControl (check comments below)
QtSparql RDF Tracker
  • TrackerReadAccess
  • TrackerWriteAccess
Relevance Search
  • relevance::RelevanceAllContentTypes (check comments below)
  • smartsearch::RelevanceAllContentTypes (check comments below)
Share UI Extension API
  • TrackerReadAccess
Single Sign On
  • keychain-access (check comments below)
Web Upload Services
  • TrackerReadAccess
  • TrackerWriteAccess

Description of posix tokens can be found here.

Qt Declarative modules that require security credentials

Qt Declarative module Required token
MapsPlugin
  • Location
QSparql
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility.contacts
  • GRP::metadata-users
  • TrackerReadAccess
  • TrackerWriteAccess

QtMobility.gallery

  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility.location
  • Location
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility.messaging
  • Cellular
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility.organizer
  • GRP::calendar
  • GRP::metadata-users
  • TrackerReadAccess
  • TrackerWriteAccess
QtMobility.systeminfo
  • Cellular
  • mce::DeviceModeControl (check comments below)
  • mce::TKLockControl (check comments below)
QtMultimediaKit
  • GRP::pulse-access
  • GRP::video

(Courtesy of the MeeGo 1.2 Harmattan documentation team)

Complete list of tokens available

As Harmattan developer, you have maybe noticed that some applications work correctly only if launched by Qt Creator or via SSH and that they don't work when launched from the phone application menu or by terminal.

when we run an application as developer or inside develsh, our application gets the following security tokens: /home/developer $ accli -I Current mode: normal Credentials:

       UID::user
       GID::developer
       CAP::chown
       CAP::dac_read_search
       CAP::fowner
       CAP::fsetid
       CAP::kill
       CAP::linux_immutable
       CAP::net_bind_service
       CAP::net_broadcast
       CAP::net_admin
       CAP::net_raw
       CAP::ipc_lock
       CAP::ipc_owner
       CAP::sys_chroot
       CAP::sys_ptrace
       CAP::sys_pacct
       CAP::sys_boot
       CAP::sys_nice
       CAP::sys_resource
       CAP::sys_time
       CAP::sys_tty_config
       CAP::lease
       CAP::audit_write
       CAP::audit_control
       CAP::setfcap
       GRP::root
       GRP::dialout
       GRP::video
       GRP::pulse-access
       GRP::users
       GRP::metadata-users
       GRP::calendar
       AID::.develsh.
       Cellular
       TrackerReadAccess
       TrackerWriteAccess
       Location
       FacebookSocial
       tracker::tracker-extract-access
       tracker::tracker-miner-fs-access
       libaccounts-noa::accesssvt
       package-manager::packagemanager_limited
       package-manager::packagemanager_private
       icd2::icd2-plugin
       develsh::develsh

When the application is launched by the application menu or by user teminal, it takes these capabilities. /home/user $ accli -I Current mode: normal Credentials:

       UID::user
       GID::users
       SRC::com.nokia.maemo
       AID::com.nokia.maemo.meegotouchhome-nokia.
       meegotouchhome-nokia::meegotouchhome-nokia

The capabilities granted to applications which run as user are very few. Manifest file can grant additional capabilities to our apps.

Further readings

93 page views in the last 30 days.