Skip to content

Commit

Permalink
docs: defining a threat model for Ubuntu Frame
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkae committed Jul 15, 2024
1 parent d9ad918 commit fa18f07
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/sphinx/explanation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ These pages provide additional detail about a number of aspects related to using
- [Architecture](architecture): an overview of Mir's architecture for contributors
- [Libraries](libraries): an overview of Mir's libraries and how they depend on one another
- [Graphics support](mir-graphics-support): what's required to run Mir compositors
- [Threat Model](threat-model): defining a security threat model for Mir
- [What is Wayland anyway?](ok-so-what-is-this-wayland-thing-anyway): so what is it?
- [Windowing paradigms](window-positions-under-wayland): how are windows managed?
- [Component reports](component_reports): information on Mir's debug and performance reporting infrastructure
Expand Down
13 changes: 13 additions & 0 deletions doc/sphinx/explanation/threat-model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Threat Model
Mir is a C++ library for building compositors, not a product itself. As such,
when discussing the threat model for Mir, it is useful to discuss it in terms
of an actual product that is built on Mir. With this in mind, we will define
the threat model of **Ubuntu Frame** in this document.

## Ubuntu Frame Threat Model Diagram
Ubuntu Frame is published as a snap. As such, the threat model for frame assumes
that the snap is secure, and proceeds to outline the frame snap's interactions
with the outside world.

```{mermaid} ubuntu_frame_threat_model.mmd
```
29 changes: 29 additions & 0 deletions doc/sphinx/explanation/ubuntu_frame_threat_model.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
%%{ init: { 'flowchart': { 'curve': 'monotoneY' } } }%%
flowchart
shell((Mir-based Shell))
vnc_server(VNC Server)
vnc_client(VNC Client)
osk(On-screen Keyboard)
snapd(Snapd)
operator_app(Operator App)
user(User)
display(Display)

subgraph snap [Snap]
vnc_server--input-->shell
shell--screen content-->vnc_server

shell--content-->osk
osk--input-->shell
end

shell--contents/configuration--->display
snapd--configuration-->shell
display--visuals-->user
operator_app--help message-->shell
user--io events-->shell
display--properties-->shell
vnc_server<--vnc-->vnc_client

classDef boundary fill:none,stroke-dasharray: 5 5
snap:::boundary

0 comments on commit fa18f07

Please sign in to comment.