]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fd: fix up fget_cap
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Fri, 23 Sep 2016 08:13:46 +0000 (08:13 +0000)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Fri, 23 Sep 2016 08:13:46 +0000 (08:13 +0000)
commitad5e83dd3c30aa3400dbe6b2bcfb72036bdc8b38
treef56623140055ff7baa11af4de1644c4136cfe847
parent3a970562d7f8b2506f7bcbe378e3c02a408425d7
fd: fix up fget_cap

If the kernel is not compiled with the CAPABILITIES kernel options
fget_unlocked doesn't return the sequence number so fd_modify will
always report modification, in that case we got infinity loop.

Reported by: br
Reviewed by: mjg
Tested by: br, def
sys/kern/kern_descrip.c