kinvolk-archives / fuse-userns-patches

Kernel patches for non-init user namespace on FUSE filesystem
4 stars 0 forks source link
fuse kernel kinvolk linux user-namespaces

Kernel patches for non-init user namespace on FUSE filesystem

How to apply

$ git clone git@github.com:kinvolk/fuse-userns-patches.git

$ git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable
$ pushd linux-stable
$ git checkout v4.15-rc1
$ git am ../fuse-userns-patches/patches/00*.patch

How to send patches to kernel mailing lists

Let's assume that the all the required configurations are done in git config, and all the recipients are correctly set in individual patches as well.

$ git send-email \
  --thread \
  --from="Dongsu Park <dongsu@kinvolk.io>" \
  --to=linux-kernel@vger.kernel.org \
  --cc=containers@lists.linux-foundation.org \
  --cc="Alban Crequy <alban@kinvolk.io>" \
  --cc="Dongsu Park <dongsu@kinvolk.io>" \
  --cc="Eric W. Biederman <ebiederm@xmission.com>" \
  --cc="Miklos Szeredi <mszeredi@redhat.com>" \
  --cc="Seth Forshee <seth.forshee@canonical.com>" \
  --bcc="Dongsu Park <dongsu@kinvolk.io>" \
  patches/00*.patch

Cover letter

Cover letter is available: ./patches/0000-cover-letter.patch

How to generate a cover letter

Assuming that there are 12 patches on top of the upstream master, (e.g. v4.15-rc1), generate patches from the kernel git repo:

$ git format-patch -12 --cover-letter --subject-prefix="PATCH v6"

Then the cover letter 0000-cover-letter.patch will be generated.