Public bug reported:

I've been trying to create so-called ZUGFeRD/Factur-X invoices (A
german/french standard for e-invoicing that embeds XML data in a PDF)
with Ghostscript. There's an official script bundled with Ghostscript,
that is *also* part of the Ghostscript package on Ubuntu. It is
documented here:

https://ghostscript.readthedocs.io/en/gs10.05.1/ZUGFeRD.html

The problem is that Apparmor allows (by default) to neither open xml
files or icc files, with the latter being especially problematic because
they are used in a ton of other PDF/PS workflows.

In my case, gs cannot open the icc file that's referenced in the
zugferd.ps script and just fails with a file access error.

Given that modern PDF formats work alot with rdf, I would probably also
throw *.rdf in there for good measure.

My proposal would be to add the following to the extension definition in
profiles/apparmor.d/tunables/gs:

[xX][mM][lL] [iI][cC][cC] [rR][dD][fF]

My assumtion here is that a user like me, who tries to use scripts that
come bundled with Ghostscript in the official Ubuntu package, expects
them to work without fiddling with the Apparmor config.

I can provide a minimal reproduction example if needed for testing.

** Affects: apparmor (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139339

Title:
  Ghostscript config misses crucial file extensions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2139339/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to