Closed
Bug 1651731
Opened 4 years ago
Closed 4 years ago
Only allow files that are typically executable to have shebang lines override permission check
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox80 fixed)
RESOLVED
FIXED
mozilla80
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: tomprince, Assigned: tomprince)
References
Details
Attachments
(3 files)
Most of the files that we check permissions for never have shebang lines. We should explicitly control which files the shebang exception applies to. This incidentally allows us to check for permissions on binary files like pngs.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Pushed by mozilla@hocat.ca: https://hg.mozilla.org/integration/autoland/rev/950437cb8273 [lint] Only allow files that are typically executable to have shebang lines override permission check; r=linter-reviewers,sylvestre https://hg.mozilla.org/integration/autoland/rev/027618c1f57b [lint] Add a bunch more types of files that should never be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,preferences-reviewers,agi,sylvestre,sparky https://hg.mozilla.org/integration/autoland/rev/e2a60cd0189c [lint] Python and shell files without `#!` should not be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,agi,sylvestre,sparky
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/24545 for changes under testing/web-platform/tests
Comment 6•4 years ago
|
||
Did you intend to update the files-changed list in taskcluster/ci/source-test/mozlint.yml as well? (None of the new file types are in the list)
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/950437cb8273
https://hg.mozilla.org/mozilla-central/rev/027618c1f57b
https://hg.mozilla.org/mozilla-central/rev/e2a60cd0189c
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox80:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Upstream PR merged by moz-wptsync-bot
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•