JITSI / java only runs as root

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

JITSI / java only runs as root

Postby lfree » Fri Jun 28, 2013 1:24 pm

I can run Java applications without any problems (I2P / IPBlock GUI) - both of which run as root with mprotect only disabled on java / javaws binaries.

Is it possible to run JITSI as a normal user ? (at the moment this gives me "/usr/bin/java: Permission denied" - but runs ok as root)
lfree
 
Posts: 5
Joined: Fri Jun 28, 2013 12:50 pm

Re: JITSI / java only runs as root

Postby PaX Team » Thu Jul 04, 2013 9:27 am

can you strace it and see which syscall fails exactly?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: JITSI / java only runs as root

Postby lfree » Thu Jul 04, 2013 9:52 am

Code: Select all
strace -c jitsi
/usr/bin/jitsi: line 28: /usr/bin/java: Permission denied
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 88.80    0.001054         264         4         2 waitpid
  9.27    0.000110          55         2           clone
  1.94    0.000023           1        46           rt_sigprocmask
  0.00    0.000000           0        10           read
  0.00    0.000000           0         9           open
  0.00    0.000000           0        11           close
  0.00    0.000000           0         1           execve
  0.00    0.000000           0         1           chdir
  0.00    0.000000           0         1           time
  0.00    0.000000           0         1           getpid
  0.00    0.000000           0         5         5 access
  0.00    0.000000           0         1           pipe
  0.00    0.000000           0        17           brk
  0.00    0.000000           0         1         1 ioctl
  0.00    0.000000           0         1           dup2
  0.00    0.000000           0         1           getppid
  0.00    0.000000           0         1           getpgrp
  0.00    0.000000           0         1           gettimeofday
  0.00    0.000000           0         2           munmap
  0.00    0.000000           0         2           sigreturn
  0.00    0.000000           0         1           uname
  0.00    0.000000           0         5           mprotect
  0.00    0.000000           0         4           _llseek
  0.00    0.000000           0        13           rt_sigaction
  0.00    0.000000           0         2           getrlimit
  0.00    0.000000           0        14           mmap2
  0.00    0.000000           0         5           stat64
  0.00    0.000000           0         8           fstat64
  0.00    0.000000           0         1           getuid32
  0.00    0.000000           0         1           getgid32
  0.00    0.000000           0         1           geteuid32
  0.00    0.000000           0         1           getegid32
  0.00    0.000000           0         3         1 fcntl64
  0.00    0.000000           0         1           set_thread_area
------ ----------- ----------- --------- --------- ----------------
100.00    0.001187                   178         9 total
lfree
 
Posts: 5
Joined: Fri Jun 28, 2013 12:50 pm

Re: JITSI / java only runs as root

Postby PaX Team » Thu Jul 04, 2013 10:06 am

this doesn't show the individual syscalls, try something more like strace -f.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: JITSI / java only runs as root

Postby lfree » Thu Jul 04, 2013 10:30 am

