On Fri, Jul 08, 2005 at 09:55:14AM -0400, Stephen Smalley wrote:
> +int
> +ext2_init_security(struct inode *inode, struct inode *dir)
> +{
> + int err;
> + size_t len;
> + void *value;
> + char *name;
> +
> + err = security_inode_init_security(inode, dir, &name, &value, &len);
> + if (err) {
> + if (err == -EOPNOTSUPP)
> + return 0;
> + return err;
> + }
> + err = ext2_xattr_set(inode, EXT2_XATTR_INDEX_SECURITY,
> + name, value, len, 0);
> + kfree(name);
> + kfree(value);
Please set the xattr from security_inode_init_security by using ->setxattr, that
way we don't need to duplicate this code everywhere.
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html