Commit 9567ffee authored by Jim Fulton's avatar Jim Fulton

Added ClassSecurityInformation class. This class is equivalent to

ClassSecurityInfo except that access to unprotected subobjects is
denied. Use this class to provide more explicit, and, thus more
secure, protection for methods.
parent 32071dcb
......@@ -193,6 +193,10 @@ class ClassSecurityInfo(SecurityInfo):
LOG('SecurityInfo', WARNING, 'Class "%s" had conflicting '
'security declarations' % classobj.__name__)
class ClassSecurityInformation(ClassSecurityInfo):
# Default policy is disallow
access = 0
_moduleSecurity = {}
def secureModule(mname, *imp):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment