-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Whitelisting adjtimex get time operation and requiring CAP_SYS_TIME only in case of adjustment #33403
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
Whitelisting adjtimex get time operation and requiring CAP_SYS_TIME only in case of adjustment #33403
Conversation
|
@szegedim run |
…CAP_SYS_TIME Signed-off-by: Miklos Szegedi <[email protected]>
2a5076d to
2db0531
Compare
|
@tonistiigi I updated the patch. |
|
The issues seem to be environment related. |
|
@justincormack PTAL |
|
LGTM |
|
Please sign your commits following these rules: $ git clone -b "33126-whitelist-adjtimex" [email protected]:szegedim/moby.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354184424
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -fAmending updates the existing PR. You DO NOT need to open a new one. |
|
LGTM
…On 15 Jun 2017 5:58 pm, "Gordon" ***@***.***> wrote:
Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "33126-whitelist-adjtimex" ***@***.***:szegedim/moby.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354184424editor openschange each 'pick' to 'edit'save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f
Amending updates the existing PR. You *DO NOT* need to open a new one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33403 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAdcPHvv6l95wxyUHYyT7EMgIS9SzFNtks5sEdNDgaJpZM4NnDWN>
.
|
|
@szegedim can you rebase to get rid of the merge commit? That should also fix the DCO sign-off failure |
fa8ca20 to
2db0531
Compare
|
I do not have permissions to merge. Could you do that? |
|
LGTM |
…
Signed-off-by: Miklos Szegedi [email protected]
- What I did
Fixes #33126 . Enabled getting the time without CAP_SYS_TIME
- How I did it
Enabled adjtimex in the default profile without requiring CAP_SYS_TIME privilege. The kernel will check CAP_SYS_TIME and won't allow setting the time.
- How to verify it
docker run -t -i centos:7
yum install -y ntp
ntptime
Returns: ntp_gettime() returns code 0 (OK)
ntpdate -v time.nist.gov
Returns: ntpdate[84]: Can't adjust the time of day: Operation not permitted
- Description for the changelog
Whitelisting adjtimex get time operation and requiring CAP_SYS_TIME only in case of adjustment