aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index ddd27d8e6312..fd9560ea976c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2897,6 +2897,11 @@ sub process {
2897 ERROR("lockdep_no_validate class is reserved for device->mutex.\n" . $herecurr); 2897 ERROR("lockdep_no_validate class is reserved for device->mutex.\n" . $herecurr);
2898 } 2898 }
2899 } 2899 }
2900
2901 if ($line =~ /debugfs_create_file.*S_IWUGO/ ||
2902 $line =~ /DEVICE_ATTR.*S_IWUGO/ ) {
2903 WARN("Exporting world writable files is usually an error. Consider more restrictive permissions.\n" . $herecurr);
2904 }
2900 } 2905 }
2901 2906
2902 # If we have no input at all, then there is nothing to report on 2907 # If we have no input at all, then there is nothing to report on