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

Wrap error messages during init #1796

Merged
merged 1 commit into from
May 23, 2018

Conversation

crosbymichael
Copy link
Member

Fixes #1437

Signed-off-by: Michael Crosby [email protected]

@rhatdan
Copy link
Contributor

rhatdan commented May 6, 2018

These look great. Thanks @crosbymichael
LGTM

Copy link

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM

}
}
for _, path := range l.config.Config.ReadonlyPaths {
if err := readonlyPath(path); err != nil {
return err
return errors.Wrap(err, "set readonly rootfs")
Copy link
Member

Choose a reason for hiding this comment

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

errors.Wrapf(err, "set readonly path %s", path)?

}
if l.config.NoNewPrivileges {
if err := unix.Prctl(unix.PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); err != nil {
return err
return errors.Wrap(err, "set nonewprivilegs")
Copy link
Member

Choose a reason for hiding this comment

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

typo: nonewprivilegs -> nonewprivileges

@dqminh
Copy link
Contributor

dqminh commented May 19, 2018

LGTM

Approved with PullApprove

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented May 23, 2018

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit 3a07931 into opencontainers:master May 23, 2018
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.

6 participants