]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
datamodel: types: files: improvements
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 23 Sep 2024 15:57:26 +0000 (17:57 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 30 Sep 2024 09:35:56 +0000 (11:35 +0200)
commit6eaec885515fb62a05a8fc736c9beddd0e39301e
tree4ab64c4907236238302655abbdbd62e52f262e38
parenteed008a0bf43eece23b86e502bee183db42033fa
datamodel: types: files: improvements

- compare intended uid with current working uid
- check permissions for current user and group
- use os.getuid() and pwd.getpwuid() instead of os.getlogin() #919
python/knot_resolver/datamodel/types/files.py