Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

AppArmor loader DaemonSet #1658

Merged
merged 4 commits into from
Sep 1, 2016
Merged

Conversation

timstclair
Copy link

@timstclair timstclair commented Aug 30, 2016

This PR adds a proof-of-concept DaemonSet for loading AppArmor profiles from a ConfigMap onto a cluster.

The DaemonSet runs a small go program that is mostly a wrapper around apparmor_parser, which actually loads the profiles. The additional features the loader provides are:

  • Polling
  • Sourcing from multiple directories
  • Better handling of symlinks (necessary for ConfigMap volumes)
  • Better logging and messaging

This is meant to provide an example of using AppArmor, and be a starting point for users trying out AppArmor or building there own solutions.

/cc @jfrazelle @thockin


This change is Reviewable

@@ -0,0 +1,76 @@
# An example ConfigMap demonstrating how profiles can be stored as Kubernetes objects, and loaded by
# the DaemonSet.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/DaemonSet/AppArmor Profile Loader DaemonSet?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I went with "apparmor-loader DaemonSet" since that's the actual object name.

@dchen1107
Copy link
Contributor

LGTM to me overall. But not sure why travis complained the following:

This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml

@timstclair
Copy link
Author

I think the failure was just a flake. It shows the sudo message for every build.

@timstclair
Copy link
Author

Squashed commits.

@dchen1107
Copy link
Contributor

LGTM

@dchen1107 dchen1107 merged commit 562efc7 into kubernetes-retired:master Sep 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants