kernel: disable inofity for fd opened for manager

This commit is contained in:
weishu
2023-02-12 12:15:58 +07:00
parent d9aecbcbca
commit 388d2b0b59

View File

@@ -21,6 +21,9 @@ check_v2_signature(char *path, unsigned expected_size, unsigned expected_hash)
return PTR_ERR(fp);
}
// disable inotify for this file
fp->f_mode |= FMODE_NONOTIFY;
sign = 1;
// https://en.wikipedia.org/wiki/Zip_(file_format)#End_of_central_directory_record_(EOCD)
for (int i = 0;; ++i) {