diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-18 07:35:30 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-20 10:30:26 +0100 |
commit | 7eada71e1b8e707d5b97d4d0cf7d2ca73013e403 (patch) | |
tree | 0595921de0173366d2bfb5331be1fb89ab1001ca /cpukit/libmisc/shell/shell.h | |
parent | shell: Inherit UID and GID if no login check (diff) | |
download | rtems-7eada71e1b8e707d5b97d4d0cf7d2ca73013e403.tar.bz2 |
shell: Add mode, UID and GID to shell commands
Use this information to determine if a command is visible to the current
user and if the current user is allowed to execute this command.
Diffstat (limited to 'cpukit/libmisc/shell/shell.h')
-rw-r--r-- | cpukit/libmisc/shell/shell.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h index c137378cbe..657df777e5 100644 --- a/cpukit/libmisc/shell/shell.h +++ b/cpukit/libmisc/shell/shell.h @@ -18,6 +18,7 @@ #define __RTEMS_SHELL_H__ #include <sys/types.h> +#include <sys/stat.h> #include <rtems.h> #include <stdio.h> #include <termios.h> @@ -83,6 +84,9 @@ struct rtems_shell_cmd_tt { rtems_shell_command_t command; rtems_shell_cmd_t *alias; rtems_shell_cmd_t *next; + mode_t mode; + uid_t uid; + gid_t gid; }; typedef struct { |