nuttx/include
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
..
arpa nxstyle fixes 2020-04-11 21:19:47 +01:00
cxx Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
net Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
netinet include/netinet/arp.h: Previous network changes broke the build test (#193) 2020-01-31 21:23:15 +01:00
netpacket netlink: add netlink multicast group define 2020-04-16 17:39:06 +08:00
nuttx sched/sched/sched_get_stackinfo.c: Add some security. 2020-05-04 01:13:11 +01:00
sys sched/sched: Add sched_get_stackinfo() 2020-05-03 23:33:44 +01:00
.gitignore Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
aio.h Fix nxstyle issue 2020-05-01 10:43:47 -03:00
alloca.h
assert.h
crc8.h Battery monitor support (#404) 2020-02-28 18:18:50 -06:00
crc16.h
crc32.h
crc64.h
ctype.h
debug.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
dirent.h libs/libc/dirent/: Added alphasort, scandir and DT_* defines 2019-07-31 07:53:14 -06:00
dlfcn.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
dsp.h Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
elf.h include/elf.h: Add EM_XTENSA 2020-03-16 07:54:49 -06:00
elf32.h Add missing Elf_Addr typedef 2020-04-30 08:46:21 -06:00
elf64.h Add missing Elf_Addr typedef 2020-04-30 08:46:21 -06:00
endian.h
errno.h errno: Rename get_errno_ptr to __errno 2020-05-03 12:15:54 -06:00
fcntl.h fcntl: add O_CLOEXEC/FD_CLOEXEC support 2020-02-20 08:20:38 -06:00
fixedmath.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
grp.h libc/grp: Added stubbed implementations of getgrgid, getgrgid_r, getgrnam, getgrnam_r, and initgroups. These functions are essentially stubs pretending that NuttX supported groups and that the only configured group in the system was 'root' with gid 0. The intend is not to provide meaningful new features, but to ease porting of foreign source code to NuttX. 2019-08-03 08:23:04 -06:00
hex2bin.h Squashed commit of the following: 2019-06-26 14:37:19 -06:00
inttypes.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
libgen.h
limits.h
locale.h
lzf.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
mqueue.h
netdb.h libc/netdb: Add hostent_s to avoid the change of hostent 2020-04-01 16:09:28 -06:00
nxflat.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
poll.h drivers/serial/serial.c: Limit the number of times that the poll semaphore is incrmented. 2019-06-13 16:23:04 -06:00
pthread.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pwd.h libc/pwd: Added stubbed implementations 2019-08-04 07:18:58 -06:00
queue.h
sched.h Run all .c and .h files in PR235 through tools/nxstyle. 2020-02-09 07:34:24 -06:00
semaphore.h
signal.h nxstyle fixes 2020-04-11 21:19:47 +01:00
spawn.h Squashed commit of the following: 2019-04-29 14:52:05 -06:00
stdbool.h
stddef.h
stdint.h fix long line comment 2020-04-02 22:08:41 +08:00
stdio.h Fix nxstyle issue 2020-05-01 10:43:47 -03:00
stdlib.h nxstyle fixes 2020-04-11 21:19:47 +01:00
stdnoreturn.h
string.h libs/libc/string/Make.defs: Need to include build support for files needed when CHAR_BIT != 8. 2019-11-04 16:02:50 -06:00
strings.h Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
syscall.h
syslog.h Run codespell -w against all files 2020-02-22 14:45:07 -06:00
termios.h
threads.h
time.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
unistd.h include/sys/time.h, libs/libc/unistd, sched/timer: Implement alarm(), setitimer() and getitimer() APIs. 2019-11-13 08:10:16 -06:00
wchar.h
wctype.h