Overview
| Artifact ID: | 8d5bfdedf854de7d2b0ab92263b0689f6df18ec3ddf5c0631464d9ac2978bdbc |
|---|---|
| Ticket: | 1613456fffffffffffffffffffffffffffffffff
file readable lies with samba shared folder or file |
| User & Date: | sebres on 2018-03-22 16:52:29 |
Changes
- icomment:
So I think I fixed it now (see [0bce348e6b], branch [fix-1613456fff], over 8.5 because all versions are affected ATM). This has fast inplace check of security permissions using CreateFile (without modification of access time) and looks like more faster and stable solution without direct check of security permissions by optimal terms; So it checks positive/negative case of file readable, writable and executable. In-between I tried another one using GetNamedSecurityInfo/GetEffectiveRightsFromAcl pair with CURRENT_USER trustee... It had the same behaviour and was still slower as current implementation. As bonus the current performance progress: <pre> % file readable $readable_path ;# positive case 1 <b style="color:red">- 3882.55 µs/# 65 # 257.56 #/sec 252.366 nett-ms</b> <b style="color:green">+ 80.7825 µs/# 3094 # 12378.9 #/sec 249.941 nett-ms</b> </pre> <pre> % file readable $noreadright_path ;# negative case (explicit permissions) 0 <b style="color:red">- 5130.85 µs/# 195 # 194.90 #/sec 1000.515 nett-ms</b> <b style="color:green">+ 71.6337 µs/# 3489 # 13959.9 #/sec 249.930 nett-ms</b> </pre> Almost the same time for writable/executable, if running into permissions check (not readonly/extentions check, there are still faster in both cases). If accepted, I'll merge/reintegrate it in all current branches >= 8.6.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"