[PATCH ported/repost v2] security,fs,nfs,net: update security_inode_listsecurity() interface
Paul Moore
paul at paul-moore.com
Fri May 1 16:00:55 UTC 2026
On Tue, Apr 28, 2026 at 3:26 PM Paul Moore <paul at paul-moore.com> wrote:
> On Tue, Apr 28, 2026 at 3:21 PM Paul Moore <paul at paul-moore.com> wrote:
> >
> > From: Stephen Smalley <stephen.smalley.work at gmail.com>
> >
> > Update the security_inode_listsecurity() interface to allow
> > use of the xattr_list_one() helper and update the hook
> > implementations.
> >
> > Link: https://lore.kernel.org/selinux/20250424152822.2719-1-stephen.smalley.work@gmail.com
> > Signed-off-by: Stephen Smalley <stephen.smalley.work at gmail.com>
> > [PM: forward porting to bring this patch up to v7.1-rc1+]
> > Signed-off-by: Paul Moore <paul at paul-moore.com>
> > ---
> > fs/nfs/nfs4proc.c | 7 ++-----
> > fs/xattr.c | 11 +++++++----
> > include/linux/lsm_hook_defs.h | 4 ++--
> > include/linux/security.h | 5 +++--
> > security/security.c | 16 ++++++++--------
> > security/selinux/hooks.c | 10 +++-------
> > security/smack/smack_lsm.c | 13 ++++---------
> > 7 files changed, 29 insertions(+), 37 deletions(-)
>
> With the security_inode_listsecurity() cleanup shipping in Linux v7.0,
> I wanted to get this patch ready for the next merge window. As
> expected, some borderline non-trivial porting was needed, so I'm
> posting the ported version in case anyone wants to review the patch
> again. If I don't hear anything over the next few days, I'll plan to
> merge this into lsm/dev later this week.
This has now been merged into lsm/dev, thanks all.
> The SELinux test suite runs clean for both local and NFS test runs.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list