nix-gh/src
Eelco Dolstra bd013b6f98 On Linux, make the Nix store really read-only by using the immutable bit
I was bitten one time too many by Python modifying the Nix store by
creating *.pyc files when run as root.  On Linux, we can prevent this
by setting the immutable bit on files and directories (as in ‘chattr
+i’).  This isn't supported by all filesystems, so it's not an error
if setting the bit fails.  The immutable bit is cleared by the garbage
collector before deleting a path.  The only tricky aspect is in
optimiseStore(), since it's forbidden to create hard links to an
immutable file.  Thus optimiseStore() temporarily clears the immutable
bit before creating the link.
2012-02-15 01:31:56 +01:00
..
bin2c * Sync with the trunk. 2010-04-20 09:20:29 +00:00
boost * Install some headers in the right location. 2009-03-05 14:57:50 +00:00
bsdiff-4.3 * Quick hack around one of the pathological cases in bsdiff 2010-11-29 17:07:04 +00:00
libexpr Fix error message 2012-02-09 18:56:48 +01:00
libmain * Remove the terminate handler, which was only really needed because 2011-12-14 22:41:10 +00:00
libstore On Linux, make the Nix store really read-only by using the immutable bit 2012-02-15 01:31:56 +01:00
libutil On Linux, make the Nix store really read-only by using the immutable bit 2012-02-15 01:31:56 +01:00
nix-env * Refactoring: Get rid of a few subdirectories in corepkgs/, and some 2012-01-03 00:16:29 +00:00
nix-hash * Move parseHash16or32 into libutil, and use in nix-hash. 2011-12-02 11:47:06 +00:00
nix-instantiate * Inline some functions and get rid of the indirection through 2012-02-04 13:50:25 +00:00
nix-log2xml * Emit warning='1' or error='1' attributes for lines marked as 2010-03-05 12:54:58 +00:00
nix-setuid-helper * Drop the dependency on the ATerm library. 2010-04-19 14:51:58 +00:00
nix-store Use data() instead of c_str() where appropriate 2012-02-09 18:27:45 +01:00
nix-worker Use data() instead of c_str() where appropriate 2012-02-09 18:27:45 +01:00
Makefile.am * Drop the dependency on the ATerm library. 2010-04-19 14:51:58 +00:00