Skip to content

Instantly share code, notes, and snippets.

@tdaitx
Created August 26, 2016 07:20
Show Gist options
  • Save tdaitx/5dcd47a3f11b742fa3335518be547514 to your computer and use it in GitHub Desktop.
Save tdaitx/5dcd47a3f11b742fa3335518be547514 to your computer and use it in GitHub Desktop.
add debug build to debian's firejail
diff -Nru firejail-0.9.40/debian/changelog firejail-0.9.40/debian/changelog
--- firejail-0.9.40/debian/changelog 2016-06-26 10:56:12.000000000 -0300
+++ firejail-0.9.40/debian/changelog 2016-08-26 04:11:13.000000000 -0300
@@ -1,3 +1,9 @@
+firejail (0.9.40-3~bpo8+2) UNRELEASED; urgency=medium
+
+ * Add debug build.
+
+ -- Tiago Stürmer Daitx <tdaitx@gmail.com> Fri, 26 Aug 2016 04:10:36 -0300
+
firejail (0.9.40-3~bpo8+1) jessie-backports; urgency=low
* Rebuild for jessie-backports.
diff -Nru firejail-0.9.40/debian/control firejail-0.9.40/debian/control
--- firejail-0.9.40/debian/control 2016-06-14 17:28:45.000000000 -0300
+++ firejail-0.9.40/debian/control 2016-08-26 02:34:37.000000000 -0300
@@ -19,3 +19,20 @@
process and all its descendants to have their own private view of the
globally shared kernel resources, such as the network stack, process
table, mount table.
+
+Package: firejail-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ firejail (= ${binary:Version}),
+ ${misc:Depends}
+Description: debugging symbols for firejail
+ Firejail is a SUID security sandbox program that reduces the risk of
+ security breaches by restricting the running environment of untrusted
+ applications using Linux namespaces and seccomp-bpf. It allows a
+ process and all its descendants to have their own private view of the
+ globally shared kernel resources, such as the network stack, process
+ table, mount table.
+ .
+ This package contains the debugging symbols for firejail.
diff -Nru firejail-0.9.40/debian/rules firejail-0.9.40/debian/rules
--- firejail-0.9.40/debian/rules 2016-06-14 17:28:45.000000000 -0300
+++ firejail-0.9.40/debian/rules 2016-08-26 02:37:16.000000000 -0300
@@ -2,6 +2,8 @@
#export DH_VERBOSE=1
+.PHONY: override_dh_strip override_dh_fixperms override_dh_installchangelogs override_dh_auto_install override_dh_auto_test
+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
@@ -15,9 +17,12 @@
dh_installchangelogs RELNOTES upstream
override_dh_auto_install:
- dh_auto_install
+ dh_auto_install --destdir=debian/firejail
# documentation will be installed by debhelper
rm --verbose -rf debian/firejail/usr/share/doc/firejail
override_dh_auto_test:
# skip tests here as they are run as autopkgtest
+
+override_dh_strip:
+ dh_strip --dbg-package=firejail-dbg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment