Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×

Ubuntu application confinement

Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Próximo SlideShare
Ubuntu Application Lifecycle
Ubuntu Application Lifecycle
Cargando en…3
×

Eche un vistazo a continuación

1 de 40 Anuncio

Más Contenido Relacionado

Similares a Ubuntu application confinement (20)

Anuncio

Ubuntu application confinement

  1. 1. Ubuntu Application Confinement Or: How I learned to stop worrying and trust application developers Ted Gould ted@canonical.com @tedjgould SMU 3 Sept 2014
  2. 2. “I'm more worried about Murphy than I am Machievilli” — Michi Henning
  3. 3. Ideal Cracker
  4. 4. Diminished User Experience
  5. 5. Dead Battery © Andy Armstrong — CC-BY-SA — https://www.flickr.com/photos/andyarmstrong/190078748/
  6. 6. © Josh Hallett — CC-BY — https://www.flickr.com/photos/hyku/368912557/ Data Protection
  7. 7. Physical Destruction © Antti T. Nissinen — CC-BY — https://www.flickr.com/photos/54177777@N00/373864777/
  8. 8. Phone Usage http://hbr.org/2013/01/how-people-really-use-mobile/
  9. 9. App App
  10. 10. App Writable Area ~/.cache/$(pkg) ~/.local/share/$(pkg) ~/.config/$(pkg) App Readable Area /usr/share/icons/ /bin/sh /usr/bin/qmlscene App Restricted Area ~/.cache/$(other pkg) ~/.local/share/address-book ~/Documents/
  11. 11. Application Switcher
  12. 12. Presentation Application Switcher
  13. 13. Infinite App Illusion Technical User How many apps can I run? 1 GB RAM 1 GHz Quad Core
  14. 14. User Interaction Only!!!
  15. 15. Linux Kernel OOM Killer (want to include graphics resources in the future)
  16. 16. What happens: App is asked to save state Graphic buffers grabbed for screenshot Timeout, then all processes are sent SIGSTOP
  17. 17. What happens: NOTHING!
  18. 18. Positive: Ask to save state nicely via life cycle Stop using processing when not asked Negative: SIGSTOP apps SIGKILL apps on OOM killer
  19. 19. DBus
  20. 20. DBus Message Type Signal or Method Destination :0.54 or “com.canonical.Unity” Path /com/canonical/Unity/Dash Interface com.canonical.unity.dash Method ShowAttention Payload [“foo”, “bar”]
  21. 21. Request permission at time of use
  22. 22. Review (1/2) Ubuntu Applications are¹: ELF Binaries Link to C libs Draw on an EGL Buffer ¹ This is really only from a confinement/lifecycle perspective, we have a really nice QML SDK that makes application author's lives much easier, you should use it if you can.
  23. 23. Review (2/2) Ubuntu Applications are: Confined. By default the applications are restricted from using a lot of functionality that might be expected from a traditional Linux user session. Managed. The application lifecycle works to keep the user in control of what is draining the battery and using resources. Have Friends. Trusted helpers provide ways to implement the functionality you need and work with confinement.
  24. 24. Additional Info http://www.ubuntu.com/phone https://developer.ubuntu.com https://wiki.ubuntu.com/Security/AppArmor https://wiki.ubuntu.com/Mir
  25. 25. © Stéfan — CC-BY-SA — https://www.flickr.com/photos/st3f4n/143623934

×