- , , , - ?
- , (
st_nlink > 1). - ?
- ACL?
- , ?
- ?
.
; realpath() , . .
, (), , , , , , ACL , , , - rename().
TOCTOU - , - . , , , . , . , , , . , , , .
, ACL , , - :
- , ;
- () , ;
- - , 1 2, - ;
- , ;
- - 4, , 2;
- - 5, ( , , ) ;
- .
, , , , , , ACLS, . - , 3 ( size(old) + size(new) + max(size(old), size(new))). , , - - SIGKILL - ( ).
SIGKILL, , . SIGSTOP ; , .
, , .
( ), , . ? , , - -, .
answer Nominal animal mentions Linux features. Since the question is labeled POSIX and not Linux, it is unclear whether they apply to you. However, if they can be used, then it CAP_LEASEsounds useful.
- How important is atomicity and accuracy?
- How important is POSIX compliance and Linux (or any other specific POSIX implementation)?