eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.generalFilePermissions

Module implementing a check for setting too permissive file permissions.

Global Attributes

None

Classes

None

Functions

_statIsDangerous Function to check for dangerous stat values.
checkFilePermissions
getChecks Public method to get a dictionary with checks handled by this module.


_statIsDangerous

_statIsDangerous(mode)

Function to check for dangerous stat values.

mode (int)
file mode to be checked
Return:
mode with masked dangerous values
Return Type:
int
Up


checkFilePermissions

checkFilePermissions(reportError, context, config)
Up


getChecks

getChecks()

Public method to get a dictionary with checks handled by this module.

Return:
dictionary containing checker lists containing checker function and list of codes
Return Type:
dict
Up