Ignore:
Timestamp:
Nov 18, 2014, 6:35:30 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
478455e0
Parents:
ffd5285
git-author:
Sebastian Huber <sebastian.huber@…> (11/18/14 06:35:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/20/14 09:30:26)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_alias.c

    rffd5285 r7eada71  
    3535
    3636rtems_shell_cmd_t rtems_shell_ALIAS_Command = {
    37   "alias",                                /* name */
    38   "alias old new",                        /* usage */
    39   "misc",                                 /* topic */
    40   rtems_shell_rtems_main_alias,           /* command */
    41   NULL,                                   /* alias */
    42   NULL                                    /* next */
     37  .name = "alias",
     38  .usage = "alias old new",
     39  .topic = "misc",
     40  .command = rtems_shell_rtems_main_alias,
     41  .mode = S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH
    4342};
Note: See TracChangeset for help on using the changeset viewer.