debugfs file creation from a user process ioctl

From: Dave Airlie
Date: Thu Sep 27 2012 - 00:17:00 EST


Hi guys,

we've been seeing an error with nouveau and I'm not sure if its new or
we just never spent time looking into it.

The basics are when a new drm client opens the device it gets a
channel assigned, we allocate the channel and a side effect of channel
allocation is we get a file in debugfs with some info on the channel.
However this fails as the process context we are in is non-root, and
the directory is 755.

I don't think I want to be modifiying fsuid, but is there another
practical way to do this, its not majorly urgent, Ben has indicated
he's probably ripping the channel debugfs code out but I was just
wondering for future reference.

Dave.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/