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

Privileged required #6

Open
deed02392 opened this issue Jul 20, 2017 · 8 comments
Open

Privileged required #6

deed02392 opened this issue Jul 20, 2017 · 8 comments

Comments

@deed02392
Copy link

Why is the privileged flag required for the operation of Phlex? Can we address this potential security issue?

@d8ahazard
Copy link
Owner

I honestly don't know that it is. Docker is new to me - I'm always open to suggestions for improvement.

@deed02392
Copy link
Author

I think you may have enabled it because you need it to configure the host device to support multicast? Did you write this and have simply forgotten why you enabled it? :-)

@d8ahazard
Copy link
Owner

d8ahazard commented Jul 20, 2017 via email

@deed02392
Copy link
Author

I think you need to ensure Phlex runs as PID 1, by using ENTRYPOINT exec form: https://docs.docker.com/engine/reference/builder/#exec-form-entrypoint-example

@d8ahazard
Copy link
Owner

@deed02392

https://forum.linuxserver.io/thread-495.html

I'm trying to get LSIO to make a proper image so this can become a non-issue. Pop over and show some support! :D

@aptalca
Copy link

aptalca commented Aug 7, 2017

@deed02392
--privileged is used for two reasons:

  1. iptables
  2. sysctl (for multicast)

iptables without privileged works if --cap-add=NET_ADMIN is added but I'm not sure what capability provides sysctl ability. I tried some of the obvious ones but they didn't work

@deed02392
Copy link
Author

deed02392 commented Aug 7, 2017 via email

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

No branches or pull requests

3 participants