Problem/Motivation
I run Drupal in multi-site mode.
The file permissions test doesn't allow me to take this into account: the other sites' "files" directories have to be writable but this is not something I want to appear in the review.
I can hush the "sites" directory, but that also hushes checks on site-specific modules and themes.
I can't hush "/files/" or "sites/*/files", which would be ideal.
Steps to reproduce
Run multi-site review.
Proposed resolution
Perhaps update the file permissions checks to take multi-site structures into account, so that sites/*/files can be ignored for the file permissions tests while all other sites/ child directories and files are still checked.
Alternatively, allow wildcards in the "hush directories" list, so "sites/*/files" can be entered usefully.
Issue fork security_review-3604020
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
smustgrave commentedCan you try this.
Comment #5
fonant commentedThat works nicely for me, where I use multi-site installations.
The new code looks to be more robust, too, in that it uses the actual directories present rather than the possibly-incomplete list in the
$sitesarray insites/sites.php.Thanks!
Comment #7
smustgrave commentedThanks for the quick review!