Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: tools/checkperms/checkperms.py

Issue 4771005: checkperms: whitelist third_party/openssl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Makes sure files have the right permissions. 6 """Makes sure files have the right permissions.
7 7
8 Some developers have broken SCM configurations that flip the svn:executable 8 Some developers have broken SCM configurations that flip the svn:executable
9 permission on for no good reason. Unix developers who run ls --color will then 9 permission on for no good reason. Unix developers who run ls --color will then
10 see .cc files in green and get confused. 10 see .cc files in green and get confused.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'config.sub', 79 'config.sub',
80 'configure', 80 'configure',
81 'depcomp', 81 'depcomp',
82 'install-sh', 82 'install-sh',
83 'missing', 83 'missing',
84 'mkinstalldirs' 84 'mkinstalldirs'
85 )) 85 ))
86 86
87 # File paths that contain these regexps will be whitelisted as well. 87 # File paths that contain these regexps will be whitelisted as well.
88 WHITELIST_REGEX = [ 88 WHITELIST_REGEX = [
89 re.compile('/third_party/openssl/'),
89 re.compile('/third_party/sqlite/'), 90 re.compile('/third_party/sqlite/'),
90 re.compile('/third_party/xdg-utils/'), 91 re.compile('/third_party/xdg-utils/'),
91 re.compile('/third_party/yasm/source/patched-yasm/config'), 92 re.compile('/third_party/yasm/source/patched-yasm/config'),
92 ] 93 ]
93 94
94 #### USER EDITABLE SECTION ENDS HERE #### 95 #### USER EDITABLE SECTION ENDS HERE ####
95 96
96 WHITELIST_EXTENSIONS_REGEX = re.compile(r'\.(%s)' % 97 WHITELIST_EXTENSIONS_REGEX = re.compile(r'\.(%s)' %
97 '|'.join(WHITELIST_EXTENSIONS)) 98 '|'.join(WHITELIST_EXTENSIONS))
98 99
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 success = CheckDirectory(start_dir) 319 success = CheckDirectory(start_dir)
319 if not success: 320 if not success:
320 print '\nFAILED\n' 321 print '\nFAILED\n'
321 return 1 322 return 1
322 print '\nSUCCESS\n' 323 print '\nSUCCESS\n'
323 return 0 324 return 0
324 325
325 326
326 if '__main__' == __name__: 327 if '__main__' == __name__:
327 sys.exit(main(sys.argv)) 328 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698