Re: [RFC][Patch 1/6] integrity: new hooks
From: Chris Wright
Date: Thu Mar 08 2007 - 11:40:43 EST
* Mimi Zohar (zohar@xxxxxxxxxxxxxxxxxx) wrote:
> +static int dummy_inode_setxattr(struct dentry *dentry, char *name, void *value,
> + size_t size, int flags)
> +{
> + if (!strncmp(name, XATTR_SECURITY_PREFIX,
> + sizeof(XATTR_SECURITY_PREFIX) - 1) &&
> + !capable(CAP_SYS_ADMIN))
> + return -EPERM;
> + return 0;
> +}
Hold on, what is all this? Duplication of all of this code is a no go.
thanks,
-chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/