lyx_mirror/src/graphics
Tommaso Cucinotta 244de5d2c1 Add 'needauth' option to converters that need explicit user authorization.
Addressing #10481.

This patch adds the new 'needauth' option for converters launching
external programs that are capable of running arbitrary code on behalf
of the user. These converters won't be run unless the user gives explicit
authorization, which is asked on-demand when the converter is about to
be run (question is not asked if the file is cached and calling the
converter is not needed).

The user prompt has a 3rd button so that he/she's not prompted again
for (any converter over) the same document (identified through
buffer->absFileName()).

Two preference options are added:

lyxrc.use_converter_needauth_forbidden disables any converter with
the 'needauth' option, which is meant to force user to an explicit
action via the preferences pane, before being able to use advanced
converters that can potentially bring security threats;

lyxrc.use_converter_needauth enables prompting the user for 'needauth'
converters, or bypasses the check if not enabled, falling back to the
previous behavior.

So, the first option is for maximum security, the second is for
maximum usability.
2016-11-22 23:54:58 +01:00
..
CMakeLists.txt
epstools.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
epstools.h
GraphicsCache.cpp Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsCache.h Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsCacheItem.cpp Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsCacheItem.h Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsConverter.cpp Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsConverter.h Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsImage.h
GraphicsLoader.cpp Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsLoader.h Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
GraphicsParams.cpp
GraphicsParams.h
GraphicsTypes.h
PreviewImage.cpp Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
PreviewImage.h Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
PreviewLoader.cpp Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
PreviewLoader.h Replace Boost.Signals with Boost.Signals2 2016-06-09 22:25:34 +02:00