static int squashfs_security_get(struct dentry *d, const char *name, void *buffer, size_t size, int type) #endif { if (name[0] == '\0') return -EINVAL; #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) return squashfs_xattr_get(inode, SQUASHFS_XATTR_SECURITY, name, buffer, size); #else return squashfs_xattr_get(d->d_inode, SQUASHFS_XATTR_SECURITY, name, buffer, size); #endif }
static int squashfs_security_get(struct dentry *d, const char *name, void *buffer, size_t size, int type) { if (name[0] == '\0') return -EINVAL; return squashfs_xattr_get(d->d_inode, SQUASHFS_XATTR_SECURITY, name, buffer, size); }
static int squashfs_trusted_get(struct dentry *d, const char *name, void *buffer, size_t size, int type) { if (name[0] == '\0') return -EINVAL; return squashfs_xattr_get(d_inode(d), SQUASHFS_XATTR_TRUSTED, name, buffer, size); }