cap: don't show orphaned capabilities

This commit is contained in:
William Pitcock 2016-02-28 19:15:13 -06:00
parent 2e4bf32f36
commit 455d2750fc

View file

@ -64,6 +64,10 @@ clicap_visible(const struct CapabilityEntry *cap)
{
struct ClientCapability *clicap;
/* orphaned caps shouldn't be visible */
if (cap->flags & CAP_ORPHANED)
return 0;
if (cap->ownerdata == NULL)
return 1;