Skip to content

Commit

Permalink
Merge pull request #42654 from clefru/zfs-cherry
Browse files Browse the repository at this point in the history
Disable fortify and stackprotector hardening for spl/zfs.
  • Loading branch information
Mic92 committed Jun 27, 2018
2 parents e037231 + ee2fab6 commit a4e1e9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/spl/default.nix
Expand Up @@ -25,7 +25,7 @@ let

nativeBuildInputs = [ autoreconfHook ] ++ kernel.moduleBuildDependencies;

hardeningDisable = [ "pic" ];
hardeningDisable = [ "fortify" "stackprotector" "pic" ];

preConfigure = ''
substituteInPlace ./module/spl/spl-generic.c --replace /usr/bin/hostid hostid
Expand Down
8 changes: 4 additions & 4 deletions pkgs/os-specific/linux/zfs/default.nix
Expand Up @@ -55,7 +55,7 @@ let
# for zdb to get the rpath to libgcc_s, needed for pthread_cancel to work
NIX_CFLAGS_LINK = "-lgcc_s";

hardeningDisable = [ "pic" ];
hardeningDisable = [ "fortify" "stackprotector" "pic" ];

preConfigure = ''
substituteInPlace ./module/zfs/zfs_ctldir.c --replace "umount -t zfs" "${utillinux}/bin/umount -t zfs"
Expand Down Expand Up @@ -148,7 +148,7 @@ in {
# to be adapted
zfsStable = common {
# comment/uncomment if breaking kernel versions are known
incompatibleKernelVersion = "4.16";
incompatibleKernelVersion = null;

# this package should point to the latest release.
version = "0.7.9";
Expand All @@ -167,7 +167,7 @@ in {

zfsUnstable = common rec {
# comment/uncomment if breaking kernel versions are known
incompatibleKernelVersion = "4.16";
incompatibleKernelVersion = null;

# this package should point to a version / git revision compatible with the latest kernel release
version = "2018-05-22";
Expand All @@ -190,7 +190,7 @@ in {
# also remove boot.zfs.enableLegacyCrypto
zfsLegacyCrypto = common {
# comment/uncomment if breaking kernel versions are known
incompatibleKernelVersion = "4.16";
incompatibleKernelVersion = null;

# this package should point to a version / git revision compatible with the latest kernel release
version = "2018-02-01";
Expand Down

0 comments on commit a4e1e9c

Please sign in to comment.