]> git.baikalelectronics.ru Git - kernel.git/commit
kernfs: use simple_xattrs for security attributes
authorOndrej Mosnacek <omosnace@redhat.com>
Fri, 22 Feb 2019 14:57:15 +0000 (15:57 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 21 Mar 2019 01:54:33 +0000 (21:54 -0400)
commitbeb3620701c2eafeec5a9397779aacc64da6776f
treef82edaba1aba32eacb57876d56fb3b218ec88840
parentb7df0b5607fb204da6093ab8c0c7f68014cfcc28
kernfs: use simple_xattrs for security attributes

Replace the special handling of security xattrs with simple_xattrs, as
is already done for the trusted xattrs. This simplifies the code and
allows LSMs to use more than just a single xattr to do their business.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: manual merge fixes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
fs/kernfs/dir.c
fs/kernfs/inode.c
fs/kernfs/kernfs-internal.h