[PATCH 4.14 052/119] arm64: capabilities: Filter the entries based on a given mask