Paul Moore added the comment:

OK, so a 3rd party module providing a "safe_exec" function would make a good 
proof of concept, I assume. You could probably do that using comtypes or 
pywin32.

I'm not going to try to say what is or isn't a security threat, that's not my 
expertise. But I am puzzled as to why "use safe_exec rather than exec" isn't an 
option, but "use python with the malware scanning option enabled" is. Maybe 
it's like the Powershell execution policy model, though.

I still don't want it to scan my trusted scripts, though. More interpreter 
startup overhead? No thanks.

Anyway, thanks for the clarification. It's early days yet to be debating this 
level of detail, so I'll leave it there.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26137>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to