Here's a small patch to devfsd to add -export-dynamic while linking so
that modules can use exported variables from the executable. Of interest
is the syslog_is_open variable so I can use the SYSLOG() variable.
On an unrelated point, I have a question about changing permissions and
supression.
I have a module which dynamically tracks permissions for USB devices
and applies them back to the device when it gets plugged back in.
In the REGISTER handler, I do a chown/chmod pair (well, fchown/fchmod)
which then generates another CHANGE request, causing extra processing since
it looks like a user (admin, etc) made a change to file, when it was
actually generated by devfsd.
Would it be possible for devfs (the kernel portion) to not generate events
when the devfsd process (or the process which has .devfsd open) makes
changes?
I can't see a reason where it would be needed since devfsd is always aware
of the changes it makes, since it made them in the first place.
JE
|