Jump to content

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");





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

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

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.

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.

  • Create New...