diff options
author | Andras Timar <andras.timar@collabora.com> | 2018-03-08 16:07:11 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-09 11:49:46 +0100 |
commit | 4547fa2c1e205e1989611b1c4493cbbd12541372 (patch) | |
tree | 2b6430fc3524e17c85516bb30602529e91852bb4 /include/vcl | |
parent | 03300fba21eb5f02ebd7e6a997985d8a3fa500da (diff) |
Let sysadmins disable individual file format filters
It makes sense to disable a filter, as a temporary security measure,
when there is a 0-day vulnerability in it.
E.g., when 0-day found in AbiWord filter, this config snippet disables it:
<item oor:path="/org.openoffice.TypeDetection.Filter">
<node oor:name="Filters">
<node oor:name="AbiWord">
<prop oor:name="Enabled" oor:finalized="true">
<value>false</value>
</prop>
</node>
</node>
</item>
Change-Id: I8b84250c7e4aac3555877d23f58ed13a2210ebfc
Reviewed-on: https://gerrit.libreoffice.org/50961
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/errcode.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/errcode.hxx b/include/vcl/errcode.hxx index 4116a792c43e..8f1ba5ffc912 100644 --- a/include/vcl/errcode.hxx +++ b/include/vcl/errcode.hxx @@ -226,6 +226,7 @@ enum class ErrCodeClass { #define ERRCODE_IO_WRITEPROTECTED ErrCode( ErrCodeArea::Io, ErrCodeClass::Access, 37 ) #define ERRCODE_IO_BROKENPACKAGE ErrCode( ErrCodeArea::Io, ErrCodeClass::Format, 38 ) #define ERRCODE_IO_NOTSTORABLEINBINARYFORMAT ErrCode( ErrCodeArea::Io, ErrCodeClass::Format, 39 ) +#define ERRCODE_IO_FILTERDISABLED ErrCode( ErrCodeArea::Io, ErrCodeClass::Format, 40 ) // StreamErrorCodes |