Git Product home page Git Product logo

cifsd's Introduction

Content

What is CIFSD?

CIFSD is an opensource In-kernel CIFS/SMB3 server created by Namjae Jeon for Linux Kernel. It's an implementation of SMB/CIFS protocol in kernel space for sharing files and IPC services over network. Initially the target is to provide improved file I/O performances, but the bigger goal is to have some new features which are much easier to develop and maintain inside the kernel and expose the layers fully. Directions can be attributed to sections where SAMBA is moving to few modules inside the kernel to have features like RDMA(Remote direct memory access) to work with actual performance gain.

Under PFIF

This code was developed in participation with the Protocol Freedom Information Foundation.

Please see

Git

The development git tree is available at

Maintainers

Bug reports or contribution

For reporting bugs and sending patches, please send the patches to the following mail address:

or open issues/send PRs to CIFSD.

Installing as a stand-alone module

Install prerequisite package for Fedora, RHEL:

	yum install kernel-devel-$(uname -r)

Build step:

	make
	sudo make install

To load the driver manually, run this as root:

	modprobe ksmbd

Installing as a part of the kernel

  1. Let's take [linux] as the path to your kernel source dir.
	cd [linux]
	cp -ar cifsd [linux]/fs/
  1. edit [linux]/fs/Kconfig
	source "fs/cifs/Kconfig"
	+source "fs/cifsd/Kconfig"
	source "fs/coda/Kconfig"
  1. edit [linux]/fs/Makefile
	obj-$(CONFIG_CIFS)              += cifs/
	+obj-$(CONFIG_SMB_SERVER)       += cifsd/
	obj-$(CONFIG_HPFS_FS)           += hpfs/
  1. make menuconfig and set cifsd
	[*] Network File Systems  --->
		<M>   SMB server support

build your kernel

Features

Implemented

  1. SMB1(CIFS), SMB2/3 protocols for basic file sharing
  2. Dynamic crediting
  3. Compound requests
  4. oplock/lease
  5. Large MTU
  6. NTLM/NTLMv2
  7. Auto negotiation
  8. HMAC-SHA256 Signing
  9. Secure negotiate
  10. Signing Update
  11. Pre-authentication integrity(SMB 3.1.1)
  12. SMB3 encryption(CCM, GCM)
  13. SMB direct(RDMA)

Planned

  1. Multi-channel
  2. Durable handle v1/v2
  3. Kerberos
  4. Persistent handles
  5. Directory lease
  6. Win-ACL

Supported Linux Kernel Versions

  • Linux Kernel 4.1 or later

CIFSD architecture

               |--- ...
       --------|--- ksmbd/3 - Client 3
       |-------|--- ksmbd/2 - Client 2
       |       |         _____________________________________________________
       |       |        |- Client 1                                           |
<--- Socket ---|--- ksmbd/1   <<= Authentication : NTLM/NTLM2, Kerberos(TODO)|
       |       |      | |      <<= SMB : SMB1, SMB2, SMB2.1, SMB3, SMB3.0.2,  |
       |       |      | |                SMB3.1.1                             |
       |       |      | |_____________________________________________________|
       |       |      |
       |       |      |--- VFS --- Local Filesystem
       |       |
KERNEL |--- ksmbd/0(forker kthread)
---------------||---------------------------------------------------------------
USER           ||
               || communication using NETLINK
               ||  ______________________________________________
               || |                                              |
        ksmbd.mountd <<= DCE/RPC, WINREG                         |
               ^  |  <<= configure shares setting, user accounts |
               |  |______________________________________________|
               |
               |------ smb.conf(config file)
               |
               |------ ksmbdpwd.db(user account/password file)
                            ^
  ksmbd.adduser ---------------|

cifsd's People

Contributors

namjaejeon avatar sergey-senozhatsky avatar hclee avatar tymok avatar launius avatar pankajs01 avatar sahrawatamit avatar gibeomii-kim avatar xdarklight avatar brainslayer avatar neheb avatar ahubchak avatar dengqf6 avatar haythem-zd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.