/* Returns 0 if granted; +ve if granted, but inode_killpriv() is required; and -ve to deny the change.  */
int cap_inode_need_killpriv(struct dentry *dentry)
/* Returns 0 if granted; +ve if granted, but inode_killpriv() is required; and -ve to deny the change.  */
int cap_inode_need_killpriv(struct dentry *dentry)
{
	struct inode *inode = dentry->d_inode;
	int error;
	if (!inode->i_op->getxattr)
	       return 0;
	error = inode->i_op->getxattr(dentry, XATTR_NAME_CAPS, NULL, 0);
	if (error <= 0)
		return 0;
	return 1;
}