-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
docs: warn about adding capabilities #25348
docs: warn about adding capabilities #25348
Conversation
`CAP_MKNOD` and `CAP_SYS_MODULE` are particularly dangerous. | ||
|
||
Before adding any capability, review its security implications and | ||
ensure it is really necessary for the container’s functionality. |
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 guess it would be good to mention capabilities(7)
and user_namespaces(7)
as reference here, user_namespaces because I saw a few people confused why the caps they were adding don't work when running rootless, i.e. CAP_MKNOD and CAP_SYS_MODULE do not work in a user namesapce.
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 do you think of the new version?
f0942c5
to
1f21eb3
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.
LGTM
/lgtm |
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2345676 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
1f21eb3
to
b43863a
Compare
LGTM |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2345676
Does this PR introduce a user-facing change?