Changeset fa028bb in rtems for testsuites/samples


Ignore:
Timestamp:
Nov 17, 2014, 10:55:27 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
e02d5dd9
Parents:
373ccbb9
git-author:
Sebastian Huber <sebastian.huber@…> (11/17/14 10:55:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/20/14 09:30:24)
Message:

shell: Do chroot() after successful login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/fileio/init.c

    r373ccbb9 rfa028bb  
    637637  }
    638638
     639  sc = mkdir("/chroot", 0777);
     640  if ( sc ) {
     641    printf( "mkdir /chroot: %s:\n", strerror(errno) );
     642  }
     643
    639644  printf(
    640645    "Creating /etc/passwd and group with three useable accounts\n"
    641     "root/pwd , test/pwd, rtems/NO PASSWORD"
     646    "root/pwd , test/pwd, rtems/NO PASSWORD, chroot/NO PASSWORD"
    642647  );
    643648
     
    650655    "test:$1$$oPu1Xt2Pw0ngIc7LyDHqu1:2:2:test account::/:/bin/sh\n"
    651656    "tty:*:3:3:tty owner::/:/bin/false\n"
     657    "chroot::4:2:chroot account::/chroot:/bin/sh\n"
    652658  );
    653659  writeFile(
Note: See TracChangeset for help on using the changeset viewer.