Hmm. But why is it that everything works if I start the server manually 
from shell (with the default privileges) ?

Shanti

Stephen Hahn wrote:
> * Shanti Subramanyam <shanti.subramanyam at Sun.COM> [2007-11-14 21:06]:
>> I'm having trouble getting lighttpd (light-weight webserver) managed
>> by SMF. The user/group is set to webservd and when I start it
>> manually, it works fine. But if I set :
> 
>>  <method_credential user='webservd' group='webservd'
>>  privileges='basic,!proc_session,!proc_info,!file_link_any,net_privaddr'
>>  />
>>
>> the server fails polling (when event handler is set to devpoll). The
>> ioctl call is returning EINVAL. If I change it's event handler to
>> 'poll', everything works.  I suppose there is some issue with the
>> privileges set above for devpoll. I tried adding all of the
>> network/event related privileges with no luck.
> 
>   The code paths in uts/common/io/devpoll.c show that EINVAL is returned
>   when the ioctl() call is made with a bad code or when the fd exceeds
>   the file descriptor resource limit.  Valid codes are DP_POLL and
>   DP_ISPOLLED, defined in uts/common/sys/devpoll.h.
> 
>   - Stephen
> 

Reply via email to