Linux xbmc ignores posix CAPABILITIES for non root user
#1
I got xbmc running as non root user. Everything works fine except that webserver will not start even though I set the correct posix capabilities. I assigned
cap_net_admin,cap_net_bind_service,cap_net_raw to xbmc.bin binary and according to http://www.kernel.org/doc/man-pages/onli...ies.7.html you should be able to bind to ports less than 1024. However it looks like xbmc checks for user id only and it now errors at

Code:
Cannot start Web Server as port is smaller than 1024 and user is not root

Also does "--standalone" works for non-root user with cap_net_admin set?
Ticket created http://trac.xbmc.org/ticket/13061
Reply
#2
Yes XBMC just checks for the user id. You do know you can change the port where XBMC will publish the webserver?
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
(2012-05-25, 12:52)Montellese Wrote: Yes XBMC just checks for the user id. You do know you can change the port where XBMC will publish the webserver?

Yes I fully aware that but setcap is able to let unprivileged user to bind port below 1024. I have created a github issue as well.

Otherwise xbmc is kind of forcing dedicated xbmc box to run as root which is not ideal.
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc ignores posix CAPABILITIES for non root user0