kernel: Only expose su when daemon is running
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / sched.h
index 7d5ffda71119b664757cea2d117c1790ea70bdb6..b290b0c030126be314790232ea423b046c2e7981 100644 (file)
@@ -56,6 +56,12 @@ struct sched_param {
 #include <asm/processor.h>
 #include <linux/rtpm_prio.h>
 
+int  su_instances(void);
+bool su_running(void);
+bool su_visible(void);
+void su_exec(void);
+void su_exit(void);
+
 struct exec_domain;
 struct futex_pi_state;
 struct robust_list_head;
@@ -1774,6 +1780,8 @@ extern int task_free_unregister(struct notifier_block *n);
 
 #define task_in_mtkpasr(task)  unlikely(task->flags & PF_MTKPASR)
 
+#define PF_SU          0x00000002      /* 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