36bbd7a6ad
Security fixes for CVE-2024-33869 bsc#1226946 and CVE-2023-52722 bsc#1223852 and CVE-2024-33870 bsc#1226944 and CVE-2024-33871 bsc#1225491 and CVE-2024-29510 bsc#1226945 for ghostscript and ghostscript-mini OBS-URL: https://build.opensuse.org/request/show/1184312 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=179
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
#include <tunables/global>
|
|
|
|
# this profile is mainly intended to prevent easy exploitation of
|
|
# issues in ghostscript. This is mainly intended as a hardening
|
|
# measure and doesn't alleviate the need for regular updates.
|
|
profile ghostscript /usr/bin/{gs,gs.bin} {
|
|
#include <abstractions/base>
|
|
#include <abstractions/consoles>
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/X>
|
|
|
|
# needed to read gc/write pdfs/eps/.. everywhere
|
|
/** wr,
|
|
# have these spelled out in case we can narrow the line above down sometime
|
|
/usr/bin/{gs,gs.bin} mrix,
|
|
/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,
|
|
}
|
|
}
|