linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roberto Sassu <roberto.sassu@huaweicloud.com>
To: Paul Moore <paul@paul-moore.com>
Cc: linux-security-module@vger.kernel.org
Subject: Re: [PATCH 00/22] Move LSM hook comments into security/security.c
Date: Wed, 08 Mar 2023 18:14:35 +0100	[thread overview]
Message-ID: <8a899d7f5f68a9f602efa50c71505f05130eb383.camel@huaweicloud.com> (raw)
In-Reply-To: <CAHC9VhTdBTopwGeyfr9YrOPdvczTk3mSGtjoW3_CYKDHMGkf9g@mail.gmail.com>

On Wed, 2023-03-08 at 12:09 -0500, Paul Moore wrote:
> On Tue, Mar 7, 2023 at 11:38 AM Roberto Sassu
> <roberto.sassu@huaweicloud.com> wrote:
> > On Tue, 2023-03-07 at 11:33 -0500, Paul Moore wrote:
> > > On Tue, Mar 7, 2023 at 3:09 AM Roberto Sassu
> > > <roberto.sassu@huaweicloud.com> wrote:
> > > > On Mon, 2023-03-06 at 13:49 -0500, Paul Moore wrote:
> > > > > On Thu, Feb 16, 2023 at 10:26 PM Paul Moore <paul@paul-moore.com> wrote:
> > > > > > Hello all,
> > > > > > 
> > > > > > The LSM hook comment blocks are a in a rather sad state; separated from
> > > > > > the hook definitions they are often out of mind, and as a result
> > > > > > most of them are in varying levels of bit-rot, some severely.  This
> > > > > > patchset moves all of the comment blocks out of lsm_hooks.c and onto
> > > > > > the top of the function definitions as one would normally expect.
> > > > > > In the process of moving the comment blocks, they have been massaged
> > > > > > into the standard kernel-doc format for the sake of consistency and
> > > > > > easier reading.  Unfortunately, correcting all of the errors in the
> > > > > > comments would have made an extremely long and painful task even worse,
> > > > > > so a number of errors remain, but the worst offenders were corrected in
> > > > > > the move.  Now that the comments are in the proper location, and in the
> > > > > > proper format, my hope is that future patch submissions correcting the
> > > > > > actual comment contents will be much easier and the comments as a whole
> > > > > > will be easier to maintain.
> > > > > > 
> > > > > > There are no code changes in this patchset, although since I was
> > > > > > already adding a lot of churn to security.c, the last patch in this
> > > > > > patchset (22/22) does take the liberty of fixing some rather ugly
> > > > > > style problems.
> > > > > > 
> > > > > >  include/linux/lsm_hooks.h | 1624 +++++++++++++++++++++
> > > > > >  security/security.c       | 2702 +---------------------------------------
> > > > > >  2 files changed, 1710 insertions(+), 2616 deletions(-)
> > > > > 
> > > > > Seeing no objections, and the ACK from Casey, I've gone ahead and
> > > > > merged this patchset into the lsm/next branch.  There was some minor
> > > > > merge fuzz due to the mount idmap work and some IMA changes, but the
> > > > > vast majority of the patchset is exactly as posted.
> > > > 
> > > > Oh, I thought it was an intermediate version and didn't report some
> > > > issues:
> > > 
> > > If you don't see a "RFC" in the patch subject line it's safe to assume
> > > it is a "final" version.  Regardless, feedback is never bad, even if
> > > it is a RFC.
> > > 
> > > > scripts/kernel-doc security/security.c|grep warning
> > > > security/security.c:1236: warning: Function parameter or member 'mnt_opts' not described in 'security_free_mnt_opts'
> > > > security/security.c:1236: warning: Excess function parameter 'mnt_ops' description in 'security_free_mnt_opts'
> > > > security/security.c:1254: warning: Function parameter or member 'mnt_opts' not described in 'security_sb_eat_lsm_opts'
> > > > security/security.c:1254: warning: Excess function parameter 'mnt_ops' description in 'security_sb_eat_lsm_opts'
> > > > security/security.c:1423: warning: Function parameter or member 'oldsb' not described in 'security_sb_clone_mnt_opts'
> > > > security/security.c:1423: warning: Function parameter or member 'newsb' not described in 'security_sb_clone_mnt_opts'
> > > 
> > > Unsurprising.  Those patches were mostly just to relocate the comment
> > > blocks out of lsm_hooks.h and into security.c; while I did fix some of
> > > the really bad errors, fixing everything in the move wasn't really the
> > > goal, that's for future work.
> > > 
> > > Did you want to submit a patch to fix those?
> > 
> > I rebased the stacked IMA/EVM to your patch set, so that it is closer
> > to the final version. I expect there will not be too many conflicts.
> > 
> > It is also ok for me to fix those issues in the future.
> 
> That would be great, thanks.

