Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

No setuid #72

Merged
merged 5 commits into from
Sep 21, 2017
Merged

No setuid #72

merged 5 commits into from
Sep 21, 2017

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Aug 17, 2017

The technical side of #70 . Will also produce a PR for the documentation soon.

Note this PR branched off the quicktest one. If that's not acceptable, I'll remake this one.

@gregw
Copy link
Contributor Author

gregw commented Aug 17, 2017

I've removed the quicktest

| awk '/\\$/ { printf "%s", substr($0, 1, length($0)-1); next } 1' \
| egrep -v '[^ ]*java .* org\.eclipse\.jetty\.xml\.XmlConfiguration '
exit
fi
set -- $(sed 's/\\$//' /jetty-start)
set -- $(sed 's/\\$//' /tmp/jetty-start)
Copy link
Member

Choose a reason for hiding this comment

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

What's the /tmp change about?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The entrypoint no longer runs as root, so it can't create the on the fly version of /jetty-start in root. So just create it in /tmp instead.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe it would make sense to touch and chown the file at /jetty-start and add an extra check for a non-zero with test -s? I'm leery of using /tmp since it's a prime candidate for mounting into the container with tmpfs.

Copy link
Member

Choose a reason for hiding this comment

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

Either that or put it under $JETTY_BASE, which is already owned by jetty. Though now that I look, I see we still have code setting TMPDIR to /tmp/jetty and chown'ing that...

@gregw
Copy link
Contributor Author

gregw commented Sep 20, 2017

@md5 I think this is good to go, the /tmp usage has been moved to $TMPDIR which is by default /tmp/jetty

@nafg
Copy link

nafg commented Oct 10, 2017

Where's the documentation?

@gregw
Copy link
Contributor Author

gregw commented Oct 10, 2017

Sorry, I'm behind on looking at the documentation. Will get to it ASAP.

@gregw gregw self-assigned this Oct 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants