linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

feat: slightly improved X11 server security #144

Open strk opened 4 years ago

strk commented 4 years ago

Only enable access from the local "root" user, and disable it afterwards. Also simplifies the docker call to avoid repeating value of a known env variable

@billgeo does this work for you on OSX ?

strk commented 4 years ago

On Wed, Jun 17, 2020 at 08:55:58PM -0700, Bill Nelson wrote:

@billgeo commented on this pull request.

No xhost +local:root doesn;t work on MacOS.

Does the current xhost + work ? We can still slightly improve security by runnig xhost - at the end...

I need to set it my xhost +<local_IP>. If I do that on the terminal before running make target it works though.

It's a bit messy, but there some way to throw a useful error message for Mac users to tell them to do xhost + $(ipconfig getifaddr en0) before the make target? Or do that in the Makefile?

Ideally we'd be stricter, yes. Another solution seems to be crafting an Xauthority file but I'm having other issues to make this work on my system

billgeo commented 4 years ago

Does the current xhost + work ?

Yes. That works.

We can still slightly improve security by runnig xhost - at the end...

Sounds like a good small improvement if there's no other side effects.