How to deny external files access in headless LibreOffice? - Stack Overflow

There can be some external files includes in office documents. And it can be something like etcpasswd

There can be some external files includes in office documents. And it can be something like /etc/passwd or /home/known-user/very-top-secret-file. And it could be a network request as well.

How to deny access to any external file from a document?

There is an approach with ~/.config/libreoffice/4/user/registrymodifications.xcu, where this content should be placed:

<?xml version="1.0" encoding="UTF-8"?>
<oor:items xmlns:oor="; xmlns:xs="; xmlns:xsi=";>
    <item oor:path="/.openoffice.Office.Common/Security/Scripting"><prop oor:name="BlockUntrustedRefererLinks" oor:op="fuse"><value>true</value></prop></item>
</oor:items>

But there was issues with this approach that we detected – it doesn't work in some environments (we don't understand why). It there some another approach?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744105178a4558693.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信