Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 1998 17:56:23 -0700
From:      Mike Smith <mike@smith.net.au>
To:        shimon@simon-shapiro.org
Cc:        Mike Smith <mike@smith.net.au>, freebsd-scsi@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG, Tom <tom@sdf.com>
Subject:   cap-format databases (was Re: DPT install problem )
Message-ID:  <199805270056.RAA02549@dingo.cdrom.com>
In-Reply-To: Your message of "Tue, 26 May 1998 20:32:55 EDT." <XFMail.980526203255.shimon@simon-shapiro.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > 
> >> BTW, what is foo@ in this file?
> > 
> > from 'man 3 getcap' (whence you are referred from login.conf(5))
> > 
> >      When a database is searched for a capability record, the first
> > matching
> >      record in the search is returned.  When a record is scanned for a
> > capa-
> >      bility, the first matching capability is returned; the capability
> >      :nameT@: will hide any following definition of a value of type T for
> >      name; and the capability :name@: will prevent any following values
> > of
> >      name from being seen.
> 
> Sounds elaborate.  An example will help (I am slower than usual today :-)

Read the getcap(3) manpage.  A simple example:

foo:
	:bar#33:baz:

fish:
	:zog#1:bar@:tc=foo:

Retrieving the 'foo' entry gives the capabilities:

	bar	= 33
	baz	= true

Retrieving the 'fish' entry gives the capabilities:

	zog	= 1
	baz	= true

ie. the presence of the 'bar@' entry in 'fish' suppresses the 'bar' 
capibility when 'foo' is included.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805270056.RAA02549>