summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2016-09-01 20:57:51 +0200
committerGitHub <noreply@github.com>2016-09-01 20:57:51 +0200
commita6670c1a0b8cda8235296900cff950f39f60cf4f (patch)
treeb76ac329a908e68000627d21334bcecbf20f619a /pkgs/development/python-modules/rangehttpserver
parent78cd9f8ebc36a387fc75ebb03317707a283f43a4 (diff)
Fixes #18124: atomically replace /var/setuid-wrappers/ (#18186)
Before this commit updating /var/setuid-wrappers/ folder introduced a small window where NixOS activation scripts could be terminated and resulted into empty /var/setuid-wrappers/ folder. That's very unfortunate because one might lose sudo binary. Instead we use two atomic operations mv and ln (as described in https://axialcorps.com/2013/07/03/atomically-replacing-files-and-directories/) to achieve atomicity. Since /var/setuid-wrappers is not a directory anymore, tmpfs mountpoints were removed in installation scripts and in boot process. Tested: - upgrade /var/setuid-wrappers/ from folder to a symlink - make sure /run/setuid-wrappers-dirs/ legacy symlink is really deleted
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions