running as user issue
Hi,
I have problems running as user.
pshared mode is enabled,
conf tunables are defined (session_label , and mem_pool_size overloaded) and the program is running as root.
user's group 1000 has been echoed to /sys/module/xenomai/parameters/allowed_group
xenomai_init() reports EACCESS, although ulimit set up to unlimited memory lock.
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15346
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15346
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
./print_erreur
conf tunable
mem pool size=5000000
0"003.362| WARNING: [main] failed to initialize main shared heap 0"003.439| WARNING: [main] setup call copperplate failed 0"003.493| BUG in xenomai_init(): [main] initialization failed, EACCES
Regards,
Steph
giving a+rwx access to /dev/shm/xeno:mysession.heap permits to run xenomai_init, but unfortunately, the heap alloc / binds do not work.
Regards,
S.Ancelot
Quoted 47 lines · Stéphane ANCELOT
Hi,
I have problems running as user.
pshared mode is enabled,
conf tunables are defined (session_label, andmem_pool_sizeoverloaded) and the program is running as root.user's group 1000 has been echoed to
/sys/module/xenomai/parameters/allowed_group
xenomai_init()reports EACCESS, although ulimit set up to unlimited memory lock.ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15346
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15346
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited./print_erreur
conf tunable
mem pool size=50000000"003.362| WARNING: [main] failed to initialize main shared heap 0"003.439| WARNING: [main] setup call copperplate failed 0"003.493| BUG in xenomai_init(): [main] initialization failed, EACCESRegards,
Steph_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai
Quoted 2 lines · Stéphane ANCELOT
giving a+rwx access to /dev/shm/xeno:mysession.heap permits to run
xenomai_init,
This does not make sense unless you are trying to bind to an existing session with incompatible user privileges.
Quoted 1 line
but unfortunately, the heap alloc / binds do not work.
I'm sorry, I have no clue about what you are trying to do. More details would probably help, like how many processes share the same session, what are their respective user/privileges, which Xenomai-specific command line switches are passed to them?
Quoted 60 lines
Regards,
S.AncelotQuoted 41 lines · Stéphane ANCELOT
Hi,
I have problems running as user.
pshared mode is enabled,
conf tunables are defined (session_label, andmem_pool_sizeoverloaded) and the program is running as root.user's group 1000 has been echoed to
/sys/module/xenomai/parameters/allowed_group
xenomai_init()reports EACCESS, although ulimit set up to unlimited memory lock.ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15346
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15346
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited./print_erreur
conf tunable
mem pool size=50000000"003.362| WARNING: [main] failed to initialize main shared heap 0"003.439| WARNING: [main] setup call copperplate failed 0"003.493| BUG in xenomai_init(): [main] initialization failed, EACCESQuoted 8 lines
Regards,
Steph_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai
Signature · 1 line
Philippe.
Quoted 5 lines · Philippe Gerum
Quoted 2 lines · Stéphane ANCELOT
giving a+rwx access to /dev/shm/xeno:mysession.heap permits to run
xenomai_init,This does not make sense unless you are trying to bind to an existing session with incompatible user privileges.
Do you mean it is not possible to "mix" user privileges. I mean running a root process and another one as user ? Because this may be my problem, some processes are running root and gui's processes as user . Do I need to switch all processes to the same world ...?
Quoted 67 lines
Quoted 2 lines
but unfortunately, the heap alloc / binds do not work.
I'm sorry, I have no clue about what you are trying to do. More details would probably help, like how many processes share the same session, what are their respective user/privileges, which Xenomai-specific command line switches are passed to them?
Quoted 59 lines
Regards,
S.AncelotQuoted 41 lines · Stéphane ANCELOT
Hi,
I have problems running as user.
pshared mode is enabled,
conf tunables are defined (session_label, andmem_pool_sizeoverloaded) and the program is running as root.user's group 1000 has been echoed to
/sys/module/xenomai/parameters/allowed_group
xenomai_init()reports EACCESS, although ulimit set up to unlimited memory lock.ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15346
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15346
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited./print_erreur
conf tunable
mem pool size=50000000"003.362| WARNING: [main] failed to initialize main shared heap 0"003.439| WARNING: [main] setup call copperplate failed 0"003.493| BUG in xenomai_init(): [main] initialization failed, EACCESQuoted 8 lines
Regards,
Steph_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai
Hi,
Enclosed you will find a heap regression test program.
The main problem, is that I am not able to bind it using normal user , using pshared and session mode.
xenomai configure flags: --enable-smp --enable-pshared
--enable-dlopen-libs --enable-tls
running this program does follwoing things:
as root user, creates and alloc heap
as normal user, bind to the created heap by root user and alloc it
as root user :
umask 0002
./heaptest
now, as user in the 1000 gid group . 1000 gid group is added to the
root group:
./heaptest
=> problem it does not manage to bind it.
Quoted 77 lines · Stéphane ANCELOT
Quoted 5 lines · Philippe Gerum
Quoted 2 lines · Stéphane ANCELOT
giving a+rwx access to /dev/shm/xeno:mysession.heap permits to run
xenomai_init,This does not make sense unless you are trying to bind to an existing session with incompatible user privileges.
Do you mean it is not possible to "mix" user privileges. I mean running a root process and another one as user ? Because this may be my problem, some processes are running root and gui's processes as user . Do I need to switch all processes to the same world ...?
Quoted 68 lines
Quoted 2 lines
but unfortunately, the heap alloc / binds do not work.
I'm sorry, I have no clue about what you are trying to do. More details would probably help, like how many processes share the same session, what are their respective user/privileges, which Xenomai-specific command line switches are passed to them?
Quoted 60 lines
Regards,
S.AncelotQuoted 42 lines · Stéphane ANCELOT
Hi,
I have problems running as user.
pshared mode is enabled,
conf tunables are defined (session_label, andmem_pool_sizeoverloaded) and the program is running as root.user's group 1000 has been echoed to
/sys/module/xenomai/parameters/allowed_group
xenomai_init()reports EACCESS, although ulimit set up to unlimited memory lock.ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15346
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15346
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited./print_erreur
conf tunable
mem pool size=50000000"003.362| WARNING: [main] failed to initialize main shared heap 0"003.439| WARNING: [main] setup call copperplate failed 0"003.493| BUG in xenomai_init(): [main] initialization failed,EACCES
Quoted 8 lines
Regards,
Steph_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai
Quoted 4 lines
_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: heaptest.cpp
Type: text/x-c++src
Size: 2493 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20150827/74e2ce25/attachment.cpp>