1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-15 16:29:15 -04:00
ports/sysutils/iocage/files/patch-setup.py
Michael Gmelin c4139815d8 sysutils/iocage: Add hardening measures on untar
This adds hardening measures while untaring archives fetched
over the network (including FreeBSD tarballs and iocage plugins),
as implemented by TrueNAS.

This reduces the impact of intentionally malicious or accidentally
broken archives.

Please note that users are still advised to only fetch from
trusted sources and make use of TLS to prevent MITM attacks.

While there, add patch to store man pages in the correct location.

Obtained from:		https://github.com/truenas/iocage/pull/358
2024-11-23 19:15:34 +01:00

15 lines
619 B
Python

--- setup.py.orig 2024-09-20 06:45:27 UTC
+++ setup.py
@@ -30,10 +30,10 @@ from setuptools import find_packages, setup
if os.path.isdir("/".join([sys.prefix, "etc/init.d"])):
_data = [('etc/init.d', ['rc.d/iocage']),
- ('man/man8', ['iocage.8.gz'])]
+ ('share/man/man8', ['iocage.8.gz'])]
else:
_data = [('etc/rc.d', ['rc.d/iocage']),
- ('man/man8', ['iocage.8.gz'])]
+ ('share/man/man8', ['iocage.8.gz'])]
if os.path.isdir("/".join([sys.prefix, "share/zsh/site-functions/"])):
_data.append(('share/zsh/site-functions', ['zsh-completion/_iocage']))