I meant generically someone... (ok, I got the task).

Roberto


  reply	other threads:[~2023-03-08 17:17 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17  3:26 [PATCH 00/22] Move LSM hook comments into security/security.c Paul Moore
2023-02-17  3:26 ` [PATCH 01/22] lsm: move the program execution hook comments to security/security.c Paul Moore
2023-02-17  3:26 ` [PATCH 02/22] lsm: move the fs_context " Paul Moore
2023-02-17  3:26 ` [PATCH 03/22] lsm: move the filesystem " Paul Moore
2023-02-17  3:26 ` [PATCH 04/22] lsm: move the inode " Paul Moore
2023-02-17  3:26 ` [PATCH 05/22] lsm: move the kernfs " Paul Moore
2023-02-17  3:26 ` [PATCH 06/22] lsm: move the file " Paul Moore
2023-02-17  3:26 ` [PATCH 07/22] lsm: move the task " Paul Moore
2023-02-17  3:26 ` [PATCH 08/22] lsm: move the netlink " Paul Moore
2023-02-17  3:26 ` [PATCH 09/22] lsm: move the AF_UNIX " Paul Moore
2023-02-17  3:26 ` [PATCH 10/22] lsm: move the socket " Paul Moore
2023-02-17  3:26 ` [PATCH 11/22] lsm: move the SCTP " Paul Moore
2023-02-17  3:26 ` [PATCH 12/22] lsm: move the Infiniband " Paul Moore
2023-02-17  3:26 ` [PATCH 13/22] lsm: move the xfrm " Paul Moore
2023-02-17  3:26 ` [PATCH 14/22] lsm: move the key " Paul Moore
2023-02-17  3:26 ` [PATCH 15/22] lsm: move the sysv " Paul Moore
2023-02-17  3:26 ` [PATCH 16/22] lsm: move the binder " Paul Moore
2023-02-17  3:26 ` [PATCH 17/22] lsm: move the audit " Paul Moore
2023-02-17  3:26 ` [PATCH 18/22] lsm: move the bpf " Paul Moore
2023-02-17  3:26 ` [PATCH 19/22] lsm: move the perf " Paul Moore
2023-02-17  3:26 ` [PATCH 20/22] lsm: move the io_uring " Paul Moore
2023-02-17  3:26 ` [PATCH 21/22] lsm: move the remaining LSM " Paul Moore
2023-02-17  3:26 ` [PATCH 22/22] lsm: styling fixes " Paul Moore
2023-02-17 14:07 ` [PATCH 00/22] Move LSM hook comments into security/security.c Paul Moore
2023-02-17 17:22 ` Casey Schaufler
2023-02-17 19:04   ` Paul Moore
2023-03-06 18:49 ` Paul Moore
2023-03-07  8:08   ` Roberto Sassu
2023-03-07 16:33     ` Paul Moore
2023-03-07 16:38       ` Roberto Sassu
2023-03-08 17:09         ` Paul Moore
2023-03-08 17:14           ` Roberto Sassu [this message]
2023-03-08 17:20             ` Paul Moore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a899d7f5f68a9f602efa50c71505f05130eb383.camel@huaweicloud.com \
    --to=roberto.sassu@huaweicloud.com \
    --cc=linux-security-module@vger.kernel.org \
    --cc=paul@paul-moore.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).