blob: 6d32548f188386bab5d8628650a058fdf0ea5d0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/networkd-dispatcher b/networkd-dispatcher
index ef877ce..8c341f2 100755
--- a/networkd-dispatcher
+++ b/networkd-dispatcher
@@ -171,6 +171,8 @@ def check_perms(path, mode=0o755, uid=0, gid=0):
if not os.path.exists(path):
raise FileNotFoundError
+ if re.search('^/nix/store/.*', str(path)):
+ return True
st = os.stat(path, follow_symlinks=False)
st_mode = st.st_mode & 0x00FFF
if st.st_uid == uid and st.st_gid == gid and st_mode == mode:
|