We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684cb70 commit 6f4b331Copy full SHA for 6f4b331
kernel/throne_tracker.c
@@ -11,6 +11,7 @@
11
#include "allowlist.h"
12
#include "klog.h" // IWYU pragma: keep
13
#include "ksu.h"
14
+#include "ksud.h"
15
#include "manager.h"
16
#include "throne_tracker.h"
17
#include "kernel_compat.h"
@@ -657,6 +658,10 @@ static void track_throne_function()
657
658
static int throne_tracker_thread(void *data)
659
{
660
pr_info("%s: pid: %d started\n", __func__, current->pid);
661
+ // for the kthread, we need to escape to root
662
+ // since it does not inherit the caller's context.
663
+ // this runs as root but without the capabilities, so call it with false
664
+ escape_to_root(false);
665
track_throne_function();
666
throne_thread = NULL;
667
smp_mb();
0 commit comments