From: Christoph Hellwig <hch@infradead.org>
To: Joel Granados <j.granados@samsung.com>
Cc: mcgrof@kernel.org, ddiss@suse.de, joshi.k@samsung.com,
paul@paul-moore.com, ming.lei@redhat.com,
linux-security-module@vger.kernel.org, axboe@kernel.dk,
io-uring@vger.kernel.org
Subject: Re: [RFC v2 1/1] Use a fs callback to set security specific data
Date: Tue, 29 Nov 2022 06:24:00 -0800 [thread overview]
Message-ID: <Y4YWACJqlhQ80Xby@infradead.org> (raw)
In-Reply-To: <20221122103144.960752-2-j.granados@samsung.com>
This seems to be missing any kind of changelog. Also the
subject should say file_operations. Most of the instances here are
not in a file system, and they most certainly aren't callbacks.
I think you've also missed a whole lot of maintainers.
> +#include "linux/security.h"
That's now how we include kernel-wide headers.
> #include <linux/blkdev.h>
> #include <linux/blk-mq.h>
> #include <linux/blk-integrity.h>
> @@ -3308,6 +3309,13 @@ static int nvme_dev_release(struct inode *inode, struct file *file)
> return 0;
> }
>
> +int nvme_uring_cmd_sec(struct io_uring_cmd *ioucmd, struct security_uring_cmd *sec)
Douple white space and overly long line.
> +{
> + sec->flags = 0;
> + sec->flags = SECURITY_URING_CMD_TYPE_IOCTL;
Double initialization of ->flags. But how is this supposed to work
to start with?
next prev parent reply other threads:[~2022-11-29 14:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20221122103536eucas1p2a0bc5ebdf063715f063e5b6254d0b058@eucas1p2.samsung.com>
2022-11-22 10:31 ` [RFC v2 0/1] RFC on how to include LSM hooks for io_uring commands Joel Granados
2022-11-22 10:31 ` [RFC v2 1/1] Use a fs callback to set security specific data Joel Granados
2022-11-22 15:18 ` Casey Schaufler
2022-11-28 8:19 ` Joel Granados
2022-11-28 9:06 ` Joel Granados
2022-11-23 21:02 ` Paul Moore
2022-11-28 9:27 ` Joel Granados
2022-11-29 14:24 ` Christoph Hellwig [this message]
2022-11-30 21:29 ` Joel Granados
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=Y4YWACJqlhQ80Xby@infradead.org \
--to=hch@infradead.org \
--cc=axboe@kernel.dk \
--cc=ddiss@suse.de \
--cc=io-uring@vger.kernel.org \
--cc=j.granados@samsung.com \
--cc=joshi.k@samsung.com \
--cc=linux-security-module@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=ming.lei@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.