]> khamidou — GitHub mirrors - arcanist.git/commit
`ArcanistChmodLinter` should not allow certain MIME types to be executable
authorJoshua Spence <josh@joshuaspence.com>
Wed, 25 Jun 2014 19:30:23 +0000 (05:30 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 25 Jun 2014 19:30:23 +0000 (05:30 +1000)
commit5ab288b30c36bee235833aa31a8e4f9e6e25a676
treea450cc47fb3c6a57459b45d9d77a8a4ff542efe6
parent439dff5e09d0456e2474afd1b1563605adc0c0dd
`ArcanistChmodLinter` should not allow certain MIME types to be executable

Summary: Fixes T5466. An image is an example of a binary which should //not// be executable. Modify the `ArcanistChmodLinter` to disallow certain blacklisted MIME types from being executable.

Test Plan: Created an executable image file and ran `arc lint` over this file.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: richardvanvelzen, epriestley, Korvin

Maniphest Tasks: T5466

Differential Revision: https://secure.phabricator.com/D9723
src/lint/linter/ArcanistChmodLinter.php