You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
kernel: throne_tracker, apk_sign: functionify d_lock spinlock check
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "apk_sign.h"
|
||||
#include "klog.h" // IWYU pragma: keep
|
||||
#include "kernel_compat.h"
|
||||
#include "throne_tracker.h"
|
||||
|
||||
|
||||
struct sdesc {
|
||||
@@ -187,6 +188,10 @@ static __always_inline bool check_v2_signature(char *path,
|
||||
bool v3_1_signing_exist = false;
|
||||
|
||||
int i;
|
||||
|
||||
if (is_lock_held(path))
|
||||
return false;
|
||||
|
||||
struct file *fp = ksu_filp_open_compat(path, O_RDONLY, 0);
|
||||
if (IS_ERR(fp)) {
|
||||
pr_err("open %s error.\n", path);
|
||||
|
||||
Reference in New Issue
Block a user