bool inode_capable(const struct inode *inode, int cap)
{
	struct user_namespace *ns = current_user_ns();

	return ns_capable(ns, cap) && kuid_has_mapping(ns, inode->i_uid);
}
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.