smack update october 2018 - linux foundation …...who’s using smack? •tizen •automotive grade...

14
SMACK UPDATE OCTOBER 2018 Casey Schaufler Intel Open Source Technology Center

Upload: others

Post on 26-Jun-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

SMACK UPDATEOCTOBER 2018

Casey Schaufler

Intel Open Source

Technology Center

Page 2: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

CASEY SCHAUFLER

2

• Kernel developer from the 1970’s

• Supercomputers in the 1990’s

• Smack Linux Security Module

• Security module stacking

Photo Curtesy Ann Forrister

Page 3: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

WHAT IS SMACK?

• 3rd generation implementation of Multi Level Security

• Subject/Object/Access security model

• Doesn’t try to solve other problems

3

Page 4: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

LABEL BASICS

• File gets the label of its creator

• IPC treats receiver as the object

• Write access required

• Exec attribute on program files

• Transmute attribute on directories

4

Pop Pop

Crackle Pop

Page 5: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

ACCESS BASED ON LABEL RELATIONSHIPS

• Basic rule is that labels must match

• Special labels for things like /dev/null

• Explicit relationships can be defined

• Snap Pop rwxa

5

Crackle Pop

Crackle *

Snap Pop

Page 6: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

SPECIAL LABELS

• Floor (“_”)

• Star (“*”)

• Hat (“^”)

6

Crackle _

Crackle *

^ Pop

Page 7: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

NETWORK LABELS

• CIPSO used by default

• Unlabeled packets use “ambient” label

• Address label specificiations

7

Snap Snap

<nothing> _

192.100.0.6

192.100.0.6

<nothing> Crackle

192.100.0.6

Page 8: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

WHO’S USING SMACK?

• Tizen

• Automotive Grade Linux

• Yocto Project

8

Page 9: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

WHAT’S NEW IN SMACK?

• Overlayfs support

• Privilege to change keys

9

Page 10: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

WHAT’S FIXED IN SMACK?

• Memory leaks

• smack_inode_removexattr

• smack_inode_getsecctx

• IPv4 over IPv6

• UDP-Lite and DCCP

10

Page 11: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

NETWORKING PROJECTS

• Calipso

• Netlabel clean up

11

Page 12: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

OTHER PROJECTS

• Smack namespace

• Revive Samsung’s project

• Infiniband

• libvert

• eBPF

12

Page 13: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

RULE SET FOR DISTRIBUTIONS

13

Page 14: SMACK UPDATE OCTOBER 2018 - Linux Foundation …...WHO’S USING SMACK? •Tizen •Automotive Grade Linux •Yocto Project 8 WHAT’S NEW IN SMACK? •Overlayfs support •Privilege

THANK YOU