Jump to content
Sign in to follow this  
infernix

Запуск jsvc на mandriva 2008

Recommended Posts

Доброго времени суток

пытаюсь запустить jsvc на mandriva

при запуске выдает ошибку :

24/09/2008 09:52:57 9863 jsvc.exec error: syscall failed in set_caps

24/09/2008 09:52:57 9863 jsvc.exec error: set_caps(CAPS) failed

24/09/2008 09:52:57 9862 jsvc.exec error: Service exit with a return value of 4

смотрим код:

static int set_caps(int caps)

{

struct __user_cap_header_struct caphead;

struct __user_cap_data_struct cap;

memset(&caphead, 0, sizeof caphead);

caphead.version = _LINUX_CAPABILITY_VERSION;

caphead.pid = 0;

memset(&cap, 0, sizeof cap);

cap.effective = caps;

cap.permitted = caps;

cap.inheritable = caps;

if (syscall(__NR_capset, &caphead, &cap) < 0) {

log_error("syscall failed in set_caps");

return(-1);

}

return(0);

}

похоже что он пытается изменить uid пользователя для запуска под root и не может этого сделать может кто сталкивался ???

спасибо за помощь!!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...