Skip to content

apparmor: improve matching for /proc/<num>#10

Open
thaJeztah wants to merge 1 commit intomainfrom
better_proc
Open

apparmor: improve matching for /proc/<num>#10
thaJeztah wants to merge 1 commit intomainfrom
better_proc

Conversation

@thaJeztah
Copy link
Member

@thaJeztah
Copy link
Member Author

Linting failure will be fixed by #11

Comment on lines 46 to 49
# Container processes may send signals amongst themselves.
signal (send,receive) peer={{.Name}},

deny @{PROC}/* w, # deny write for all files directly in /proc (not in a subdir)
Copy link
Member Author

Choose a reason for hiding this comment

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

While comparing, I also noticed that containerd has a special rule for RootlessKit;

@AkihiroSuda curious; should the moby profile have this as well? (I'm also looking if we can someday reconcile the profiles and share the same module perhaps)

Copy link
Member

Choose a reason for hiding this comment

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

Yes, better to reconcile the profiles in the same module

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup! I wasn't sure about the RootlessKit one and if it would also be needed for Moby and/or impact moby somehow; if there's no "risk", then we could already add it I guess (we can probably still control the parameter to enable/disable it).

I still need to look at some of the other code in containerd; I want to keep the code as minimal as possible, but at least having the same profiles would be good.

Also need to look if Moby's contrib/apparmor should be migrated to this repo as well; https://github.com/moby/moby/tree/b11b687b6ab8faa84bbe664042770e91a1b2288f/contrib/apparmor

Upstream the improvement made in containerd [containerd@5098827].

[containerd@5098827]: containerd/containerd@5098827

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants