lkml.org 
[lkml]   [1999]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: UUIDs (and devfs and major/minor numbers)
On Thu, 17 Jun 1999, Dan Hollis wrote:
> On Thu, 17 Jun 1999, Edward S. Marshall wrote:
> > On Thu, 17 Jun 1999, Dan Hollis wrote:
> > > I cant be the only one who would like to do something like:
> > > # chown named /proc/sys/net/permissions/udp/53
> > > # chown named /proc/sys/net/permissions/tdp/53
> > > And then run named non-root.
> > Ye ghods, yes. What do you get when you readdir()
> > /proc/sys/net/permissions/udp? All currently bound sockets? 65k files?
> > (The former would obviously be preferred...)
>
> I was thinking of just 1023 files in each. You know, the "privileged"
> ports.
>
> Otherwise it would be hard to set permissions on a privileged port before
> a program actually opened it 8)

Create them dynamically when either (1) the socket is bound, or (2) some
program (e.g. touch) requests to create them. If created on binding, set
an "ephemeral" bit somewhere. Any metadata operation (chown, chmod, etc.)
clears the "ephemeral" bit. When the socket is unbound, delete the file
if the "ephemeral" bit is set.

--
Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu
Specializing in unusual perspectives for more than twenty years.


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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.071 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site