[systemd-devel] Programmatically setting udev properties

Tomasz Torcz tomek at pipebreaker.pl
Thu Jan 29 14:42:25 PST 2015


On Fri, Jan 30, 2015 at 08:12:54AM +1000, Peter Hutterer wrote:
> Hi,
> 
> I need some sort of way of assigning udev properties on the fly to a device,
> but I'm short of ideas how to do this sensibly.
> 
> Because of uinput, the test suite runs as root. One solution would be to
> drop a custom test rule, reload, create the uinput device, run the test,
> rm the rule again. Not pretty though, I was hoping there was something
> nicer.
> 
> Any ideas?

  Have you seen umockdev? https://github.com/martinpitt/umockdev/

-- 
Tomasz Torcz       ,,(...) today's high-end is tomorrow's embedded processor.''
xmpp: zdzichubg at chrome.pl                      -- Mitchell Blank on LKML



More information about the systemd-devel mailing list