OpenVZ Forum


Home » General » Support » *SOLVED* want SOCK_RAW inside vps
*SOLVED* want SOCK_RAW inside vps [message #5951] Tue, 05 September 2006 21:53 Go to previous message
jeffa is currently offline  jeffa
Messages: 8
Registered: September 2006
Junior Member
Hi, I have a program that I want to run inside a VPS that opens a raw socket:
s = socket(AF_INET, SOCK_RAW, IPPROTO_ESP)

...but this returns EAFNOSUPPORT, "Address family not supported by protocol". If run as non-root then you get EPERM "Operation not permitted" as expected. This works fine as root from the host system.

I'm running the latest 2.6.16-026test017 SMP development kernel.

My capabilities line says:
CAPABILITY="NET_ADMIN:on NET_RAW:on SYS_ADMIN:on SYS_TTY_CONFIG:on "
and cat /proc/1/status says:
CapPrm: 000000005decfeff
CapEff: 000000005decfeff

What am I missing?

[Updated on: Fri, 08 September 2006 06:43] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* UBC settings for multiple jboss VE
Next Topic: Having to create /dev/vzctl after every reboot?
Goto Forum:
  


Current Time: Tue Aug 13 22:20:32 GMT 2024

Total time taken to generate the page: 0.02779 seconds