1
Containers with difgerent Security Modules
FOSDEM19
Presentation by John Johansen john.johansen@canonical.com www.canonical.com February 2019
Containers with difgerent Security Modules FOSDEM19 Presentation - - PowerPoint PPT Presentation
Containers with difgerent Security Modules FOSDEM19 Presentation by John Johansen john.johansen@canonical.com www.canonical.com February 2019 1 LSM Infrastructure Responsibilities LSM Provides Infrastructure Which LSMs are enabled
1
Presentation by John Johansen john.johansen@canonical.com www.canonical.com February 2019
2
3
4
5
https://github.com/cschaufmer/lsm-stacking https://github.com/jrjohansen/lsm-stacking John Johansen john.johansen@canonical.com www.canonical.com
– Hooks
– Security field in various objects
– ChromeOS running Android SELinux container – Virtual smart phone env (Cells/Cellrox), multiple android instances – Thin linux host (clear linux)
– lxd. run Ubuntu (apparmor) container on rhel (selinux) host
– snap using apparmor running on fedora (selinux base system) – Docker – flatpak
– Not enough semantic info at LSM layer – Some LSMs don’t want to be “namespaced”
– Real work needs to be done in security modules
– eg selinux using MCS label per container – do NOT want either OR mediation
– Not every LSM supports
– But …
– Will need audit_pid/portid per USER ns
– Will need translation per PID ns
– each will have its own queue and ruleset – auxiliaries can't influence host
– unshare mount ns and mount new selinuxfs
– Track nesting – Bounded enforcement
nscd dnsmasq
nscd dnsmasq
– mount, network, user, .. pita
– can’t mount multiple instances need to bind mount
– IMA Audit – Virtualized IMA fs interface
– Problems with ns xattr storage
– Prototype namespace from a few years ago