fa.netbsd.tech.kern
[Top] [All Lists]

Re: inode open

Subject: Re: inode open
From: Bill Stouder-Studenmund <wrstuden@xxxxxxxxxx>
Date: Thu, 17 Jul 2008 19:19:45 UTC
Newsgroups: fa.netbsd.tech.kern
On Thu, Jul 17, 2008 at 12:51:02PM +1000, Simon Burge wrote:
> Bill Stouder-Studenmund wrote:
> 
> > A cleaner way to do this is, back whe you know the path, do a getfh() on
> > the path and get the file handle. Then fhopen() works for you. And if
> > you're a backup daemon, chances are you're running as root already.
> 
> Just to get picky on the last sentence, I do my dump(8) backups as group
> operator, not as root.  :)

Hmmm.... I'm not sure if that's more secure or not. The process's not 
running as root, but "operator" has to be given fairly inimate access for 
dump to work.

If we had "capabilities", I think getfh() and fhopen() would each make 
good capabilities.

Take care,

Bill
<Prev in Thread] Current Thread [Next in Thread>