Code: Select all
strace -f jitsi
execve("/usr/bin/jitsi", ["jitsi"], [/* 26 vars */]) = 0
brk(0)                                  = 0x92e77b0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4f1f4000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=139981, ...}) = 0
mmap2(NULL, 139981, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4f1d1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260^\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=133420, ...}) = 0
mmap2(NULL, 133292, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4f1b0000
mmap2(0x4f1ce000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e) = 0x4f1ce000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\n\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=13856, ...}) = 0
mmap2(NULL, 16512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4f1ab000
mmap2(0x4f1ae000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x4f1ae000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \232\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1754600, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4f1aa000
mmap2(NULL, 1764124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4effb000
mmap2(0x4f1a4000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a9) = 0x4f1a4000
mmap2(0x4f1a7000, 11036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4f1a7000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4effa000
set_thread_area({entry_number:-1 -> 6, base_addr:0x4effa6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x4f1a4000, 8192, PROT_READ)   = 0
mprotect(0x4f1ae000, 4096, PROT_READ)   = 0
mprotect(0x4f1ce000, 8192, PROT_READ)   = 0
mprotect(0x8129000, 4096, PROT_READ)    = 0
mprotect(0x4f216000, 4096, PROT_READ)   = 0
munmap(0x4f1d1000, 139981)              = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3)                                = 0
brk(0)                                  = 0x92e77b0
brk(0x92e8000)                          = 0x92e8000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1852416, ...}) = 0
mmap2(NULL, 1852416, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4ee35000
close(3)                                = 0
brk(0x92e9000)                          = 0x92e9000
brk(0x92ea000)                          = 0x92ea000
getuid32()                              = 1000
getgid32()                              = 100
geteuid32()                             = 1000
getegid32()                             = 100
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
time(NULL)                              = 1372948289
brk(0x92eb000)                          = 0x92eb000
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4f1f3000
read(3, "MemTotal:        3076800 kB\nMemF"..., 1024) = 1024
close(3)                                = 0
munmap(0x4f1f3000, 4096)                = 0
brk(0x92ec000)                          = 0x92ec000
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {SIG_DFL, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, {SIG_IGN, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
uname({sys="Linux", node="toshiba-laptop", ...}) = 0
brk(0x92ed000)                          = 0x92ed000
stat64("/home/stuart", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
getpid()                                = 8636
brk(0x92ee000)                          = 0x92ee000
open("/usr/lib/i386-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26256, ...}) = 0
mmap2(NULL, 26256, PROT_READ, MAP_SHARED, 3, 0) = 0x4f1ed000
close(3)                                = 0
brk(0x92ef000)                          = 0x92ef000
getppid()                               = 8635
gettimeofday({1372948289, 952778}, NULL) = 0
getpgrp()                               = 8635
rt_sigaction(SIGCHLD, {0x808a270, [], SA_RESTART}, {SIG_DFL, [], SA_RESTART}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=23979, rlim_max=23979}) = 0
brk(0x92f0000)                          = 0x92f0000
brk(0x92f1000)                          = 0x92f1000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/usr/bin/jitsi", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x5dca2c18) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "#!/bin/bash\n\n# Get architecture\n"..., 80) = 80
_llseek(3, 0, [0], SEEK_SET)            = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
fcntl64(255, F_GETFD)                   = -1 EBADF (Bad file descriptor)
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl64(255, F_SETFD, FD_CLOEXEC)       = 0
fcntl64(255, F_GETFL)                   = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(255, {st_mode=S_IFREG|0755, st_size=966, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR)          = 0
brk(0x92f2000)                          = 0x92f2000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "#!/bin/bash\n\n# Get architecture\n"..., 966) = 966
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -882, [84], SEEK_CUR)      = 0
clone(Process 8637 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4effa728) = 8637
[pid  8636] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  8636] rt_sigaction(SIGCHLD, {0x808a270, [], SA_RESTART}, {0x808a270, [], SA_RESTART}, 8) = 0
[pid  8636] close(4)                    = 0
[pid  8636] read(3,  <unfinished ...>
[pid  8637] close(255)                  = 0
[pid  8637] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  8637] rt_sigaction(SIGTSTP, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8637] rt_sigaction(SIGTTIN, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8637] rt_sigaction(SIGTTOU, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8637] rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8637] rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
[pid  8637] rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {0x808a270, [], SA_RESTART}, 8) = 0
[pid  8637] rt_sigaction(SIGCHLD, {0x808a270, [], SA_RESTART}, {SIG_DFL, [], SA_RESTART}, 8) = 0
[pid  8637] rt_sigaction(SIGINT, {0x80a1080, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8637] dup2(4, 1)                  = 1
[pid  8637] close(4)                    = 0
[pid  8637] close(3)                    = 0
[pid  8637] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid  8637] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid  8637] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid  8637] pipe([3, 4])                = 0
[pid  8637] rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
[pid  8637] clone(Process 8638 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4effa728) = 8638
[pid  8637] rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
[pid  8637] close(4)                    = 0
[pid  8637] close(4)                    = -1 EBADF (Bad file descriptor)
[pid  8637] brk(0x92f3000)              = 0x92f3000
[pid  8637] rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
[pid  8637] clone(Process 8639 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4effa728) = 8639
[pid  8637] rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
[pid  8637] close(3)                    = 0
[pid  8637] rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
[pid  8637] rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
[pid  8637] rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
[pid  8637] rt_sigaction(SIGINT, {0x80875f0, [], 0}, {0x80a1080, [], 0}, 8) = 0
[pid  8637] waitpid(-1, Process 8637 suspended
 <unfinished ...>
[pid  8639] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  8639] rt_sigaction(SIGTSTP, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8639] rt_sigaction(SIGTTIN, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8638] rt_sigprocmask(SIG_SETMASK, [],  <unfinished ...>
[pid  8639] rt_sigaction(SIGTTOU, {SIG_DFL, [], 0},  <unfinished ...>
[pid  8638] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid  8639] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
[pid  8638] rt_sigaction(SIGTSTP, {SIG_DFL, [], 0},  <unfinished ...>
[pid  8639] dup2(3, 0 <unfinished ...>
[pid  8638] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
[pid  8639] <... dup2 resumed> )        = 0
[pid  8638] rt_sigaction(SIGTTIN, {SIG_DFL, [], 0},  <unfinished ...>
[pid  8639] close(3 <unfinished ...>
[pid  8638] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
[pid  8639] <... close resumed> )       = 0
[pid  8638] rt_sigaction(SIGTTOU, {SIG_DFL, [], 0},  <unfinished ...>
[pid  8639] stat64(".",  <unfinished ...>
[pid  8638] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
[pid  8639] <... stat64 resumed> {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
[pid  8638] close(3 <unfinished ...>
[pid  8639] stat64("/usr/local/bin/sed",  <unfinished ...>
[pid  8638] <... close resumed> )       = 0
[pid  8639] <... stat64 resumed> 0x5dca2270) = -1 ENOENT (No such file or directory)
[pid  8638] dup2(4, 1 <unfinished ...>
[pid  8639] stat64("/usr/bin/sed",  <unfinished ...>
[pid  8638] <... dup2 resumed> )        = 1
[pid  8639] <... stat64 resumed> 0x5dca2270) = -1 ENOENT (No such file or directory)
[pid  8638] close(4 <unfinished ...>
[pid  8639] stat64("/bin/sed",  <unfinished ...>
[pid  8638] <... close resumed> )       = 0
[pid  8639] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=67788, ...}) = 0
[pid  8638] stat64(".",  <unfinished ...>
[pid  8639] stat64("/bin/sed",  <unfinished ...>
[pid  8638] <... stat64 resumed> {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
[pid  8639] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=67788, ...}) = 0
[pid  8638] stat64("/usr/local/bin/uname",  <unfinished ...>
[pid  8639] geteuid32( <unfinished ...>
[pid  8638] <... stat64 resumed> 0x5dca2270) = -1 ENOENT (No such file or directory)
[pid  8639] <... geteuid32 resumed> )   = 1000
[pid  8638] stat64("/usr/bin/uname",  <unfinished ...>
[pid  8639] getegid32( <unfinished ...>
[pid  8638] <... stat64 resumed> 0x5dca2270) = -1 ENOENT (No such file or directory)
[pid  8639] <... getegid32 resumed> )   = 100
[pid  8638] stat64("/bin/uname",  <unfinished ...>
[pid  8639] getuid32( <unfinished ...>
[pid  8638] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=30256, ...}) = 0
[pid  8639] <... getuid32 resumed> )    = 1000
[pid  8639] getgid32( <unfinished ...>
[pid  8638] stat64("/bin/uname",  <unfinished ...>
[pid  8639] <... getgid32 resumed> )    = 100
[pid  8638] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=30256, ...}) = 0
[pid  8639] access("/bin/sed", X_OK <unfinished ...>
[pid  8638] geteuid32( <unfinished ...>
[pid  8639] <... access resumed> )      = 0
[pid  8638] <... geteuid32 resumed> )   = 1000
[pid  8639] stat64("/bin/sed",  <unfinished ...>
[pid  8638] getegid32( <unfinished ...>
[pid  8639] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=67788, ...}) = 0
[pid  8638] <... getegid32 resumed> )   = 100
[pid  8639] geteuid32( <unfinished ...>
[pid  8638] getuid32( <unfinished ...>
[pid  8639] <... geteuid32 resumed> )   = 1000
[pid  8638] <... getuid32 resumed> )    = 1000
[pid  8639] getegid32( <unfinished ...>
[pid  8638] getgid32( <unfinished ...>
[pid  8639] <... getegid32 resumed> )   = 100
[pid  8638] <... getgid32 resumed> )    = 100
[pid  8639] getuid32( <unfinished ...>
[pid  8638] access("/bin/uname", X_OK <unfinished ...>
[pid  8639] <... getuid32 resumed> )    = 1000
[pid  8638] <... access resumed> )      = 0
[pid  8639] getgid32( <unfinished ...>
[pid  8638] stat64("/bin/uname",  <unfinished ...>
[pid  8639] <... getgid32 resumed> )    = 100
[pid  8638] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=30256, ...}) = 0
[pid  8639] access("/bin/sed", R_OK <unfinished ...>
[pid  8638] geteuid32( <unfinished ...>
[pid  8639] <... access resumed> )      = 0
[pid  8638] <... geteuid32 resumed> )   = 1000
[pid  8639] stat64("/bin/sed",  <unfinished ...>
[pid  8638] getegid32( <unfinished ...>
[pid  8639] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=67788, ...}) = 0
[pid  8638] <... getegid32 resumed> )   = 100
[pid  8639] stat64("/bin/sed",  <unfinished ...>
[pid  8638] getuid32( <unfinished ...>
[pid  8639] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=67788, ...}) = 0
[pid  8638] <... getuid32 resumed> )    = 1000
[pid  8639] geteuid32( <unfinished ...>
[pid  8638] getgid32( <unfinished ...>
[pid  8639] <... geteuid32 resumed> )   = 1000
[pid  8638] <... getgid32 resumed> )    = 100
[pid  8639] getegid32( <unfinished ...>
[pid  8638] access("/bin/uname", R_OK <unfinished ...>
[pid  8639] <... getegid32 resumed> )   = 100
[pid  8638] <... access resumed> )      = 0
[pid  8639] getuid32( <unfinished ...>
[pid  8638] stat64("/bin/uname",  <unfinished ...>
[pid  8639] <... getuid32 resumed> )    = 1000
[pid  8638] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=30256, ...}) = 0
[pid  8639] getgid32( <unfinished ...>
[pid  8638] stat64("/bin/uname",  <unfinished ...>
[pid  8639] <... getgid32 resumed> )    = 100
[pid  8638] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=30256, ...}) = 0
[pid  8639] access("/bin/sed", X_OK <unfinished ...>
[pid  8638] geteuid32( <unfinished ...>
[pid  8639] <... access resumed> )      = 0
[pid  8638] <... geteuid32 resumed> )   = 1000
[pid  8639] stat64("/bin/sed",  <unfinished ...>
[pid  8638] getegid32( <unfinished ...>
[pid  8639] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=67788, ...}) = 0
[pid  8638] <... getegid32 resumed> )   = 100
[pid  8639] geteuid32( <unfinished ...>
[pid  8638] getuid32( <unfinished ...>
[pid  8639] <... geteuid32 resumed> )   = 1000
[pid  8638] <... getuid32 resumed> )    = 1000
[pid  8639] getegid32( <unfinished ...>
[pid  8638] getgid32( <unfinished ...>
[pid  8639] <... getegid32 resumed> )   = 100
[pid  8638] <... getgid32 resumed> )    = 100
[pid  8639] getuid32( <unfinished ...>
[pid  8638] access("/bin/uname", X_OK <unfinished ...>
[pid  8639] <... getuid32 resumed> )    = 1000
[pid  8638] <... access resumed> )      = 0
[pid  8639] getgid32( <unfinished ...>
[pid  8638] stat64("/bin/uname",  <unfinished ...>
[pid  8639] <... getgid32 resumed> )    = 100
[pid  8638] <... stat64 resumed> {st_mode=S_IFREG|0755, st_size=30256, ...}) = 0
[pid  8639] access("/bin/sed", R_OK <unfinished ...>
[pid  8638] geteuid32( <unfinished ...>
[pid  8639] <... access resumed> )      = 0
[pid  8638] <... geteuid32 resumed> )   = 1000
[pid  8639] rt_sigaction(SIGINT, {SIG_DFL, [], 0},  <unfinished ...>
[pid  8638] getegid32( <unfinished ...>
[pid  8639] <... rt_sigaction resumed> {0x80a1080, [], 0}, 8) = 0
[pid  8638] <... getegid32 resumed> )   = 100
[pid  8639] rt_sigaction(SIGQUIT, {SIG_IGN, [], 0},  <unfinished ...>
[pid  8638] getuid32( <unfinished ...>
[pid  8639] <... rt_sigaction resumed> {SIG_IGN, [], 0}, 8) = 0
[pid  8638] <... getuid32 resumed> )    = 1000
[pid  8639] rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART},  <unfinished ...>
[pid  8638] getgid32( <unfinished ...>
[pid  8639] <... rt_sigaction resumed> {0x808a270, [], SA_RESTART}, 8) = 0
[pid  8638] <... getgid32 resumed> )    = 100
[pid  8639] execve("/bin/sed", ["sed", "-e", "s/x86_64/64/", "-e", "s/i.86/32/"], [/* 26 vars */] <unfinished ...>
[pid  8638] access("/bin/uname", R_OK <unfinished ...>
[pid  8639] <... execve resumed> )      = 0
[pid  8638] <... access resumed> )      = 0
[pid  8638] brk(0x92f3000 <unfinished ...>
[pid  8639] brk(0 <unfinished ...>
[pid  8638] <... brk resumed> )         = 0x92f3000
[pid  8639] <... brk resumed> )         = 0x8a9cbc0
[pid  8638] rt_sigaction(SIGINT, {SIG_DFL, [], 0},  <unfinished ...>
[pid  8639] access("/etc/ld.so.nohwcap", F_OK <unfinished ...>
[pid  8638] <... rt_sigaction resumed> {0x80a1080, [], 0}, 8) = 0
[pid  8639] <... access resumed> )      = -1 ENOENT (No such file or directory)
[pid  8638] rt_sigaction(SIGQUIT, {SIG_IGN, [], 0},  <unfinished ...>
[pid  8639] mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...>
[pid  8638] <... rt_sigaction resumed> {SIG_IGN, [], 0}, 8) = 0
[pid  8639] <... mmap2 resumed> )       = 0x4ad66000
[pid  8638] rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART},  <unfinished ...>
[pid  8639] access("/etc/ld.so.preload", R_OK <unfinished ...>
[pid  8638] <... rt_sigaction resumed> {0x808a270, [], SA_RESTART}, 8) = 0
[pid  8639] <... access resumed> )      = -1 ENOENT (No such file or directory)
[pid  8638] execve("/bin/uname", ["uname", "-m"], [/* 26 vars */] <unfinished ...>
[pid  8639] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
[pid  8638] <... execve resumed> )      = 0
[pid  8639] fstat64(3, {st_mode=S_IFREG|0644, st_size=139981, ...}) = 0
[pid  8638] brk(0 <unfinished ...>
[pid  8639] mmap2(NULL, 139981, PROT_READ, MAP_PRIVATE, 3, 0 <unfinished ...>
[pid  8638] <... brk resumed> )         = 0x8e17820
[pid  8639] <... mmap2 resumed> )       = 0x4ad43000
[pid  8639] close(3)                    = 0
[pid  8639] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  8639] open("/lib/i386-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid  8638] access("/etc/ld.so.nohwcap", F_OK <unfinished ...>
[pid  8639] <... open resumed> )        = 3
[pid  8638] <... access resumed> )      = -1 ENOENT (No such file or directory)
[pid  8639] read(3,  <unfinished ...>
[pid  8638] mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...>
[pid  8639] <... read resumed> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PJ\0\0004\0\0\0"..., 512) = 512
[pid  8638] <... mmap2 resumed> )       = 0x4f725000
[pid  8639] fstat64(3,  <unfinished ...>
[pid  8638] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid  8638] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
[pid  8638] fstat64(3, {st_mode=S_IFREG|0644, st_size=139981, ...}) = 0
[pid  8638] mmap2(NULL, 139981, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4f702000
[pid  8638] close(3)                    = 0
[pid  8638] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  8638] open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
[pid  8638] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \232\1\0004\0\0\0"..., 512) = 512
[pid  8638] fstat64(3, {st_mode=S_IFREG|0755, st_size=1754600, ...}) = 0
[pid  8638] mmap2(NULL, 1764124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4f553000
[pid  8638] mmap2(0x4f6fc000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a9) = 0x4f6fc000
[pid  8639] <... fstat64 resumed> {st_mode=S_IFREG|0644, st_size=133088, ...}) = 0
[pid  8638] mmap2(0x4f6ff000, 11036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4f6ff000
[pid  8638] close(3)                    = 0
[pid  8638] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4f552000
[pid  8638] set_thread_area({entry_number:-1 -> 6, base_addr:0x4f552900, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
[pid  8638] mprotect(0x4f6fc000, 8192, PROT_READ) = 0
[pid  8638] mprotect(0x804f000, 4096, PROT_READ) = 0
[pid  8638] mprotect(0x4f747000, 4096, PROT_READ) = 0
[pid  8638] munmap(0x4f702000, 139981)  = 0
[pid  8638] brk(0)                      = 0x8e17820
[pid  8638] brk(0x8e38820)              = 0x8e38820
[pid  8638] brk(0x8e39000)              = 0x8e39000
[pid  8638] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
[pid  8638] fstat64(3, {st_mode=S_IFREG|0644, st_size=1852416, ...}) = 0
[pid  8638] mmap2(NULL, 1852416, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4f38d000
[pid  8638] close(3)                    = 0
[pid  8638] uname({sys="Linux", node="toshiba-laptop", ...}) = 0
[pid  8639] mmap2(NULL, 138372, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0 <unfinished ...>
[pid  8638] fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid  8638] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4f724000
[pid  8638] write(1, "i686\n", 5)       = 5
[pid  8638] close(1)                    = 0
[pid  8638] munmap(0x4f724000, 4096)    = 0
[pid  8638] close(2)                    = 0
[pid  8638] exit_group(0)               = ?
Process 8637 resumed
Process 8638 detached
[pid  8637] <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 8638
[pid  8637] waitpid(-1, Process 8637 suspended
 <unfinished ...>
[pid  8639] <... mmap2 resumed> )       = 0x4ad21000
[pid  8639] mmap2(0x4ad41000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f) = 0x4ad41000
[pid  8639] close(3)                    = 0
[pid  8639] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  8639] open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
[pid  8639] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \232\1\0004\0\0\0"..., 512) = 512
[pid  8639] fstat64(3, {st_mode=S_IFREG|0755, st_size=1754600, ...}) = 0
[pid  8639] mmap2(NULL, 1764124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4ab72000
[pid  8639] mmap2(0x4ad1b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a9) = 0x4ad1b000
[pid  8639] mmap2(0x4ad1e000, 11036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4ad1e000
[pid  8639] close(3)                    = 0
[pid  8639] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  8639] open("/lib/i386-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
[pid  8639] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\22\0\0004\0\0\0"..., 512) = 512
[pid  8639] fstat64(3, {st_mode=S_IFREG|0644, st_size=255908, ...}) = 0
[pid  8639] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4ab71000
[pid  8639] mmap2(NULL, 254540, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4ab32000
[pid  8639] mmap2(0x4ab70000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3e) = 0x4ab70000
[pid  8639] close(3)                    = 0
[pid  8639] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  8639] open("/lib/i386-linux-gnu/i686/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
[pid  8639] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@[\0\0004\0\0\0"..., 512) = 512
[pid  8639] fstat64(3, {st_mode=S_IFREG|0755, st_size=124552, ...}) = 0
[pid  8639] mmap2(NULL, 107004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4ab17000
[pid  8639] mmap2(0x4ab2e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0x4ab2e000
[pid  8639] mmap2(0x4ab30000, 4604, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4ab30000
[pid  8639] close(3)                    = 0
[pid  8639] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  8639] open("/lib/i386-linux-gnu/i686/cmov/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
[pid  8639] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\n\0\0004\0\0\0"..., 512) = 512
[pid  8639] fstat64(3, {st_mode=S_IFREG|0644, st_size=13856, ...}) = 0
[pid  8639] mmap2(NULL, 16512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4ab12000
[pid  8639] mmap2(0x4ab15000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x4ab15000
[pid  8639] close(3)                    = 0
[pid  8639] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4ab11000
[pid  8639] set_thread_area({entry_number:-1 -> 6, base_addr:0x4ab11a80, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
[pid  8639] mprotect(0x4ad1b000, 8192, PROT_READ) = 0
[pid  8639] mprotect(0x4ab15000, 4096, PROT_READ) = 0
[pid  8639] mprotect(0x4ab2e000, 4096, PROT_READ) = 0
[pid  8639] mprotect(0x4ad41000, 4096, PROT_READ) = 0
[pid  8639] mprotect(0x8058000, 4096, PROT_READ) = 0
[pid  8639] mprotect(0x4ad88000, 4096, PROT_READ) = 0
[pid  8639] munmap(0x4ad43000, 139981)  = 0
[pid  8639] set_tid_address(0x4ab11ae8) = 8639
[pid  8639] set_robust_list(0x4ab11af0, 0xc) = 0
[pid  8639] rt_sigaction(SIGRTMIN, {0x4ab1c5e0, [], SA_SIGINFO}, NULL, 8) = 0
[pid  8639] rt_sigaction(SIGRT_1, {0x4ab1c670, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
[pid  8639] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
[pid  8639] getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
[pid  8639] uname({sys="Linux", node="toshiba-laptop", ...}) = 0
[pid  8639] statfs64("/sys/fs/selinux", 84, 0x5a39821c) = -1 ENOENT (No such file or directory)
[pid  8639] statfs64("/selinux", 84, 0x5a39821c) = -1 ENOENT (No such file or directory)
[pid  8639] brk(0)                      = 0x8a9cbc0
[pid  8639] brk(0x8abdbc0)              = 0x8abdbc0
[pid  8639] brk(0x8abe000)              = 0x8abe000
[pid  8639] open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 3
[pid  8639] fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid  8639] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4ad65000
[pid  8639] read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 351
[pid  8639] read(3, "", 1024)           = 0
[pid  8639] brk(0x8abd000)              = 0x8abd000
[pid  8639] close(3)                    = 0
[pid  8639] munmap(0x4ad65000, 4096)    = 0
[pid  8639] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
[pid  8639] fstat64(3, {st_mode=S_IFREG|0644, st_size=1852416, ...}) = 0
[pid  8639] mmap2(NULL, 1852416, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4a94c000
[pid  8639] close(3)                    = 0
[pid  8639] open("//lib/charset.alias", O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = -1 ENOENT (No such file or directory)
[pid  8639] open("/usr/lib/i386-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
[pid  8639] fstat64(3, {st_mode=S_IFREG|0644, st_size=26256, ...}) = 0
[pid  8639] mmap2(NULL, 26256, PROT_READ, MAP_SHARED, 3, 0) = 0x4ad5f000
[pid  8639] close(3)                    = 0
[pid  8639] futex(0x4ad1dfc8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid  8639] fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid  8639] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4ad5e000
[pid  8639] read(0, "i686\n", 4096)     = 5
[pid  8639] fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid  8639] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4ad5d000
[pid  8639] read(0, "", 4096)           = 0
[pid  8639] write(1, "32\n", 3)         = 3
[pid  8636] <... read resumed> "32\n", 128) = 3
[pid  8639] close(1 <unfinished ...>
[pid  8636] read(3,  <unfinished ...>
[pid  8639] <... close resumed> )       = 0
[pid  8639] munmap(0x4ad5d000, 4096)    = 0
[pid  8639] close(2)                    = 0
[pid  8639] exit_group(0)               = ?
Process 8637 resumed
Process 8639 detached
[pid  8637] <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 8639
[pid  8637] rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
[pid  8637] rt_sigaction(SIGINT, {0x80a1080, [], 0}, {0x80875f0, [], 0}, 8) = 0
[pid  8637] close(3)                    = -1 EBADF (Bad file descriptor)
[pid  8637] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  8637] --- SIGCHLD (Child exited) @ 0 (0) ---
[pid  8637] waitpid(-1, 0x5dca1f18, WNOHANG) = -1 ECHILD (No child processes)
[pid  8637] sigreturn()                 = ? (mask now [])
[pid  8637] exit_group(0)               = ?
Process 8637 detached
<... read resumed> "", 128)             = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 8637
waitpid(-1, 0x5dca21e8, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x80875f0, [], 0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {0x80875f0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "\n# Additionnal JVM arguments\nCLI"..., 966) = 882
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
brk(0x92f3000)                          = 0x92f3000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
brk(0x92f4000)                          = 0x92f4000
brk(0x92f5000)                          = 0x92f5000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
stat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
stat64("/usr/share/jitsi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
chdir("/usr/share/jitsi")               = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(Process 8640 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4effa728) = 8640
[pid  8636] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  8636] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid  8636] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  8640] close(255 <unfinished ...>
[pid  8636] rt_sigprocmask(SIG_BLOCK, [CHLD],  <unfinished ...>
[pid  8640] <... close resumed> )       = 0
[pid  8636] <... rt_sigprocmask resumed> [], 8) = 0
[pid  8640] rt_sigprocmask(SIG_SETMASK, [],  <unfinished ...>
[pid  8636] rt_sigaction(SIGINT, {0x80875f0, [], 0},  <unfinished ...>
[pid  8640] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid  8636] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
[pid  8640] rt_sigaction(SIGTSTP, {SIG_DFL, [], 0},  <unfinished ...>
[pid  8636] waitpid(-1, Process 8636 suspended
 <unfinished ...>
[pid  8640] <... rt_sigaction resumed> {SIG_DFL, [], 0}, 8) = 0
[pid  8640] rt_sigaction(SIGTTIN, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8640] rt_sigaction(SIGTTOU, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8640] rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
[pid  8640] rt_sigaction(SIGQUIT, {SIG_IGN, [], 0}, {SIG_IGN, [], 0}, 8) = 0
[pid  8640] rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART}, {0x808a270, [], SA_RESTART}, 8) = 0
[pid  8640] execve("/usr/bin/java", ["/usr/bin/java", "-client", "-Xmx256m", "-classpath", "/usr/share/jitsi/lib/jdic_stub.j"..., "-Djna.library.path=/usr/share/ji"..., "-Dfelix.config.properties=file:/"..., "-Djava.util.logging.config.file="..., "-Dnet.java.sip.communicator.SC_H"..., "net.java.sip.communicator.launch"...], [/* 28 vars */]) = -1 EACCES (Permission denied)
[pid  8640] stat64("/usr/bin/java", {st_mode=S_IFREG|0745, st_size=51404, ...}) = 0
[pid  8640] stat64("/usr/bin/java", {st_mode=S_IFREG|0745, st_size=51404, ...}) = 0
[pid  8640] stat64("/usr/bin/java", {st_mode=S_IFREG|0745, st_size=51404, ...}) = 0
[pid  8640] geteuid32()                 = 1000
[pid  8640] getegid32()                 = 100
[pid  8640] getuid32()                  = 1000
[pid  8640] getgid32()                  = 100
[pid  8640] access("/usr/bin/java", X_OK) = -1 EACCES (Permission denied)
[pid  8640] stat64("/usr/bin/java", {st_mode=S_IFREG|0745, st_size=51404, ...}) = 0
[pid  8640] geteuid32()                 = 1000
[pid  8640] getegid32()                 = 100
[pid  8640] getuid32()                  = 1000
[pid  8640] getgid32()                  = 100
[pid  8640] access("/usr/bin/java", R_OK) = 0
[pid  8640] open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
[pid  8640] fstat64(3, {st_mode=S_IFREG|0644, st_size=2502, ...}) = 0
[pid  8640] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4f1ec000
[pid  8640] read(3, "# Locale name alias data base.\n#"..., 4096) = 2502
[pid  8640] brk(0x92f6000)              = 0x92f6000
[pid  8640] read(3, "", 4096)           = 0
[pid  8640] close(3)                    = 0
[pid  8640] munmap(0x4f1ec000, 4096)    = 0
[pid  8640] open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8640] open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8640] open("/usr/share/locale/en_US/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8640] open("/usr/share/locale/en/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8640] write(2, "/usr/bin/jitsi: line 28: /usr/bi"..., 58/usr/bin/jitsi: line 28: /usr/bin/java: Permission denied
) = 58
[pid  8640] exit_group(126)             = ?
Process 8636 resumed
Process 8640 detached
<... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 126}], 0) = 8640
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0x5dca2418, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {0x80875f0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "", 966)                      = 0
exit_group(126)                         = ?
lfree
 
Posts: 5
Joined: Fri Jun 28, 2013 12:50 pm

Re: JITSI / java only runs as root

Postby PaX Team » Thu Jul 04, 2013 10:53 am

lfree wrote:
Code: Select all
[pid  8640] execve("/usr/bin/java", ["/usr/bin/java", "-client", "-Xmx256m", "-classpath", "/usr/share/jitsi/lib/jdic_stub.j"..., "-Djna.library.path=/usr/share/ji"..., "-Dfelix.config.properties=file:/"..., "-Djava.util.logging.config.file="..., "-Dnet.java.sip.communicator.SC_H"..., "net.java.sip.communicator.launch"...], [/* 28 vars */]) = -1 EACCES (Permission denied)

this will be your problem, your user has no execution rights on this file for some reason. check the file permissions, TPE, RBAC rules, etc.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: JITSI / java only runs as root

Postby lfree » Thu Jul 04, 2013 11:39 am

Yes that fixed it - for anyone else running Debian:

/usr/bin/java points to ---> /etc/alternatives/java ---> /usr/lib/jvm/j2re1.6-oracle/bin/java (in my particular case)

Setting java under /usr/lib to be executable by owner & group (user) fixed it.
lfree
 
Posts: 5
Joined: Fri Jun 28, 2013 12:50 pm


Return to grsecurity support