Changeset 62d03a1 in rtems-docs
- Timestamp:
- 01/16/16 20:54:30 (8 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 75a59fd
- Parents:
- 8ca13ed
- git-author:
- Chris Johns <chrisj@…> (01/16/16 20:54:30)
- git-committer:
- Amar Takhar <verm@…> (05/03/16 00:51:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shell/configuration_and_init.rst
r8ca13ed r62d03a1 109 109 #include <rtems/shellconfig.h> 110 110 111 Notice in the above example, that the user wrote the *main* for their command111 Notice in the above example, that the user wrote the *main* for their command 112 112 (e.g. ``main_usercmd``) which looks much like any other ``main()``. They then 113 113 defined a ``rtems_shell_cmd_t`` structure named ``Shell_USERCMD_Command`` which … … 322 322 Shell attached to the specified ``devname``. 323 323 324 .. note:: 325 326 327 328 329 330 There is one POSIX key necessary for all shell instances together and one 331 POSIX key value pair per instance. You should make sure that your RTEMS 332 configurationaccounts for these resources.324 **NOTES:** 325 326 This method invokes the ``rtems_task_create`` and ``rtems_task_start`` 327 directives and as such may return any status code that those directives may 328 return. 329 330 There is one POSIX key necessary for all shell instances together and one POSIX 331 key value pair per instance. You should make sure that your RTEMS configuration 332 accounts for these resources. 333 333 334 334 rtems_shell_login_check - Default login check handler … … 343 343 344 344 bool rtems_shell_login_check( 345 const char \*user,346 const char \*passphrase345 const char *user, 346 const char *passphrase 347 347 ); 348 348 … … 357 357 user. 358 358 359 .. note:: 360 361 As a side-effect if the specified passphrase is valid for the specified 362 user, this function: 363 364 - performs a filesystem change root operation to the directory of the 365 specified user if the directory path is non-empty, 366 367 - changes the owner of the current shell device to the UID of the specified 368 user, 369 370 - sets the real and effective UID of the current user environment to the 371 UID of the specified user, 372 373 - sets the real and effective GID of the current user environment to the 374 GID of the specified user, and 375 376 - sets the supplementary group IDs of the current user environment to the 377 supplementary group IDs of the specified user. 378 379 In case the filesystem change root operation fails, then the environment 380 setup is aborted and ``false`` is returned. 381 359 **NOTES:** 360 361 As a side-effect if the specified passphrase is valid for the specified user, 362 this function: 363 364 - performs a filesystem change root operation to the directory of the specified 365 user if the directory path is non-empty, 366 367 - changes the owner of the current shell device to the UID of the specified 368 user, 369 370 - sets the real and effective UID of the current user environment to the UID of 371 the specified user, 372 373 - sets the real and effective GID of the current user environment to the GID of 374 the specified user, and 375 376 - sets the supplementary group IDs of the current user environment to the 377 supplementary group IDs of the specified user. 378 379 In case the filesystem change root operation fails, then the environment setup 380 is aborted and ``false`` is returned.
Note: See TracChangeset
for help on using the changeset viewer.