Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 2
    yes. you can put your process in a private mount namespace, and mount some other file over /tmp/adb.log, or even mount its own private /tmp altogether. do man unshare and man namespaces and man nsenter. Commented Oct 21, 2015 at 13:59
  • 1
    @mikeserv great, that seems to be exactly what I need, thank you! If you reformat your comment as an answer, I'll be able to set it as accepted. Commented Oct 21, 2015 at 14:07
  • Or there's LD_PRELOAD tricks, though that would be more complicated. Commented Oct 21, 2015 at 14:47
  • @thrig yeah, I though about LD_PRELOAD, but frankly, it would be easier to hardcode /home/$USER/tmp/adb.log and rebuild adb :) Commented Oct 21, 2015 at 14:49