AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Thread creation failure in AIX5.3

  • 1.  Thread creation failure in AIX5.3

    Posted Thu November 16, 2006 03:01 PM

    Originally posted by: frish


    Hi,
    I'm trying to run ADA based process on AIX5.3 (TL5) with TCB enabled.
    When I try to execute the process I get a weird error about
    storage failure and something with EPERM.

    The process works perfectly on AIX5.2 with no TCB, so I did a kernel trace
    on both systems and compared the results. I found out that when the process tries to create thread, in the 5.3 system there is additional system call after getuid() which is called privcheck().

    It seems that the process doesn't have the appropriate privileges to create the thread. I gave it a root suid and it worked, but I don't like this solution. In 5.2 it runs perfectly with no root suid. Is it a 5.3 or a tcb issue??

    How can I specify I want to allow that specific process creating threads but I don't want it to run as root ??

    Thanks.
    #AIX-Forum


  • 2.  Re: Thread creation failure in AIX5.3

    Posted Sat November 18, 2006 07:52 AM

    Originally posted by: SystemAdmin


    You need to register your program as a priviledged program using tcbck -a. Read the docs on the section of adding a trusted program in the AIX Information center.
    #AIX-Forum