doc/wrappers: add release note, module doc: wrapped programs must be ELFs

This commit is contained in:
Paul Joubert
2026-10-23 19:18:35 +02:00
parent d1e022dd17
commit 590fbfb318
2 changed files with 8 additions and 2 deletions

View File

@@ -328,6 +328,8 @@
- The [bazarr](#opt-services.bazarr.enable) systemd service has been security hardened. If you are storing/accessing data in `/home`, you will need to adjust the `ProtectHome` option.
- For security reasons, wrapped programs in `security.wrappers` are now required to be ELF executables.
- `security.polkit.enablePkexecWrapper` has been introduced, making the `pkexec` setuid wrapper opt-in.
- `services.pghero` has been removed because the `pghero` package was unmaintained and thus dropped from Nixpkgs.

View File

@@ -60,7 +60,10 @@ let
};
options.source = lib.mkOption {
type = lib.types.path;
description = "The absolute path to the program to be wrapped.";
description = ''
The absolute path to the program to be wrapped.
This must be an ELF executable.
'';
};
options.program = lib.mkOption {
type = with lib.types; nullOr str;
@@ -234,7 +237,8 @@ in
This option effectively allows adding setuid/setgid bits, capabilities,
changing file ownership and permissions of a program without directly
modifying it. This works by creating a wrapper program in a directory
(not configurable), which is then added to the shell `PATH`.
(not configurable), which is then added to the shell `PATH`. Source
programs are required to be ELF executables.
'';
};