Skip to content

Commit

Permalink
grsecurity: enable support for setting pax flags via xattrs
Browse files Browse the repository at this point in the history
While useless for binaries within the Nix store, user xattrs are a convenient
alternative for setting PaX flags to executables outside of the store.

To use disable secure memory protections for a non-store file foo, do
  $ setfattr -n user.pax.flags -v em foo
  • Loading branch information
joachifm committed Jul 20, 2016
1 parent 3393230 commit c93ffb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/kernel/grsecurity-nixos-config.nix
Expand Up @@ -14,7 +14,7 @@ GRKERNSEC_CONFIG_VIRT_KVM y
GRKERNSEC_CONFIG_PRIORITY_SECURITY y
PAX_PT_PAX_FLAGS y
PAX_XATTR_PAX_FLAGS n
PAX_XATTR_PAX_FLAGS y
PAX_EI_PAX n
GRKERNSEC_PROC_GID 0
Expand Down

0 comments on commit c93ffb9

Please sign in to comment.