andrewd18 / df-lnp-installer

An installation script for the Dwarf Fortress Lazy Newb Pack, for Linux.
Other
93 stars 35 forks source link

don't require disabling system wide ptrace protection #32

Closed maqifrnswa closed 10 years ago

maqifrnswa commented 11 years ago

dwarftherapist doesn't work if it can't access df's memory.

However, you don't have to disable system wide ptrace protection as described https://github.com/andrewd18/df-lnp-installer/wiki/Dwarf-Therapist-Cannot-Connect-to-Dwarf-Fortress

From: http://www.bay12forums.com/smf/index.php?topic=66525.msg3924827#msg3924827

you can instead: sudo setcap cap_sys_ptrace=ep DwarfTherapist to allow it to disable ptrace protection just for the dwarftherapist binary.

andrewd18 commented 11 years ago

While I'm personally not convinced ptrace protection adds much, I'm willing to defer to the distro and this change makes sense. I'll make sure this gets in as part of 0.4.0.

Thanks for the bug report. :)

coldmug commented 11 years ago

I second this. I am of the opinion to allow people to bypass Dwarf Therapist. An app like that, no matter how good, is no reason to compromise the entire system.

andrewd18 commented 10 years ago

Fixed in 0.5.0-dev branch. check_ptrace_protection now simply prints out a warning and gives the user a setcap command to run. The wiki page has also been updated.