Skip to content
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

cnijfilter_2_80: disable fortify hardening #276300

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

symphorien
Copy link
Member

the cups filter crashes with hardening

Fixes #276125

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@symphorien
Copy link
Member Author

This has been successfully tested by @ipoupaille in #276125 (comment), I will merge this in a few days.

@symphorien
Copy link
Member Author

@ipoupaille is 23.11 affected or only nixos-unstable ?

@ipoupaille
Copy link

I produced the problem on nixos-23.11. I have not tested on unstable. I have made the last test pinning the package version

@symphorien
Copy link
Member Author

I added the backport to 23.11 tag, then

the cups filter crashes with hardening

Fixes NixOS#276125
@risicle
Copy link
Contributor

risicle commented Dec 27, 2023

I suggest mentioning this to upstream as it signifies a bug (possibly quite a serious one with security implications).

@@ -100,6 +100,10 @@ stdenv.mkDerivation {
them, it undoes the --set-rpath. this prevents that. */
dontPatchELF = true;

# fortify hardening makes the filter crash
# https://github.com/NixOS/nixpkgs/issues/276125
hardeningDisable = [ "fortify" ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently we can get away with just disabling fortify3

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, I did not know about this one.

@symphorien
Copy link
Member Author

About upstream, this is a half-proprietary printer driver last updated in 2007 (version bumps drop support for old printers so we have to keep old versions). I'm not optimistic enough to spend time over contacting upstream.

@risicle
Copy link
Contributor

risicle commented Dec 27, 2023

😿

@symphorien symphorien merged commit 6fe94ff into NixOS:master Dec 27, 2023
21 of 22 checks passed
@symphorien symphorien deleted the issue_276125 branch December 27, 2023 21:13
Copy link
Contributor

Successfully created backport PR for release-23.11:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cnijfilter_2_80 : filter crash
3 participants