linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Writing to /sys/../power/autosuspend when not root.
@ 2020-04-26 19:08 Dave Mielke
  2020-04-27 10:30 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Mielke @ 2020-04-26 19:08 UTC (permalink / raw)
  To: linux-usb; +Cc: Samuel Thibault, Nicolas Pitre

We're working on getting brltty to run as an unprivileged user with just a few
required capabilities. We don't want one of those required capabilities to be
CAP_DAC_OVERRIDE (bypass file permission checks).

Some USB-connected braille devices don't respond very well to being
autosuspended. We get around this, when running as root, by writing to the
SYSFS power/autosuspend file associated with the device. Our problem is that
only the root user can write to it.

Other than using CAP_DAC_OVERRIDE (which we don't want to do), what other
way(s) might we be able to use to overcome this restriction? For example, is
there some kind of safe (enough) udev rule?

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave@Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-28 13:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-26 19:08 Writing to /sys/../power/autosuspend when not root Dave Mielke
2020-04-27 10:30 ` Greg KH
2020-04-27 14:27   ` Alan Stern
2020-04-28  9:26   ` Dave Mielke
2020-04-28  9:53     ` Greg KH
2020-04-28 13:17     ` Alan Stern

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).