]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
datamodel/types/files.py: improve file permission check
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 16 Jul 2025 15:58:20 +0000 (17:58 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 16 Jul 2025 15:58:36 +0000 (17:58 +0200)
commitda67d3b4e2cfabb019de03d85b7f5943cf8b92e8
tree96ce07c02f61e0c3b5e89d1cc0da06884fbd696f
parent4927e66c6c9fdf6f28a6f8f3950777f31d636a69
datamodel/types/files.py: improve file permission check

In particular with ACLs this could have prevented resolver starting
even if the permissions were OK.  os.access() should be accurate
at least when running from manager (not from kresctl).
python/knot_resolver/datamodel/types/files.py