Skip to content
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

Add fchmod and fchmodat to TestRunSeccompProfileDenyChmod #24299

Merged
merged 1 commit into from
Jul 4, 2016

Conversation

coolljt0725
Copy link
Contributor

- 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)

On arm64, chmod binary use syscall fchmodat, strace shows:

newfstatat(AT_FDCWD, "test", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
fchmodat(AT_FDCWD, "test", 0644)        = 0

this will make test TestRunSeccompProfileDenyChmod on arm64 failed.

there are three syscall chmod fchmod and fchmodat to change the permissions of a file,
I think it's better to add all to this test.

ping @jfrazelle @justincormack
Signed-off-by: Lei Jitang leijitang@huawei.com

@justincormack
Copy link
Contributor

LGTM. I noticed this in another PR that was adding a similar test, will try to find it too.

@justincormack
Copy link
Contributor

The Windows test failure is unrelated.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
@runcom
Copy link
Member

runcom commented Jul 4, 2016

LGTM

@runcom runcom merged commit 8b2597b into moby:master Jul 4, 2016
@justincormack
Copy link
Contributor

I think we should cherry pick this for rc as there is a possibility that at some point the system call used might change elsewhere and start breaking tests.

@thaJeztah thaJeztah added this to the 1.12.0 milestone Jul 6, 2016
@justincormack justincormack mentioned this pull request Jul 12, 2016
8 tasks
liusdu pushed a commit to liusdu/moby that referenced this pull request Oct 30, 2017
cherry-picked from upstream moby#24299

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Signed-off-by: Fengtu Wang <wangfengtu@huawei.com>
liusdu pushed a commit to liusdu/moby that referenced this pull request Oct 30, 2017
Add fchmod and fchmodat to TestRunSeccompProfileDenyChmod

cherry-picked from upstream moby#24299

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Signed-off-by: Fengtu Wang <wangfengtu@huawei.com>



See merge request docker/docker!652
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants