Skip to content

Commit

Permalink
fix: disable apparmor & hardening profile to avoid neovim being killed
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Sep 3, 2024
1 parent 5f78488 commit d654f09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ result/
.DS_Store
.pre-commit-config.yaml
logs/
core*
1 change: 1 addition & 0 deletions hardening/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- NixOS Profile:
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/profiles/hardened.nix
- Apparmor: [roddhjav/apparmor.d)](https://github.com/roddhjav/apparmor.d)
- https://gitlab.com/apparmor/apparmor/-/wikis/Documentation
- AppArmor.d is a set of over 1500 AppArmor profiles whose aim is to confine most Linux based
applications and processes.
- Nix Package:
Expand Down
6 changes: 0 additions & 6 deletions hardening/profiles/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,4 @@
# disable coredump that could be exploited later
# and also slow down the system when something crash
systemd.coredump.enable = false;

# required to run chromium
security.chromiumSuidSandbox.enable = true;

# enable firejail
programs.firejail.enable = true;
}
4 changes: 2 additions & 2 deletions outputs/x86_64-linux/src/idols-ai.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
# host specific
"hosts/idols-${name}"
# nixos hardening
"hardening/profiles/default.nix"
# "hardening/profiles/default.nix"
"hardening/nixpaks"
"hardening/apparmor"
# "hardening/apparmor"
];
home-modules = map mylib.relativeToRoot [
# common
Expand Down

0 comments on commit d654f09

Please sign in to comment.