Re: Error's opening credentials file.

Jeff Layton <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
On Sat, 3 Apr 2010 12:26:38 +0200
Stef Bon <[email protected]> wrote:

> Yes,
> 
> it's working again like it did. The previouis version I used was cifs-utils 4.0.
> 
> Now the cred file is  /home/sbon/.smb/moun.cred again, and no problem.
> 
> It was compiling using the libcap package, automatically.
> 
> Thanks,
> 
> Stef
> 
> 
> 2010/4/2 Jeff Layton <[email protected]>:
> > On Fri, 2 Apr 2010 15:12:12 -0400
> > Jeff Layton <[email protected]> wrote:
> >
> >> On Fri, 2 Apr 2010 17:11:20 +0200
> >> Stef Bon <[email protected]> wrote:
> >>
> 
> >> >
> >> > IT's not such a big problem, I've got it working again, but it should
> >> > be documented.
> >> >
> >> > Stef
> >>
> >> What was the last version on which this worked? Are you mount.cifs as a
> >> setuid root program? Is mount.cifs linked against libcap?
> >>
> >
> > Does the attached patch fix the problem?
> >
> > --
> > Jeff Layton <[email protected]>
> >
> 

Ok, I've gone ahead and pushed some patches into the git repo that
should fix this and still keep CAP_DAC_OVERRIDE exposure to a minimum.
Please test it if you're able and let me know whether the problem is
still fixed.

I'm starting to wonder whether it would be better though to switch this
code to use libcap-ng:

     http://people.redhat.com/sgrubb/libcap-ng/

...the older libcap is pretty cumbersome.

-- 
Jeff Layton <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.