summaryrefslogtreecommitdiff
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorGeorg Veichtlbauer <georg@vware.at>2023-05-05 22:54:31 +0200
committerDavide Garberi <dade.garberi@gmail.com>2023-05-22 19:29:39 +0200
commit7ef1b1f38a94bf54b215c4c56ea8d62ec607f73b (patch)
tree5ccd47727a21e268b014a44ce64d575ddbc03d5f /include/linux/sched.h
parentb4790673989b7d98dfeebf7f544104c4a0efd7b7 (diff)
Revert "kernel: Only expose su when daemon is running"lineage-19.1
This patch is no longer necessary because we no longer ship su add-ons, which is this patch initially designed for. Now it causes another issue which breaks custom root solution such as Magisk, as Magisk switches worker tmpfs dir to RO instead of RW for safety reasons and happens to satisfy MS_RDONLY check for su file, resulting in su file totally inaccessible. This reverts commit 08ff8a2e58eb226015fa68d577121137a7e0953f. Change-Id: If25a9ef7e64c79412948f4619e08faaedb18aa13
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index c00e7ccd1e89..70c1f7f9e4fa 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -63,12 +63,6 @@ struct sched_param {
#include <asm/processor.h>
-int su_instances(void);
-bool su_running(void);
-bool su_visible(void);
-void su_exec(void);
-void su_exit(void);
-
#define SCHED_ATTR_SIZE_VER0 48 /* sizeof first published struct */
/*
@@ -2413,8 +2407,6 @@ extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut,
#define PF_FREEZER_SKIP 0x40000000 /* Freezer should not count it as freezable */
#define PF_SUSPEND_TASK 0x80000000 /* this thread called freeze_processes and should not be frozen */
-#define PF_SU 0x10000000 /* task is su */
-
/*
* Only the _current_ task can read/write to tsk->flags, but other
* tasks can access tsk->flags in readonly mode for example