IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Administration système Discussion :

ssh "commande" et chroot


Sujet :

Administration système

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Inactif  


    Homme Profil pro
    Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Inscrit en
    Décembre 2011
    Messages
    9 026
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Loire (Rhône Alpes)

    Informations professionnelles :
    Activité : Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Secteur : Enseignement

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9 026
    Par défaut ssh "commande" et chroot
    Bonjour,

    Je possède un serveur où j'ai chrooté un utilisateur "git".

    Je peux me connecter en ssh git@server sans problèmes mais dès que je tente de faire :
    - git clone "git@server:depot" ;
    - scp git@server:/file ;
    - ssh git@server commande (ex : ls, echo "toto") ;

    Le serveur et le client restent en attentes d'E/S.

    Les traces du serveurs montrent à l’antépénultième ligne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    3690  _llseek(0, 0, 0xbfc12200, SEEK_CUR) = -1 ESPIPE (Illegal seek)
    Voici la trace complète du serveur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    3690  execve("/bin/bash", ["/bin/bash"], [/* 21 vars */]) = 0
    3690  brk(0)                            = 0x86d2000
    3690  fcntl64(0, F_GETFD)               = 0
    3690  fcntl64(1, F_GETFD)               = 0
    3690  fcntl64(2, F_GETFD)               = 0
    3690  access("/etc/suid-debug", F_OK)   = -1 ENOENT (No such file or directory)
    3690  access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    3690  mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77cf000
    3690  access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    3690  open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls/i686/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls/i686/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls/i686/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls/i686", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/tls/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/tls", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/i686/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/i686/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/i686/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/i686", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i386-linux-gnu/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i386-linux-gnu", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls/i686/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls/i686/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls/i686/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls/i686", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/tls/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/tls", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/i686/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/i686/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/i686/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/i686", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/i386-linux-gnu/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/usr/lib/i386-linux-gnu", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls/i686/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls/i686/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls/i686/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls/i686", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/tls/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/tls", 0xbfc11e50)    = -1 ENOENT (No such file or directory)
    3690  open("/lib/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i686/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i686/sse2", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i686/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/i686", 0xbfc11e50)   = -1 ENOENT (No such file or directory)
    3690  open("/lib/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/sse2/cmov", 0xbfc11e50) = -1 ENOENT (No such file or directory)
    3690  open("/lib/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/sse2", 0xbfc11e50)   = -1 ENOENT (No such file or directory)
    3690  open("/lib/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  stat64("/lib/cmov", 0xbfc11e50)   = -1 ENOENT (No such file or directory)
    3690  open("/lib/libtinfo.so.5", O_RDONLY) = 3
    3690  read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300d\0\0004\0\0\0"..., 512) = 512
    3690  fstat64(3, {st_mode=S_IFREG|0644, st_size=125424, ...}) = 0
    3690  mmap2(NULL, 129100, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77af000
    3690  mmap2(0xb77cc000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c) = 0xb77cc000
    3690  close(3)                          = 0
    3690  open("/lib/libdl.so.2", O_RDONLY) = 3
    3690  read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"..., 512) = 512
    3690  fstat64(3, {st_mode=S_IFREG|0644, st_size=9844, ...}) = 0
    3690  mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77ab000
    3690  mmap2(0xb77ad000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb77ad000
    3690  close(3)                          = 0
    3690  open("/lib/libc.so.6", O_RDONLY)  = 3
    3690  read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240o\1\0004\0\0\0"..., 512) = 512
    3690  fstat64(3, {st_mode=S_IFREG|0755, st_size=1437864, ...}) = 0
    3690  mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77aa000
    3690  mmap2(NULL, 1452408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7647000
    3690  mprotect(0xb77a3000, 4096, PROT_NONE) = 0
    3690  mmap2(0xb77a4000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xb77a4000
    3690  mmap2(0xb77a7000, 10616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77a7000
    3690  close(3)                          = 0
    3690  mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7646000
    3690  set_thread_area({entry_number:-1 -> 6, base_addr:0xb76466c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    3690  mprotect(0xb77a4000, 8192, PROT_READ) = 0
    3690  mprotect(0xb77ad000, 4096, PROT_READ) = 0
    3690  mprotect(0xb77cc000, 8192, PROT_READ) = 0
    3690  mprotect(0x8129000, 4096, PROT_READ) = 0
    3690  mprotect(0xb77ee000, 4096, PROT_READ) = 0
    3690  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    3690  open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    3690  ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfc1213c) = -1 EINVAL (Invalid argument)
    3690  brk(0)                            = 0x86d2000
    3690  brk(0x86d3000)                    = 0x86d3000
    3690  open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    3690  brk(0x86d4000)                    = 0x86d4000
    3690  open("/usr/share/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/locale/fr_FR.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/locale/fr_FR.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/locale/fr_FR/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/locale/fr.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/locale/fr.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  open("/usr/lib/locale/fr/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    3690  getuid32()                        = 106
    3690  getgid32()                        = 108
    3690  geteuid32()                       = 0
    3690  getegid32()                       = 108
    3690  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    3690  time(NULL)                        = 1380958891
    3690  setuid32(106)                     = 0
    3690  setgid32(108)                     = 0
    3690  ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfc12258) = -1 EINVAL (Invalid argument)
    3690  brk(0x86d5000)                    = 0x86d5000
    3690  open("/proc/meminfo", O_RDONLY)   = -1 ENOENT (No such file or directory)
    3690  brk(0x86d6000)                    = 0x86d6000
    3690  rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
    3690  rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {SIG_DFL, [], SA_RESTART}, 8) = 0
    3690  rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    3690  rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    3690  rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    3690  rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    3690  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    3690  rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    3690  uname({sys="Linux", node="NASServer", ...}) = 0
    3690  brk(0x86d7000)                    = 0x86d7000
    3690  stat64("/chroot/git/home/git", 0xbfc12050) = -1 ENOENT (No such file or directory)
    3690  brk(0x86d9000)                    = 0x86d9000
    3690  getcwd("/", 4096)                 = 2
    3690  getpid()                          = 3690
    3690  getppid()                         = 3689
    3690  gettimeofday({1380958891, 823854}, NULL) = 0
    3690  brk(0x86da000)                    = 0x86da000
    3690  getpgrp()                         = 3688
    3690  rt_sigaction(SIGCHLD, {0x808a220, [], SA_RESTART}, {SIG_DFL, [], SA_RESTART}, 8) = 0
    3690  getrlimit(RLIMIT_NPROC, {rlim_cur=31508, rlim_max=31508}) = 0
    3690  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    3690  fcntl64(0, F_GETFL)               = 0 (flags O_RDONLY)
    3690  fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
    3690  _llseek(0, 0, 0xbfc12200, SEEK_CUR) = -1 ESPIPE (Illegal seek)
    3690  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    3690  read(0,
    Voici le bash lancé à la connexion de l'utilisateur git :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    #!/bin/bash
    /usr/sbin/chroot_suid /chroot/git strace -f -o/trace /bin/bash
    #exec -c /usr/sbin/chroot_suid /chroot/git  /bin/bash
    Est-ce que vous auriez une petite idée ?
    Je ne trouve pas beaucoup de littérature à ce sujet

  2. #2
    Inactif  


    Homme Profil pro
    Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Inscrit en
    Décembre 2011
    Messages
    9 026
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Loire (Rhône Alpes)

    Informations professionnelles :
    Activité : Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Secteur : Enseignement

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9 026
    Par défaut
    Bonjour,

    J'ai trouvé ceci :
    When you run a command on a remote host, by default ssh will not allocate a pseudoterminal.
    Donc si je comprend bien :
    - je fais un ssh user@server command ;
    - ssh lance mon script chroot_bash ;
    - ssh n'alloue pas de "pseudoterminal" d'où une erreur ESPIPE alors qu'en ssh "normal" tout va bien (?);

    Je vais essayer de bidouiller avec des ssh -t/-T user@server command à l'intérieur et à l'extérieur de mon chroot pour identifier un peu mieux le problème.

    EDIT : le résultat est assez bizarre

    git : utilisateur chrooté
    neckara : utilisateur non-chrooté
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    ssh -T neckara@last-dungeon.fr echo "toto"
    toto
     
    neckara@neckUbu:~$ ssh -t neckara@last-dungeon.fr echo "toto"
    toto
    Connection to last-dungeon.fr closed.
     
    neckara@neckUbu:~$ ssh -t git@last-dungeon.fr echo "e"
    bash-4.2$
     
    ssh -t git@last-dungeon.fr cd /home
    bash-4.2$ echo $PWD
    /
    ssh -t ouvre un shell pour git, ce n'est pas normal

    La trace pour ssh -t git@last-dungeon echo "test"
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    16505 execve("/bin/bash", ["/bin/bash"], [/* 23 vars */]) = 0
    16505 brk(0)                            = 0x9124000
    16505 fcntl64(0, F_GETFD)               = 0
    16505 fcntl64(1, F_GETFD)               = 0
    16505 fcntl64(2, F_GETFD)               = 0
    16505 access("/etc/suid-debug", F_OK)   = -1 ENOENT (No such file or directory)
    16505 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    16505 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7749000
    16505 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    16505 open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls/i686/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls/i686/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls/i686/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls/i686", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/tls/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/tls", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/i686/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/i686/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/i686/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/i686", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i386-linux-gnu/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i386-linux-gnu", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls/i686/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls/i686/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls/i686/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls/i686", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/tls/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/tls", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/i686/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/i686/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/i686/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/i686", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i386-linux-gnu/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i386-linux-gnu", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls/i686/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls/i686/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls/i686/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls/i686", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/tls/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/tls", 0xbf8c6980)    = -1 ENOENT (No such file or directory)
    16505 open("/lib/i686/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i686/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i686/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i686/sse2", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i686/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i686/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/i686/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/i686", 0xbf8c6980)   = -1 ENOENT (No such file or directory)
    16505 open("/lib/sse2/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/sse2/cmov", 0xbf8c6980) = -1 ENOENT (No such file or directory)
    16505 open("/lib/sse2/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/sse2", 0xbf8c6980)   = -1 ENOENT (No such file or directory)
    16505 open("/lib/cmov/libtinfo.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/cmov", 0xbf8c6980)   = -1 ENOENT (No such file or directory)
    16505 open("/lib/libtinfo.so.5", O_RDONLY) = 3
    16505 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300d\0\0004\0\0\0"..., 512) = 512
    16505 fstat64(3, {st_mode=S_IFREG|0644, st_size=125424, ...}) = 0
    16505 mmap2(NULL, 129100, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7729000
    16505 mmap2(0xb7746000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c) = 0xb7746000
    16505 close(3)                          = 0
    16505 open("/lib/libdl.so.2", O_RDONLY) = 3
    16505 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"..., 512) = 512
    16505 fstat64(3, {st_mode=S_IFREG|0644, st_size=9844, ...}) = 0
    16505 mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7725000
    16505 mmap2(0xb7727000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7727000
    16505 close(3)                          = 0
    16505 open("/lib/libc.so.6", O_RDONLY)  = 3
    16505 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240o\1\0004\0\0\0"..., 512) = 512
    16505 fstat64(3, {st_mode=S_IFREG|0755, st_size=1437864, ...}) = 0
    16505 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7724000
    16505 mmap2(NULL, 1452408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb75c1000
    16505 mprotect(0xb771d000, 4096, PROT_NONE) = 0
    16505 mmap2(0xb771e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xb771e000
    16505 mmap2(0xb7721000, 10616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7721000
    16505 close(3)                          = 0
    16505 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75c0000
    16505 set_thread_area({entry_number:-1 -> 6, base_addr:0xb75c06c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    16505 mprotect(0xb771e000, 8192, PROT_READ) = 0
    16505 mprotect(0xb7727000, 4096, PROT_READ) = 0
    16505 mprotect(0xb7746000, 8192, PROT_READ) = 0
    16505 mprotect(0x8129000, 4096, PROT_READ) = 0
    16505 mprotect(0xb7768000, 4096, PROT_READ) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
    16505 brk(0)                            = 0x9124000
    16505 brk(0x9125000)                    = 0x9125000
    16505 brk(0x9127000)                    = 0x9127000
    16505 readlink("/proc/self/fd/0", 0x9125008, 4095) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    16505 brk(0x9128000)                    = 0x9128000
    16505 open("/usr/share/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr_FR.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr_FR.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr_FR/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 getuid32()                        = 106
    16505 getgid32()                        = 108
    16505 geteuid32()                       = 0
    16505 getegid32()                       = 108
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 time(NULL)                        = 1381085766
    16505 setuid32(106)                     = 0
    16505 setgid32(108)                     = 0
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 brk(0x9129000)                    = 0x9129000
    16505 open("/proc/meminfo", O_RDONLY)   = -1 ENOENT (No such file or directory)
    16505 brk(0x912a000)                    = 0x912a000
    16505 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {SIG_DFL, [], SA_RESTART}, 8) = 0
    16505 rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTERM, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTERM, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGHUP, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGILL, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTRAP, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGABRT, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGFPE, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGBUS, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGSEGV, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGSYS, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGPIPE, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGALRM, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTERM, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGXCPU, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGXFSZ, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGVTALRM, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGUSR1, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGUSR2, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a0de0, [], 0}, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, 8) = 0
    16505 rt_sigaction(SIGTERM, {SIG_IGN, [], 0}, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, 8) = 0
    16505 rt_sigaction(SIGWINCH, {0x80a0990, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a0de0, [], 0}, {0x80a0de0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTSTP, {SIG_IGN, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTOU, {SIG_IGN, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTIN, {SIG_IGN, [], 0}, {SIG_DFL, [], 0}, 8) = 0
    16505 uname({sys="Linux", node="NASServer", ...}) = 0
    16505 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
    16505 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    16505 close(3)                          = 0
    16505 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
    16505 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    16505 close(3)                          = 0
    16505 open("/etc/nsswitch.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/lib/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/i686/sse2/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls/i686/sse2/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/i686/sse2/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls/i686/sse2", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/i686/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls/i686/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/i686/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls/i686", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/sse2/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls/sse2/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/sse2/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls/sse2", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/tls/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/tls", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i686/sse2/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i686/sse2/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i686/sse2/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i686/sse2", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i686/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i686/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/i686/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/i686", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/sse2/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/sse2/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/sse2/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/sse2", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/cmov/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib/cmov", 0xbf8c6574) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    16505 open("/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 brk(0x912b000)                    = 0x912b000
    16505 stat64("/chroot/git/home/git", 0xbf8c6b80) = -1 ENOENT (No such file or directory)
    16505 brk(0x912d000)                    = 0x912d000
    16505 getcwd("/", 4096)                 = 2
    16505 getpid()                          = 16505
    16505 getppid()                         = 16504
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
    16505 brk(0x912e000)                    = 0x912e000
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 gettimeofday({1381085766, 385414}, NULL) = 0
    16505 brk(0x912f000)                    = 0x912f000
    16505 getpgrp()                         = 16503
    16505 dup(2)                            = 3
    16505 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
    16505 fcntl64(255, F_GETFD)             = -1 EBADF (Bad file descriptor)
    16505 dup2(3, 255)                      = 255
    16505 close(3)                          = 0
    16505 ioctl(255, TIOCGPGRP, [16503])    = 0
    16505 setpgid(0, 16505)                 = 0
    16505 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
    16505 ioctl(255, TIOCSPGRP, [16505])    = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 ioctl(255, TIOCGPGRP, [16505])    = 0
    16505 fcntl64(255, F_SETFD, FD_CLOEXEC) = 0
    16505 rt_sigaction(SIGCHLD, {0x808a220, [], SA_RESTART}, {SIG_DFL, [], SA_RESTART}, 8) = 0
    16505 ioctl(255, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 getrlimit(RLIMIT_NPROC, {rlim_cur=31508, rlim_max=31508}) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 fcntl64(0, F_GETFL)               = 0x8002 (flags O_RDWR|O_LARGEFILE)
    16505 time(NULL)                        = 1381085766
    16505 open("/chroot/git/home/git//.bash_history", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    16505 stat64("/chroot/git/home/git//.bash_history", 0xbf8c6d80) = -1 ENOENT (No such file or directory)
    16505 ioctl(255, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a0de0, [], 0}, {0x80a0de0, [], 0}, 8) = 0
    16505 time(NULL)                        = 1381085766
    16505 brk(0x9130000)                    = 0x9130000
    16505 brk(0x9131000)                    = 0x9131000
    16505 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 stat64("/chroot/git/home/git//.terminfo", 0xbf8c5240) = -1 ENOENT (No such file or directory)
    16505 stat64("/etc/terminfo", 0xbf8c5240) = -1 ENOENT (No such file or directory)
    16505 stat64("/lib/terminfo", 0xbf8c5240) = -1 ENOENT (No such file or directory)
    16505 stat64("/usr/share/terminfo", 0xbf8c5240) = -1 ENOENT (No such file or directory)
    16505 ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
    16505 ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
    16505 ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 open("/usr/lib/locale/fr_FR.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr_FR.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr_FR/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 open("/usr/lib/locale/fr/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
    16505 stat64("/chroot/git/home/git//.inputrc", 0xbf8c6360) = -1 ENOENT (No such file or directory)
    16505 stat64("/etc/inputrc", 0xbf8c6380) = -1 ENOENT (No such file or directory)
    16505 brk(0x9132000)                    = 0x9132000
    16505 brk(0x9133000)                    = 0x9133000
    16505 brk(0x9134000)                    = 0x9134000
    16505 brk(0x9135000)                    = 0x9135000
    16505 brk(0x9136000)                    = 0x9136000
    16505 brk(0x9137000)                    = 0x9137000
    16505 brk(0x9138000)                    = 0x9138000
    16505 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
    16505 ioctl(255, TIOCSPGRP, [16505])    = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a0de0, [], 0}, {0x80a0de0, [], 0}, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
    16505 ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
    16505 ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, [INT QUIT ALRM TERM TSTP TTIN TTOU], [], 8) = 0
    16505 rt_sigaction(SIGINT, {0x80e9ba0, [], 0}, {0x80a0de0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTERM, {0x80e9ba0, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTERM, {SIG_IGN, [], 0}, {0x80e9ba0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGQUIT, {0x80e9ba0, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {0x80e9ba0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGALRM, {0x80e9ba0, [], 0}, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, 8) = 0
    16505 rt_sigaction(SIGTSTP, {0x80e9ba0, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTSTP, {SIG_IGN, [], 0}, {0x80e9ba0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTOU, {0x80e9ba0, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTOU, {SIG_IGN, [], 0}, {0x80e9ba0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTIN, {0x80e9ba0, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTIN, {SIG_IGN, [], 0}, {0x80e9ba0, [], 0}, 8) = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigaction(SIGWINCH, {0x80e93f0, [], SA_RESTART}, {0x80a0990, [], 0}, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0
    16505 brk(0x9139000)                    = 0x9139000
    16505 rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0
    16505 brk(0x913a000)                    = 0x913a000
    16505 rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0
    16505 brk(0x913b000)                    = 0x913b000
    16505 rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0
    16505 write(2, "bash-4.2$ ", 10)        = 10
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 read(0, "e", 1)                   = 1
    16505 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
    16505 write(2, "e", 1)                  = 1
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 read(0, "x", 1)                   = 1
    16505 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
    16505 write(2, "x", 1)                  = 1
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 read(0, "i", 1)                   = 1
    16505 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
    16505 write(2, "i", 1)                  = 1
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 read(0, "t", 1)                   = 1
    16505 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
    16505 write(2, "t", 1)                  = 1
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
    16505 read(0, "\r", 1)                  = 1
    16505 write(2, "\n", 1)                 = 1
    16505 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
    16505 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
    16505 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a0de0, [], 0}, {0x80e9ba0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTERM, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGALRM, {0x80a1030, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {0x80e9ba0, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTSTP, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTOU, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGTTIN, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
    16505 rt_sigaction(SIGWINCH, {0x80a0990, [], 0}, {0x80e93f0, [], SA_RESTART}, 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a0de0, [], 0}, {0x80a0de0, [], 0}, 8) = 0
    16505 time(NULL)                        = 1381085769
    16505 write(2, "exit\n", 5)             = 5
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 rt_sigaction(SIGINT, {0x80a0de0, [], 0}, {0x80a0de0, [], 0}, 8) = 0
    16505 stat64("/chroot/git/home/git//.bash_history", 0xbf8c6d50) = -1 ENOENT (No such file or directory)
    16505 open("/chroot/git/home/git//.bash_history", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0600) = -1 ENOENT (No such file or directory)
    16505 open("/chroot/git/home/git//.bash_history", O_WRONLY|O_APPEND|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    16505 open("/chroot/git/home/git//.bash_history", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    16505 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
    16505 ioctl(255, TIOCSPGRP, [16503])    = 0
    16505 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    16505 setpgid(0, 16503)                 = 0
    16505 exit_group(0)                     = ?
    Aucune information pour savoir ce qu'est devenu mon echo

  3. #3
    Expert confirmé Avatar de disedorgue
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Décembre 2012
    Messages
    4 347
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Décembre 2012
    Messages : 4 347
    Par défaut
    Bonjour,
    Pour ton chroot, qu'as tu cloner au juste ?
    Si tu fais un chroot sur un répertoire qui s'appelle par exemple /chroot/toto, alors toutes les commandes qui seront passées dans cette cage ne pourront avoir acces aux fichiers (au sens générique: normaux,répertoire,device,...) qui sont au dehors de /chroot/toto en sachant que /chroot/toto ne sera vu par celle-ci que comme la racine / .
    Donc dans ta cage, tu dois recréer tout ton besoin (lib,binaire,device,...)

  4. #4
    Inactif  


    Homme Profil pro
    Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Inscrit en
    Décembre 2011
    Messages
    9 026
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Loire (Rhône Alpes)

    Informations professionnelles :
    Activité : Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Secteur : Enseignement

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9 026
    Par défaut
    Citation Envoyé par disedorgue Voir le message
    Pour ton chroot, qu'as tu cloner au juste ?
    De mémoire j'ai cloné :
    - bash, sh ;
    - git, git-core, tout les share git ;
    - toutes les libs requises ;

    Après comme j'ai un ping de l'ordre de la dizaine de seconde ( ) je n'arrive pas vraiment à me connecter pour le moment pour vérifier la liste des fichiers


    Si tu fais un chroot sur un répertoire qui s'appelle par exemple /chroot/toto, alors toutes les commandes qui seront passées dans cette cage ne pourront avoir acces aux fichiers (au sens générique: normaux,répertoire,device,...) qui sont au dehors de /chroot/toto en sachant que /chroot/toto ne sera vu par celle-ci que comme la racine / .
    Donc dans ta cage, tu dois recréer tout ton besoin (lib,binaire,device,...)
    Oui, je pense que je suis légèrement au courant tout de même

  5. #5
    Expert confirmé Avatar de disedorgue
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Décembre 2012
    Messages
    4 347
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Décembre 2012
    Messages : 4 347
    Par défaut
    C'est surtout que pour moi, il te manque plein de chose, comme par exemple:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    Et je passe toutes les libs qu'il n'arrive à ouvrir...

  6. #6
    Inactif  


    Homme Profil pro
    Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Inscrit en
    Décembre 2011
    Messages
    9 026
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 32
    Localisation : France, Loire (Rhône Alpes)

    Informations professionnelles :
    Activité : Doctorant sécurité informatique — Diplômé master Droit/Économie/Gestion
    Secteur : Enseignement

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9 026
    Par défaut
    Citation Envoyé par disedorgue Voir le message
    C'est surtout que pour moi, il te manque plein de chose, comme par exemple:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    J'essayerais de le rajouter, mais ce n'est pas une faille possible dans un chroot ?
    tty c'est la console, si on ajoute la console dans le chroot, est-ce vraiment "safe" ?

    Citation Envoyé par disedorgue Voir le message
    Et je passe toutes les libs qu'il n'arrive à ouvrir...
    Les libs ne sont pas manquantes vu qu'il n'y a pas de messages d'erreurs, je pense que c'est plutôt qu'il recherche les libs dans les paths non?

    D'ailleurs on a :
    16505 open("/lib/libtinfo.so.5", O_RDONLY) = 3

Discussions similaires

  1. [FTP API org.apache.commons.net.ftp] Commande 'Quote'
    Par JnJp28 dans le forum API standards et tierces
    Réponses: 2
    Dernier message: 30/11/2007, 12h23

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo