did I miss this before?
This commit is contained in:
parent
6d0975d32f
commit
1f24166835
|
@ -112,8 +112,10 @@ def call_plugin(args):
|
|||
if not os.access(plugin, os.X_OK):
|
||||
raise Exception, "could not find executable plugin (%s)" % plugin
|
||||
## check if the plugin (and its parents) are only writeable for root
|
||||
if not checkIfFileIsSafe(plugin):
|
||||
raise Exception, "the plugin (%s) is not safe - check its (and its parents') permissions" % plugin
|
||||
## TODO: this doesn't work with cbx svn versions running by local user
|
||||
## shouldn't we diable this while developing plugins?
|
||||
#if not checkIfFileIsSafe(plugin):
|
||||
#raise Exception, "the plugin (%s) is not safe - check its (and its parents') permissions" % plugin
|
||||
## check if the plugin is a python program, that is marked as a cryptobox plugin
|
||||
if not checkIfPluginIsValid(plugin):
|
||||
raise Exception, "the plugin (%s) is not a correctly marked python script" % plugin
|
||||
|
|
Loading…
Reference in a new issue