summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/internal.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-18 07:35:30 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-20 10:30:26 +0100
commit7eada71e1b8e707d5b97d4d0cf7d2ca73013e403 (patch)
tree0595921de0173366d2bfb5331be1fb89ab1001ca /cpukit/libmisc/shell/internal.h
parentshell: Inherit UID and GID if no login check (diff)
downloadrtems-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/internal.h')
-rw-r--r--cpukit/libmisc/shell/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/internal.h b/cpukit/libmisc/shell/internal.h
index e6d0ef1de4..0187e5f013 100644
--- a/cpukit/libmisc/shell/internal.h
+++ b/cpukit/libmisc/shell/internal.h
@@ -25,6 +25,8 @@ extern rtems_shell_topic_t * rtems_shell_first_topic;
rtems_shell_topic_t * rtems_shell_lookup_topic(const char *topic);
+bool rtems_shell_can_see_cmd(const rtems_shell_cmd_t *shell_cmd);
+
int rtems_shell_execute_cmd(const char *cmd, int argc, char *argv[]);
extern void rtems_shell_register_monitor_commands(void);