All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Felipe Balbi <balbi@ti.com>
Cc: Linux OMAP Mailing List <linux-omap@vger.kernel.org>
Subject: Re: World writeable MUX
Date: Fri, 4 Feb 2011 11:53:21 -0800	[thread overview]
Message-ID: <20110204195321.GZ3322@atomide.com> (raw)
In-Reply-To: <20110204124352.GH30543@legolas.emea.dhcp.ti.com>

* Felipe Balbi <balbi@ti.com> [110204 04:42]:
> Hi Tony,
> 
> I saw a few patches floating around regarding world writeable sysfs
> files and decided to grep around arch/arm/*omap* to try and see if we
> were safe. Turns out anyone can change MUX entries via the debugfs
> interface:
> 
> static void __init omap_mux_dbg_create_entry(
> 				struct omap_mux_partition *partition,
> 				struct dentry *mux_dbg_dir)
> {
> 	struct omap_mux_entry *e;
> 
> 	list_for_each_entry(e, &partition->muxmodes, node) {
> 		struct omap_mux *m = &e->mux;
> 
> 		(void)debugfs_create_file(m->muxnames[0], S_IWUGO, mux_dbg_dir,
> 					  m, &omap_mux_dbg_signal_fops);
> 	}
> }
> 
> is that really expected ? I guess not, attached there's a small patch to
> fix that one.

Heh, no it should not be like that, thanks will queue as a fix.

Tony

      reply	other threads:[~2011-02-04 19:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-04 12:43 World writeable MUX Felipe Balbi
2011-02-04 19:53 ` Tony Lindgren [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=20110204195321.GZ3322@atomide.com \
    --to=tony@atomide.com \
    --cc=balbi@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /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.