diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2019-02-22 15:57:15 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-03-20 21:54:33 -0400 |
commit | 0ac6075a32fc05bc7fa025965914e8dcd448a668 (patch) | |
tree | f82edaba1aba32eacb57876d56fb3b218ec88840 /fs/kernfs/dir.c | |
parent | b754026bd98e644f9337224ffd4201e02dfe1c43 (diff) | |
download | linux-rt-0ac6075a32fc05bc7fa025965914e8dcd448a668.tar.gz |
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>
Diffstat (limited to 'fs/kernfs/dir.c')
-rw-r--r-- | fs/kernfs/dir.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c index 1654d9136458..bd48e315347b 100644 --- a/fs/kernfs/dir.c +++ b/fs/kernfs/dir.c @@ -532,9 +532,6 @@ void kernfs_put(struct kernfs_node *kn) kfree_const(kn->name); if (kn->iattr) { - if (kn->iattr->ia_secdata) - security_release_secctx(kn->iattr->ia_secdata, - kn->iattr->ia_secdata_len); simple_xattrs_free(&kn->iattr->xattrs); kmem_cache_free(kernfs_iattrs_cache, kn->iattr); } |