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

Only process requests from clients with privilege #469

Merged
merged 1 commit into from
Jun 16, 2016

Conversation

kerneltime
Copy link
Contributor

To be able to bind a port below 1024 on the client side, the plugin
needs to be run as root or given neccessary privileges. This change
enforces the policy of only allowing privileged clients.

To keep things simple the client port to bind is the same as the server.

Testing:

  1. Install client without code change to use priviledge port
  2. Validate that docker requests fail and log messages are generated.
  3. Upgrade to client with code change for priviledge port
  4. Validate that docker requests pass

Will be filling a separate issue to resolve the std out logging
on ESX. We need to invest a bit more to override the std out buffer
and redirect it to a log file.

To be able to bind a port below 1024 on the client side, the plugin
needs to be run as root or given neccessary privileges. This change
enforces the policy of only allowing privileged clients.

To keep things simple the client port to bind is the same as the server.

Testing:
1. Install client without code change to use priviledge port
2. Validate that docker requests fail and log messages are generated.
3. Upgrade to client with code change for priviledge port
4. Validate that docker requests pass

Will be filling a separate issue to resolve the std out logging
on ESX. We need to invest a bit more to override the std out buffer
and redirect it to a log file.
@kerneltime
Copy link
Contributor Author

fixes #436

@msterin
Copy link
Contributor

msterin commented Jun 15, 2016

Thanks for the fix. LGTM (contingent on CI passing)

@andrewjstone
Copy link
Contributor

LGTM

@kerneltime kerneltime merged commit 694fe11 into master Jun 16, 2016
@kerneltime kerneltime deleted the youshallnotpass.kerneltime branch June 16, 2016 07:04
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants