-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update apparmor profiles #765
Conversation
deploy/apparmor/virtlet
Outdated
@@ -29,9 +33,12 @@ profile virtlet flags=(attach_disconnected) { | |||
/{usr/,}sbin/ebtables rix, | |||
/{usr/,}sbin/brctl rix, | |||
/opt/cni/bin/calico* rix, | |||
/opt/cni/bin/genie rix, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about other plugins, like flannel?
Same with ipam plugins (host-local, dhcp).
Maybe it needs a note in readme how to enable/disable particular plugins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For flannel it works, can you please provide a list of binaries specific to ipam plugins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So /opt/cni/bin/flannel
(and probably the same will be with /opt/cni/bin/bridge
) does not require such entry with rix
flag, right?
It will have read right to /run/flannel/subnet.env
?
Mainly used ipam plugin will be probably /opt/cni/bin/host-local
, which stores own data files in /var/lib/cni/networks/$NETWORK_NAME
- with network name defined as in plugin config file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to provide access to the main binaries anyway, if there's a possibility that they will be executed. Will update rules
37e61b0
to
5b29f87
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r1, 1 of 1 files at r2.
Reviewable status: 0 of 2 approvals obtained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r1, 1 of 1 files at r2.
Reviewable status: 1 of 2 approvals obtained
This change is