[Nix-dev] How can I stop python writing into the nix store?

roconnor at theorem.ca roconnor at theorem.ca
Mon Apr 4 08:19:06 CEST 2011


Wicd runs as root.  The demon is written in Python.  When python runs it 
likes to write new .pyc and/or .pyo files into the store.  Since wicd is 
running as root it obliges and modifies the store directory.  Clearly this 
is bad.

What is the best way to stop python from modifying the nix store?  I'm 
considiering trying to convince python to write its .pyc or .pyo files at 
build time so it doesn't feel compelled to write them at runtime.  Any 
ideas how to do this, or any other solutions to this problem.

P.S. wicd also writes stuffin into it's share directory in the store.  I 
think I will tackle this issue by patching the source code for wicd.

-- 
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''



More information about the nix-dev mailing list