Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[18.09 backport] move the syslog syscall to be gated by CAP_SYS_ADMIN or CAP_SYSLOG #64

Merged
merged 1 commit into from
Oct 22, 2018

Conversation

thaJeztah
Copy link
Member

backport of moby#37929 for 18.09

git checkout -b 18.09_backport_syslog ce-engine/18.09
git cherry-pick -s -S -x ccd22ffcc8b564dfc21e7067b5248819d68c56c6
git push -u origin

cherry-pick was clean

This call is what is used to implement dmesg to get kernel messages
about the host. This can leak substantial information about the host.
It is normally available to unprivileged users on the host, unless
the sysctl kernel.dmesg_restrict = 1 is set, but this is not set
by standard on the majority of distributions. Blocking this to restrict
leaks about the configuration seems correct.

Fix moby#37897

See also https://googleprojectzero.blogspot.com/2018/09/a-cache-invalidation-bug-in-linux.html

Signed-off-by: Justin Cormack justin.cormack@docker.com
(cherry picked from commit ccd22ff)
Signed-off-by: Sebastiaan van Stijn github@gone.nl

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

This call is what is used to implement `dmesg` to get kernel messages
about the host. This can leak substantial information about the host.
It is normally available to unprivileged users on the host, unless
the sysctl `kernel.dmesg_restrict = 1` is set, but this is not set
by standard on the majority of distributions. Blocking this to restrict
leaks about the configuration seems correct.

Fix moby#37897

See also https://googleprojectzero.blogspot.com/2018/09/a-cache-invalidation-bug-in-linux.html

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
(cherry picked from commit ccd22ff)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 18.09.0 milestone Oct 2, 2018
@thaJeztah thaJeztah changed the title [18.09] bacport move the syslog syscall to be gated by CAP_SYS_ADMIN or CAP_SYSLOG [18.09] backport move the syslog syscall to be gated by CAP_SYS_ADMIN or CAP_SYSLOG Oct 2, 2018
@thaJeztah thaJeztah changed the title [18.09] backport move the syslog syscall to be gated by CAP_SYS_ADMIN or CAP_SYSLOG [18.09 backport] move the syslog syscall to be gated by CAP_SYS_ADMIN or CAP_SYSLOG Oct 17, 2018
Copy link

@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewhsu andrewhsu merged commit 6f1145e into docker-archive:18.09 Oct 22, 2018
@thaJeztah thaJeztah deleted the 18.09_backport_syslog branch October 22, 2018 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants