Bug 1128607 - gs profile should have a profile name
gs profile should have a profile name
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: AppArmor
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Johannes Segitz
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-10 00:18 UTC by Christian Boltz
Modified: 2019-03-26 07:31 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Boltz 2019-03-10 00:18:33 UTC
Please change

profile /usr/bin/{dvipdf,eps2eps,gs,gsbj,gsdj,gsdj500,gslj,gslp,gsnd,ps2ascii,ps2epsi,ps2pdf,ps2pdf12,ps2pdf13,ps2pdf14,ps2pdfwr,ps2ps,ps2ps2} {

to

profile ghostscript /usr/bin/{dvipdf,eps2eps,gs,gsbj,gsdj,gsdj500,gslj,gslp,gsnd,ps2ascii,ps2epsi,ps2pdf,ps2pdf12,ps2pdf13,ps2pdf14,ps2pdfwr,ps2ps,ps2ps2} {

In case you overlooked it: the actual diff is

-profile /usr/bin/...
+profile ghostscript /usr/bin/...

This has the advantage that you'll get a much more readable profile name in audit.log, aa-status output, ps Zaux etc., and avoids problems if you ever have to add another executable to the attachment.

Please also rename /etc/apparmor.d/usr.bin.gs to /etc/apparmor.d/ghostscript.
Comment 1 Swamp Workflow Management 2019-03-22 14:50:18 UTC
This is an autogenerated message for OBS integration:
This bug (1128607) was mentioned in
https://build.opensuse.org/request/show/687694 Factory / ghostscript
Comment 2 Johannes Segitz 2019-03-26 07:31:06 UTC
added to Factory. Thank you Christian