nixos/wrappers: require argc to be at least one#156822
nixos/wrappers: require argc to be at least one#156822lheckemann merged 2 commits intoNixOS:masterfrom
Conversation
cc0364a to
2b214f0
Compare
|
@ofborg test sudo |
|
@xfix: Does the assertion work in release builds? It very well might, but it seems to me that undefining
|
|
Well, the program was using EDIT: Oh, I see what you mean. I will be checking |
2b214f0 to
79fdb10
Compare
|
Created new assert macro that doesn't look at |
79fdb10 to
284eb98
Compare
|
@ofborg test sudo |
284eb98 to
3cbdcb5
Compare
C's assert macro only works when NDEBUG is undefined. Previously NDEBUG was undefined incorrectly which meant that the assert macros in wrapper.c did not work.
setuid applications were exploited in the past with an empty argv, such as pkexec using CVE-2021-4034.
3cbdcb5 to
2a6a3d2
Compare
|
Successfully created backport PR #173287 for |
setuid applications were exploited in the past with an empty argc, such as pkexec using CVE-2021-4034. In order to avoid the risk of such vulnerabilities in the future, wrapper was updated to prevent calling setuid like this.
See #156750.
Motivation for this change
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes