Changeset 7eada71 in rtems for cpukit/libmisc/shell/main_time.c


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_time.c

    rffd5285 r7eada71  
    7676
    7777rtems_shell_cmd_t rtems_shell_TIME_Command = {
    78   "time",                                     /* name */
    79   "time command [arguments...]",              /* usage */
    80   "misc",                                     /* topic */
    81   rtems_shell_main_time,                      /* command */
    82   NULL,                                       /* alias */
    83   NULL                                        /* next */
     78  .name = "time",
     79  .usage = "time command [arguments...]",
     80  .topic = "misc",
     81  .command = rtems_shell_main_time,
     82  .mode = S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH
    8483};
Note: See TracChangeset for help on using the changeset viewer.