-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depend on libpam-tmpdir for very solid extra security #147
Depend on libpam-tmpdir for very solid extra security #147
Conversation
This would be nice. However this was discussed before and there is an unresolved issue (which breaks the build process). Investigation stalled and help would be welcome. See: |
This is from another time on another debian. I will test it and try to reproduce the error. It might not even be there anymore. |
I am unable to reproduce this issue. The steps I followed are:
Whatever issue it was, it seems to be not there anymore. Please test and tell. I think we can merge. |
This issue happened in the past with cowbuilder which is used during the build process of Kicksecure / Whonix because that is the cleanest way to build packages and makes sure there are no missing build dependencies. |
And that unfortunately is still broken.
|
Hmm. First question, where does Kicksecure use this? The 'user' does not normally do this, am I right? And for machines that have this package installed, it is still possible to build everything using other tools. Is there anything in particular that makes you prefer cowbuilder and not the classic functionality from dpkg-dev? Because dpkg-dev also makes sure there are no missing build dependencies. This doesn't seem like a deal-breaker to me unless I am missing an important detail. |
Right. This is a developer tool. However, some security hardening breaks the build process and I cannot use it myself then this adds a lot of extra complexity if I myself have to opt-out from a feature which is otherwise enabled by default for all users. Because if I don't use it myself, then I don't experience any other issues that users would have. Resulting in surprises, difficult to debug / non-reproducible situations. This isn't a security argument. It's maintenance argument. I need to be capable to manage the complexity, still understand the system. This is important. Other distributions often have less features or are abandoned. Maybe Liberté Linux has/had (some?) better security features but it doesn't help if the maintenance effort is too high so the main developer gets burnout and throwing the towel. (I dunno what happened to Liberté Linux.) So all things I am doing I try to do in a clean way without too many exceptions, hacks, workarounds, difficult to remember things, surprises. Bugs must be reported upstream so these hopefully one day get fixed so any workarounds do not need to be carried forever. Also this could be just a symptom of other things that break which then would only be learned through weird bugs being reported that are time-consuming, difficult to debug. Therefore I really want to understand this bug, at least get it reported.
(Some features might be derived from pbuilder which is internally uses.)
But not for independent re-builds by others. Packages already installed on the host operating system needed to build but undeclared under |
`--unset=TMPDIR` Setting `TMPDIR` breaks `pbuilder` (which gets called by `cowbuilder`). Installing `libpam-tmpdir` (security-feature) results in these variables being set. In other words: "`sudo apt install libpam-tmpdir` breaks `cowbuilder`" https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823651 Kicksecure/security-misc#147 https://forums.whonix.org/t/make-symlink-attacks-and-other-tmp-based-attacks-harder-or-impossible-using-libpam-tmpdir/8488
Found a workaround. |
|
Added. |
Weird.
|
The |
Fixing the apparmor profile fixed this issue. All hardening can cause impossible to predict issues. |
Another issue breaking the boot process, grml-debootstrap, grub installation: |
|
Potential issue: |
I am not quite sure if this would be the right way to add a dependency. But we should definetely depend on this package.
https://packages.debian.org/bookworm/libpam-tmpdir