nuttx/sched
Gregory Nutt 252f58f6e9 sched/sched/sched_get_stackinfo.c: Add some security.
The sched_get_stackinfo() interface was just added.  However, it occurs to me that it is a dangerous feature and could lead to security problems.  In FLAT and PROTECTED modes, if you get access to any other threads stack, you could do harm.

This commit adds some level of security.  Basically, it implements these rules:

1. Any thread may query its own stack,
2. A kernel thread may query the stack of any other thread
3. Application threads, however, may query only the stacks of threads within the same task group, i.e., the main thread and any of the child pthreads created with the main thread as a parent or grandparent or great-grandpart ...
2020-05-04 01:13:11 +01:00
..
clock Make compare_timespec public so timer driver could reuse it 2020-02-15 07:17:07 -06:00
environ global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
errno errno: Rename get_errno_ptr to __errno 2020-05-03 12:15:54 -06:00
group Fix nxstyle issue 2020-05-01 10:43:47 -03:00
init Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
irq sched/: Fix some new coding standard issues. 2020-03-09 17:31:49 +01:00
module modsym: Fix a printf format for berr 2020-04-13 16:20:09 +01:00
mqueue Fix some macOS sim warnings. 2020-04-11 22:27:42 +01:00
paging sched/paging: Fix error: variable 'result' set but not used 2020-04-29 21:40:29 -06:00
pthread sched/sched: Add sched_get_stackinfo() 2020-05-03 23:33:44 +01:00
sched sched/sched/sched_get_stackinfo.c: Add some security. 2020-05-04 01:13:11 +01:00
semaphore Remove type casting to wdentry_t (sched/) 2020-04-07 06:23:15 -06:00
signal Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
task errno: Rename get_errno_ptr to __errno 2020-05-03 12:15:54 -06:00
timer Update timer_gettime.c 2020-04-24 19:49:29 +08:00
wdog global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
wqueue Use NuttX's signal set functions inside the OS. 2020-04-29 16:40:27 -06:00
.gitignore Revert "Don't generate .depend anymore" 2020-03-22 23:07:29 -05:00
Kconfig Kconfig: Refine BUILD_FLAT, BUILD_PROTECTED and BUILD_KERNEL usage 2020-04-29 12:16:18 -06:00
Makefile Revert "Don't generate .depend anymore" 2020-03-22 23:07:29 -05:00