* Remove write permission from output paths after they have been built.
* Point $HOME to a non-existing path when building to prevent certain tools (such as wget) from falling back on /etc/passwd to locate the home directory (which we don't want them to look at since it's not declared as an input).
This commit is contained in:
parent
56b98c3857
commit
a88144215c
3 changed files with 52 additions and 6 deletions
|
|
@ -67,7 +67,10 @@ bool pathExists(const string & path);
|
|||
|
||||
/* Delete a path; i.e., in the case of a directory, it is deleted
|
||||
recursively. Don't use this at home, kids. */
|
||||
void deletePath(string path);
|
||||
void deletePath(const string & path);
|
||||
|
||||
/* Make a path read-only recursively. */
|
||||
void makePathReadOnly(const string & path);
|
||||
|
||||
|
||||
/* Messages. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue