From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Vinícius Bruno" <vinibruno.dev@gmail.com>
Cc: Vaibhav Agarwal <vaibhav.sr@gmail.com>,
Mark Greer <mgreer@animalcreek.com>,
Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: greybus: audio_manager_module: make module attributes read-only
Date: Sat, 5 Dec 2026 06:53:10 +0900 [thread overview]
Message-ID: <2026120546-overrule-sermon-dd2e@gregkh> (raw)
In-Reply-To: <20261204214707.152059-1-vinibruno.dev@gmail.com>
On Fri, Dec 04, 2026 at 06:47:07PM -0300, Vinícius Bruno wrote:
> The name, vid, pid, intf_id, ip_devices and op_devices attributes are
> declared with mode 0664, but none of them provides a store() callback.
>
> As a result, the files appear writable to their owner and group, and a
> write passes the permission check only to fail with -EIO in
> gb_audio_module_attr_store(), since attribute->store is NULL.
>
> Set the mode to 0444 so the permissions reflect that these attributes
> are read-only, and writes are rejected up front with -EACCES.
>
> This changes the file mode shown for these attributes, but no attribute
> was writable before, so no working userspace interface is lost.
>
> Compile-tested only with W=1; not tested on Greybus hardware.
>
> The commit message was drafted with the help of an AI assistant
> (Claude) and reviewed by the author.
Please read:
https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh
prev parent reply other threads:[~2026-12-04 21:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 21:47 [PATCH] staging: greybus: audio_manager_module: make module attributes read-only Vinícius Bruno
2026-12-04 21:53 ` Greg Kroah-Hartman [this message]
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=2026120546-overrule-sermon-dd2e@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=elder@kernel.org \
--cc=greybus-dev@lists.linaro.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mgreer@animalcreek.com \
--cc=vaibhav.sr@gmail.com \
--cc=vinibruno.dev@gmail.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.