Re: [PATCH 1/1] statd: Decouple statd's state directory from the NFS state directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sep 20, 2011, at 12:19 PM, Christoph Hellwig wrote:

> On Tue, Sep 20, 2011 at 12:16:50PM -0400, Steve Dickson wrote:
>>> What is thje rationale for this?  And who would want to move it at
>>> compile time, not at run time?
>> It all has to do with statd not running as root... 
>> 
>> During the rpm installation, a state directory is created and 
>> the uid/gid are set to rpcuser id. When statd fires up, those
>> uid/gids are obtained and used to set the process's uid/gid so
>> the daemon does not run as root..
>> 
>> The default NFS state directory is /var/lib/nfs. Since other
>> processes, like mountd and exportfs, read and write to that,
>> we don't want to muck around with its ownership. So a statd 
>> directory is created and the ownership of that directory 
>> is mucked with.
> 
> Shouldn't the configure option then be about running statd non-root
> and all things required for it?  E.g. do the set*uid, creating the
> new dir with the right owner and permissions, and using it?

I agree that these days we would choose command line options or build-time settings instead of reading the ownership of our state directory, but it's an ancient formal administrative interface.  

We're not creating anything new here, just making it easier for distros to customize.

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com




--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux