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)

enhancement

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.

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
Regressions: 1651867

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)

Upstream PR merged by moz-wptsync-bot
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: