Skip to content
Tcl Source Code Artifact [8d5bfdedf8]
Login

Artifact [8d5bfdedf8]

Artifact 8d5bfdedf854de7d2b0ab92263b0689f6df18ec3ddf5c0631464d9ac2978bdbc:

Ticket change [8d5bfdedf8] - Ticket [1613456fffffffff|1613456fff] <i>file readable lies with samba shared folder or file</i> status still Open with 3 other changes by sebres on 2018-03-22 16:52:29.
D 2018-03-22T16:52:29.081
J icomment So\sI\sthink\sI\sfixed\sit\snow\s(see\s[0bce348e6b],\sbranch\s[fix-1613456fff],\s\r\nover\s8.5\sbecause\sall\sversions\sare\saffected\sATM).\r\n\r\nThis\shas\sfast\sinplace\scheck\sof\ssecurity\spermissions\susing\sCreateFile\s(without\r\nmodification\sof\saccess\stime)\sand\slooks\slike\smore\sfaster\sand\sstable\ssolution\r\nwithout\sdirect\scheck\sof\ssecurity\spermissions\sby\soptimal\sterms;\r\n\r\nSo\sit\schecks\spositive/negative\scase\sof\sfile\sreadable,\swritable\sand\sexecutable.\r\n\r\nIn-between\sI\stried\sanother\sone\susing\sGetNamedSecurityInfo/GetEffectiveRightsFromAcl\spair\swith\sCURRENT_USER\strustee...\r\nIt\shad\sthe\ssame\sbehaviour\sand\swas\sstill\sslower\sas\scurrent\simplementation.\r\n\r\nAs\sbonus\sthe\scurrent\sperformance\sprogress:\r\n<pre>\r\n%\s\sfile\sreadable\s$readable_path\s;#\spositive\scase\r\n1\r\n<b\sstyle="color:red">-\s3882.55\sµs/#\s65\s#\s257.56\s#/sec\s252.366\snett-ms</b>\r\n<b\sstyle="color:green">+\s80.7825\sµs/#\s3094\s#\s12378.9\s#/sec\s249.941\snett-ms</b>\r\n</pre>\r\n<pre>\r\n%\s\sfile\sreadable\s$noreadright_path\s;#\snegative\scase\s(explicit\spermissions)\r\n0\r\n<b\sstyle="color:red">-\s5130.85\sµs/#\s195\s#\s194.90\s#/sec\s1000.515\snett-ms</b>\r\n<b\sstyle="color:green">+\s71.6337\sµs/#\s3489\s#\s13959.9\s#/sec\s249.930\snett-ms</b>\r\n</pre>\r\n\r\nAlmost\sthe\ssame\stime\sfor\swritable/executable,\sif\srunning\sinto\spermissions\s\r\ncheck\s(not\sreadonly/extentions\scheck,\sthere\sare\sstill\sfaster\sin\sboth\scases).\r\n\r\nIf\saccepted,\sI'll\smerge/reintegrate\sit\sin\sall\scurrent\sbranches\s>=\s8.6.
J login sebres
J mimetype text/x-fossil-wiki
K 1613456fffffffffffffffffffffffffffffffff
U sebres
Z 1a1068774cd4dc78321f8614cdd63a03