PERFORCE change 148284 for review
Robert Watson
rwatson at FreeBSD.org
Sun Aug 24 21:00:41 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=148284
Change 148284 by rwatson at rwatson_freebsd_capabilities on 2008/08/24 21:00:21
Make fgetcap(9) return a reference to the capability, not just the
capability, that it retrieves.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/sys/kern/kern_descrip.c#11 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/sys/kern/kern_descrip.c#11 (text+ko) ====
@@ -2151,7 +2151,7 @@
fgetcap(struct thread *td, int fd, struct file **fpp)
{
- return (_fget(td, fd, fpp, 0, 0, FGET_GETCAP));
+ return (_fget(td, fd, fpp, 0, 0, FGET_GETCAP | FGET_HOLD));
}
/*
More information about the p4-projects
mailing list