summaryrefslogtreecommitdiff
path: root/selinux/setfiles.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-10-09 23:04:16 +0200
committerDenys Vlasenko2016-10-09 23:04:16 +0200
commit3720a61daf2e03e42e34902c2636ce3e3d6b8485 (patch)
tree6208f33c94578dbfaf39b5b108f7745190bb2c3b /selinux/setfiles.c
parentec1ea16337623824e3e71bb5dc0e011259664d7e (diff)
downloadbusybox-3720a61daf2e03e42e34902c2636ce3e3d6b8485.zip
busybox-3720a61daf2e03e42e34902c2636ce3e3d6b8485.tar.gz
ifupdown: rewrite state file atomically
By user's request. Decided to not use fcntl(F_SETLKW) in lieu of problems with locking on networked filesystems. The existence of /var/run/ifstate.new is treated as a write lock. rename() provides atomicity. function old new delta ifupdown_main 1019 1122 +103 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'selinux/setfiles.c')
0 files changed, 0 insertions, 0 deletions