public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SMB filesystem
@ 2002-06-02 21:00 Jean-Eric Cuendet
  2002-06-02 21:16 ` Thunder from the hill
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Jean-Eric Cuendet @ 2002-06-02 21:00 UTC (permalink / raw)
  To: linux-kernel

Hi,
Actually, SMB access with Linux is done in the way:
- Mount a share
- Access it with rights defined at mount time.

I'm thinking of implementing an smb filesystem, the way AFS implement 
the AFS client fs kernel driver.
- Mount the smb filesystem on /smb (done at boot time)
- Every user has list dir access on /smb
- There, you see each workgroup/domain available on the network
- Then in each domain, a list of machines
- Then in each machine, a list of shares
- Then a list of files/dirs
Access will be granted using the SMB token (like a kerberos ticket) 
issued by the primary domain controller.
It's the way the windows explorer works. It's cool and useful.

What do you think of implementing it that way? Comments?

I'd like to implement it with libsmbclient.so, a samba provided lib that 
let you have access to workgroups/machines/shares in a MS network from 
Linux (or UNIX).
Then, it can't be kernel only. I need a userspace daemon with which the 
kernel will communicate, since the shared lib can't be added to the kernel.
How do you think is the best way of doing things?
Making a minimal FS kernel driver that communicate with a complex 
userspace daemon?

Is it possible to implement a userspace filesystem? In which way?
Is there a generic interface in the kernel for userspace implemented 
filesystems?
Where is the doc on that?

Thanks for comments/ideas.
-jec



^ permalink raw reply	[flat|nested] 12+ messages in thread
* re: SMB filesystem
@ 2002-06-03  5:50 Dan Kegel
  2002-06-03 11:34 ` David D. Hagood
  2002-06-03 14:14 ` Jean-Eric Cuendet
  0 siblings, 2 replies; 12+ messages in thread
From: Dan Kegel @ 2002-06-03  5:50 UTC (permalink / raw)
  To: Jean-Eric Cuendet, linux-kernel@vger.kernel.org

Jean-Eric Cuendet wrote:
> [Currently], SMB access with Linux is done in the way:
> - Mount a share
> - Access it with rights defined at mount time.
> 
> I'm thinking of implementing an smb filesystem, the way AFS implement 
> the AFS client fs kernel driver.
> - Mount the smb filesystem on /smb (done at boot time)
> - Every user has list dir access on /smb
> - There, you see each workgroup/domain available on the network
> - Then in each domain, a list of machines
> - Then in each machine, a list of shares
> - Then a list of files/dirs
> Access will be granted using the SMB token (like a kerberos ticket) 
> issued by the primary domain controller.
> It's the way the windows explorer works. It's cool and useful.
> 
> What do you think of implementing it that way? Comments?
>
> I'd like to implement it with libsmbclient.so, a samba provided lib that 
> let you have access to workgroups/machines/shares in a MS network from 
> Linux (or UNIX).
> Then, it can't be kernel only. I need a userspace daemon

I've been hoping somebody would take this on.
Question: how will you carry the SMB token around? 
Let's imagine somebody starts a script that runs two programs 
that access SMB shares, and that they're initially not logged in at all.  
If this were Windows, it would prompt them once for their username 
and password, and then allow access from then on.
If you make the SMB token a property of the process, the 2nd program
won't be able to access the files after the 1st program somehow 
triggers the user to log in.
Perhaps it should be kept in the kernel in the process group,
so all processes in a process group can use the token?
- Dan

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-06-03 23:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-02 21:00 SMB filesystem Jean-Eric Cuendet
2002-06-02 21:16 ` Thunder from the hill
2002-06-02 21:21 ` Matti Aarnio
2002-06-02 21:31 ` Marius Gedminas
2002-06-02 21:34 ` Urban Widmark
2002-06-02 22:16   ` Marius Gedminas
2002-06-03 22:45   ` Ion Badulescu
2002-06-03 23:03     ` intent-based lookups (was Re: SMB filesystem) Andreas Dilger
  -- strict thread matches above, loose matches on Subject: below --
2002-06-03  5:50 SMB filesystem Dan Kegel
2002-06-03 11:34 ` David D. Hagood
2002-06-03 14:14 ` Jean-Eric Cuendet
2002-06-03 16:22   ` Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox