git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "security-wrapper: Don't remove the old paths yet as that can create migration pain"

This reverts commit 4c751ced376e0042ddd4f2aa8bd40754b9ea8926. This does not fix the issue as /run is now mounted with nosuid.

commit45f486f096bb3f3fe030571d2bcfd561f921b0cc authorRobin Gloster <mail@glob.in> dateThu 23 Mar 2017, 13:29 (10 years ago) parentf9add54
1 file changed+19
nixos/modules/security/wrappers/default.nix+19
nixos/modules/security/wrappers/default.nix+19
@@ -177,6 +177,25 @@ in
177177 # programs to be wrapped.
178178 WRAPPER_PATH=${config.system.path}/bin:${config.system.path}/sbin
179179
180+ # Remove the old /var/setuid-wrappers path from the system...
181+ #
182+ # TODO: this is only necessary for ugprades 16.09 => 17.x;
183+ # this conditional removal block needs to be removed after
184+ # the release.
185+ if [ -d /var/setuid-wrappers ]; then
186+ rm -rf /var/setuid-wrappers
187+ fi
188+
189+ # Remove the old /run/setuid-wrappers-dir path from the
190+ # system as well...
191+ #
192+ # TODO: this is only necessary for ugprades 16.09 => 17.x;
193+ # this conditional removal block needs to be removed after
194+ # the release.
195+ if [ -d /run/setuid-wrapper-dirs ]; then
196+ rm -rf /run/setuid-wrapper-dirs
197+ fi
198+
180199 # We want to place the tmpdirs for the wrappers to the parent dir.
181200 wrapperDir=$(mktemp --directory --tmpdir="${parentWrapperDir}" wrappers.XXXXXXXXXX)
182201 chmod a+rx $wrapperDir