|
@@ -2897,6 +2897,11 @@ sub process {
|
|
ERROR("lockdep_no_validate class is reserved for device->mutex.\n" . $herecurr);
|
|
ERROR("lockdep_no_validate class is reserved for device->mutex.\n" . $herecurr);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if ($line =~ /debugfs_create_file.*S_IWUGO/ ||
|
|
|
|
+ $line =~ /DEVICE_ATTR.*S_IWUGO/ ) {
|
|
|
|
+ WARN("Exporting world writable files is usually an error. Consider more restrictive permissions.\n" . $herecurr);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
# If we have no input at all, then there is nothing to report on
|
|
# If we have no input at all, then there is nothing to report on
|