2019-03-22 12:27:22 +01:00
|
|
|
#include <tunables/global>
|
|
|
|
|
|
|
|
# this profile is mainly intended to prevent easy exploitation of
|
|
|
|
# issues in ghostscript. This is mainly intended as a hardening
|
2019-05-09 10:39:39 +02:00
|
|
|
# measure and doesn't alleviate the need for regular updates.
|
2019-09-24 10:21:58 +02:00
|
|
|
profile ghostscript /usr/bin/{gs,gs.bin} {
|
2019-03-22 12:27:22 +01:00
|
|
|
#include <abstractions/base>
|
|
|
|
#include <abstractions/consoles>
|
|
|
|
#include <abstractions/nameservice>
|
|
|
|
#include <abstractions/X>
|
|
|
|
|
|
|
|
# needed to read gc/write pdfs/eps/.. everywhere
|
|
|
|
/** wr,
|
2019-09-24 10:21:58 +02:00
|
|
|
# have these spelled out in case we can narrow the line above down sometime
|
|
|
|
/usr/bin/{gs,gs.bin} mrix,
|
2019-03-22 12:27:22 +01:00
|
|
|
/usr/bin/dvips mrix,
|
|
|
|
/usr/lib64/ghostscript/** m,
|
|
|
|
/usr/lib64/libgs.so.* m,
|
|
|
|
/usr/lib64/libijs-* m,
|
|
|
|
|
|
|
|
/usr/bin/hpijs Cx,
|
|
|
|
profile /usr/bin/hpijs flags=(complain) {
|
|
|
|
#include <abstractions/base>
|
|
|
|
|
|
|
|
network inet dgram,
|
|
|
|
|
|
|
|
/etc/cups/cupsd.conf r,
|
|
|
|
/etc/hp/hplip.conf r,
|
|
|
|
/usr/bin/hpijs mr,
|
|
|
|
/usr/share/ghostscript/** r,
|
|
|
|
/usr/share/hplip/** r,
|
|
|
|
/usr/share/snmp/mibs/ r,
|
|
|
|
/usr/share/snmp/mibs/*.txt r,
|
|
|
|
owner /var/spool/cups/tmp/gs_?????? rw,
|
|
|
|
}
|
|
|
|
}
|