30 Apr, 2019
3 commits
-
Previous patch made sure that btrfs_setxattr_trans() is called only when
transaction NULL. Clean up btrfs_setxattr_trans() and drop the
parameter.Signed-off-by: Anand Jain
Reviewed-by: David Sterba
Signed-off-by: David Sterba -
Preparatory patch, as we are going split the calls with and without
transaction to use the respective btrfs_setxattr() and
btrfs_setxattr_trans() functions. Export btrfs_setxattr() for calls
outside of xattr.c.Signed-off-by: Anand Jain
Reviewed-by: David Sterba
Signed-off-by: David Sterba -
Rename btrfs_setxattr() to btrfs_setxattr_trans(), so that do_setxattr()
can be renamed to btrfs_setxattr().
Preparatory patch, no functional changes.Signed-off-by: Anand Jain
Reviewed-by: David Sterba
Signed-off-by: David Sterba
12 Apr, 2018
1 commit
-
Remove GPL boilerplate text (long, short, one-line) and keep the rest,
ie. personal, company or original source copyright statements. Add the
SPDX header.Unify the include protection macros to match the file names.
Signed-off-by: David Sterba
26 Mar, 2018
4 commits
-
There's a proper header for xattr handlers.
Reviewed-by: Nikolay Borisov
Signed-off-by: David Sterba -
The xattr_handler::get prototype returns int, use it. The only ssize_t
exception is the per-inode listxattr handler.Reviewed-by: Nikolay Borisov
Signed-off-by: David Sterba -
Extern for functions does not make any difference, there are only a few
so let's remove them before it's too late.Reviewed-by: Nikolay Borisov
Signed-off-by: David Sterba -
Reviewed-by: Nikolay Borisov
Signed-off-by: David Sterba
18 May, 2016
1 commit
-
The btrfs_{set,remove}xattr inode operations check for a read-only root
(btrfs_root_readonly) before calling into generic_{set,remove}xattr. If
this check is moved into __btrfs_setxattr, we can get rid of
btrfs_{set,remove}xattr.This patch applies to mainline, I would like to keep it together with
the other xattr cleanups if possible, though. Could you please review?Thanks,
AndreasSigned-off-by: Andreas Gruenbacher
Signed-off-by: Al Viro
07 Dec, 2015
1 commit
-
Use the VFS xattr handler infrastructure and get rid of similar code in
the filesystem.Signed-off-by: Andreas Gruenbacher
Reviewed-by: David Sterba
Signed-off-by: Al Viro
26 Jan, 2014
1 commit
-
Also don't bother to set up a .get_acl method for symlinks as we do not
support access control (ACLs or even mode bits) for symlinks in Linux.Signed-off-by: Christoph Hellwig
Signed-off-by: Al Viro
02 Feb, 2011
1 commit
-
SELinux would like to implement a new labeling behavior of newly created
inodes. We currently label new inodes based on the parent and the creating
process. This new behavior would also take into account the name of the
new object when deciding the new label. This is not the (supposed) full path,
just the last component of the path.This is very useful because creating /etc/shadow is different than creating
/etc/passwd but the kernel hooks are unable to differentiate these
operations. We currently require that userspace realize it is doing some
difficult operation like that and than userspace jumps through SELinux hoops
to get things set up correctly. This patch does not implement new
behavior, that is obviously contained in a seperate SELinux patch, but it
does pass the needed name down to the correct LSM hook. If no such name
exists it is fine to pass NULL.Signed-off-by: Eric Paris
22 May, 2010
1 commit
-
Signed-off-by: Stephen Hemminger
Signed-off-by: Al Viro
18 Dec, 2009
1 commit
-
Pass transaction handle down to security and ACL initialization
functions, so we can avoid starting nested transactionsSigned-off-by: Yan Zheng
Signed-off-by: Chris Mason
04 Feb, 2009
1 commit
-
Add call to LSM security initialization and save
resulting security xattr for new inodes.Add xattr support to symlink inode ops.
Set inode->i_op for existing special files.
Signed-off-by: jim owens
25 Sep, 2008
3 commits
-
btrfs actually stores the whole xattr name, including the prefix ondisk,
so using the generic resolver that strips off the prefix is not very
helpful. Instead do the real ondisk xattrs manually and only use the
generic resolver for synthetic xattrs like ACLs.(Sorry Josef for guiding you towards the wrong direction here intially)
Signed-off-by: Christoph Hellwig
Signed-off-by: Chris Mason -
The ->list handler is really not useful at all, because we always call
btrfs_xattr_generic_list anyway. After this is done
find_btrfs_xattr_handler becomes unused, and it becomes obvious that the
temporary name buffer allocation isn't needed but we can directly copy
into the supplied buffer.Tested with various getfattr -d calls on varying xattr lists.
Signed-off-by: Christoph Hellwig
Signed-off-by: Chris Mason -
Signed-off-by: Chris Mason