apparmor update 2018 - linux foundation events · 1 apparmor update 2018 2018 linux security summit...

Post on 27-Sep-2020

1 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

AppArmor Update 20182018 Linux Security Summit – North America

Presentation by

John Johansen

john.johansen@canonical.com

www.canonical.com

August 2018

2

New Logo

3

Moved from launchpad to gitlab

4

Wiki moved to gitlab too

5

CII Best Practices

6

Upstreaming

Everything except

af_unix

7

Upstreaming cont.

● Secids – 4.18

● audit rule fltering (SUBJ_ROLE) – 4.18

● socket mediation – 4.17

● Profle attacment – 4.17

● IMA

● Improved overlapping exec attachment resolution

● nnp subset test

8

4.14A New Direction

9

Policy tagged with ABI info

profile ping /{usr/,}bin/ping { include <abstractions/base> include <abstractions/consoles> include <abstractions/nameservice>

capability net_raw, capability setuid, network inet raw, network inet6 raw,

file mixr /{,usr/}bin/ping, file r /etc/modules.conf,

10

Policy tagged with ABI info

feature-abi=<features/upstream-4.18>

profile ping /{usr/,}bin/ping { include <abstractions/base> include <abstractions/consoles> include <abstractions/nameservice>

capability net_raw, capability setuid, network inet raw, network inet6 raw,

file mixr /{,usr/}bin/ping, file r /etc/modules.conf,

11

Single Binary Policy Cache

bin.pingsbin.klogdsbin.syslogdsbin.syslog-ngskypeusr.bin.evinceusr.bin.firefoxusr.bin.pidginusr.sbin.cupsdusr.sbin.dnsmasqusr.sbin.dovecot...

/etc/apparmor.d/cache

12

Per Kernel binary policy

bin.pingsbin.klogdsbin.syslogdsbin.syslog-ngskypeusr.bin.evinceusr.bin.firefoxusr.bin.pidginusr.sbin.cupsdusr.sbin.dnsmasqusr.sbin.dovecot...

bin.pingsbin.klogdsbin.syslogdsbin.syslog-ngskypeusr.bin.evinceusr.bin.firefoxusr.bin.pidginusr.sbin.cupsdusr.sbin.dnsmasqusr.sbin.dovecot...

bin.pingsbin.klogdsbin.syslogdsbin.syslog-ngskypeusr.bin.evinceusr.bin.firefoxusr.bin.pidginusr.sbin.cupsdusr.sbin.dnsmasqusr.sbin.dovecot...

$(location)/cache/7f01cf2e.1$(location)/7f01cf2e.0 $(location)/cache/a035ea11.0

13

Binary Policy Overlay

bin.pingsbin.klogdsbin.syslogdsbin.syslog-ngskypeusr.bin.evinceusr.bin.firefoxusr.bin.pidginusr.sbin.cupsdusr.sbin.dnsmasqusr.sbin.dovecot...

skypeusr.bin.evinceusr.bin.firefox

usr.sbin.cupsd

...

$(loc1)/7f01cf2e.0 $(loc2)/7f01cf2e.0

bin.pingsbin.klogdsbin.syslogdsbin.syslog-ngskypeusr.bin.evinceusr.bin.firefoxusr.bin.pidginusr.sbin.cupsdusr.sbin.dnsmasqusr.sbin.dovecot...

skypeusr.bin.evinceusr.bin.firefox

usr.sbin.cupsd

...

$(loc1)/a035ea11.0 $(loc2)/a035ea11.0

14

WIP

15

Current WIP

● Internal cleanups and improvements

● Rework early policy loading

● Systemd integration

● Default profle

● initrd/initramfs hooks

● Fine grained networking

● af_unix

● ipv4/ipv6

● Improved mount mediation

● Missing mediation

● Keys mediation

● ioctl mediation

16

WIP continued

● Improvements to auditing

● Get audit data of the stack

● Caching and grouping

● Improvements to complain/learning

● Caching of recently audited events

● Direct to daemon logging

● Daemon interaction

● Further attachment conditionals (user, …)

● Extended conditionals, and permissions

● Policy namespaces

● Separate scope & view work

● Open up policy to users and applications

● Delegation

17

Questions pleaseThank you

John Johansen

john.johansen@canonical.com

www.canonical.com

top related