linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Writing to /sys/../power/autosuspend when not root.
@ 2020-04-20 21:07 Dave Mielke
  0 siblings, 0 replies; only message in thread
From: Dave Mielke @ 2020-04-20 21:07 UTC (permalink / raw)
  To: linux-pm; +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] only message in thread

only message in thread, other threads:[~2020-04-20 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 21:07 Writing to /sys/../power/autosuspend when not root Dave Mielke

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