lkml.org 
[lkml]   [1998]   [Jan]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 4 Jan 1998 02:36:19 -0600
FromMichael Elizabeth Chastain <>
SubjectRe: PROPOSAL: /proc/dev
Hi Richard et al,

> You could specify with dev_register() that when a device/inode is opened,
> the ownership should be set to the process that opened it "first". When
> the device is closed for the last time (before someone else uses the
> pty at a later time), the ownership reverts back to the default.

Yes, you could do this in the devfs layer.  But you could also add
"last close" hooks to the existing code.

> BTW: These automatic ownership changes wouldn't be preserved across
> reboots via the boot/shutdown mechanism.

What about this use case:

    user opens device
    hourly cron job snapshots owners and modes in /dev
    system crashes
    system reboots
    init-job restores owners and modes in /dev

Michael Chastain
<mailto:mec@shout.net>
"love without fear"

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.302 / U:0.380 seconds]
©2003-2008 Jasper Spaans