How to get the sys/capability.h for FreeBSD 8.1 amd64

Hi,

While porting a Linux code to FreeBSD 8.1 (amd64), I need sys/capability.h for FreeBSD. Kindly suggest where from I can get this. I tried to make install clean the libpcap via ports to get it but didn't get the capability.h.

Any suggestion/guidance is highly appreciated.

Regards
Davewhite
 
Code:
dice@molly:~>ll /usr/include/sys/capability.h
-r--r--r--  1 root  wheel  7339 Jan 12 11:39 /usr/include/sys/capability.h

It's part of the base OS.
 
Thanks fonz and sir Dice for the reply.
Yes, I also read the same online that sys/capability.h is available on base OS for 9.X onwards. That's the reason of asking for expert opinion onto this forum, if we have same support for freebsd FreeBSD 8.1 (amd64)

Regards
Rohit
 
davewhite said:
That's the reason of asking for expert opinion onto this forum, if we have same support for FreeBSD 8.1 (amd64)
Judging from the number of replies so far, apparently here on the forums we don't know. You might have more luck asking on one of the mailing lists whether capability support can be (or maybe already has been) backported to 8-X.

Fonz
 
I didn't realize it was new in 9.0. But if I read some of the commit comments for it it was added to support Capsicum.

SVN rev 224987 on 2011-08-18 22:51:30Z by jonathan

Add experimental support for process descriptors

A "process descriptor" file descriptor is used to manage processes
without using the PID namespace. This is required for Capsicum's
Capability Mode, where the PID namespace is unavailable.
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/capability.h
 
Back
Top