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

runtimetest: add NoNewPriviledges validation #106

Conversation

Mashimiao
Copy link

Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com

@@ -97,6 +97,17 @@ func validateProcess(spec *rspec.Spec) error {
}
}

ret, _, errno := syscall.Syscall6(syscall.SYS_PRCTL, 39, 0, 0, 0, 0, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we define a constant for 39 and then use it?

Copy link
Author

Choose a reason for hiding this comment

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

sure, updated

@Mashimiao Mashimiao force-pushed the runtime-test-no-new-priviledges-validation branch from 63045a8 to 0a84bb3 Compare June 9, 2016 03:40
@@ -17,6 +17,10 @@ import (
"github.com/syndtr/gocapability/capability"
)

// PR_GET_NO_NEW_PRIVS isn't exposed in Golang so we define it ourselves copying the value
Copy link
Contributor

Choose a reason for hiding this comment

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

the value from..

Copy link
Author

Choose a reason for hiding this comment

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

updated, thanks

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
@Mashimiao Mashimiao force-pushed the runtime-test-no-new-priviledges-validation branch from 0a84bb3 to 70d39bd Compare June 9, 2016 23:56
@mrunalp
Copy link
Contributor

mrunalp commented Jun 10, 2016

LGTM

@mrunalp mrunalp merged commit 0b5e2eb into opencontainers:master Jun 10, 2016
@Mashimiao Mashimiao deleted the runtime-test-no-new-priviledges-validation branch November 14, 2016 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants