# git rev-parse -q --verify 17ae69aba89dbfa2139b7f8024b757ab3cc42f59^{commit} 17ae69aba89dbfa2139b7f8024b757ab3cc42f59 already have revision, skipping fetch # git checkout -q -f -B kisskb 17ae69aba89dbfa2139b7f8024b757ab3cc42f59 # git clean -qxdf # < git log -1 # commit 17ae69aba89dbfa2139b7f8024b757ab3cc42f59 # Merge: e6f0bf09f066 3532b0b4352c # Author: Linus Torvalds # Date: Sat May 1 18:50:44 2021 -0700 # # Merge tag 'landlock_v34' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security # # Pull Landlock LSM from James Morris: # "Add Landlock, a new LSM from Mickaël Salaün. # # Briefly, Landlock provides for unprivileged application sandboxing. # # From Mickaël's cover letter: # "The goal of Landlock is to enable to restrict ambient rights (e.g. # global filesystem access) for a set of processes. Because Landlock # is a stackable LSM [1], it makes possible to create safe security # sandboxes as new security layers in addition to the existing # system-wide access-controls. This kind of sandbox is expected to # help mitigate the security impact of bugs or unexpected/malicious # behaviors in user-space applications. Landlock empowers any # process, including unprivileged ones, to securely restrict # themselves. # # Landlock is inspired by seccomp-bpf but instead of filtering # syscalls and their raw arguments, a Landlock rule can restrict the # use of kernel objects like file hierarchies, according to the # kernel semantic. Landlock also takes inspiration from other OS # sandbox mechanisms: XNU Sandbox, FreeBSD Capsicum or OpenBSD # Pledge/Unveil. # # In this current form, Landlock misses some access-control features. # This enables to minimize this patch series and ease review. This # series still addresses multiple use cases, especially with the # combined use of seccomp-bpf: applications with built-in sandboxing, # init systems, security sandbox tools and security-oriented APIs [2]" # # The cover letter and v34 posting is here: # # https://lore.kernel.org/linux-security-module/20210422154123.13086-1-mic@digikod.net/ # # See also: # # https://landlock.io/ # # This code has had extensive design discussion and review over several # years" # # Link: https://lore.kernel.org/lkml/50db058a-7dde-441b-a7f9-f6837fe8b69f@schaufler-ca.com/ [1] # Link: https://lore.kernel.org/lkml/f646e1c7-33cf-333f-070c-0a40ad0468cd@digikod.net/ [2] # # * tag 'landlock_v34' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: # landlock: Enable user space to infer supported features # landlock: Add user and kernel documentation # samples/landlock: Add a sandbox manager example # selftests/landlock: Add user space tests # landlock: Add syscall implementations # arch: Wire up Landlock syscalls # fs,security: Add sb_delete hook # landlock: Support filesystem access-control # LSM: Infrastructure management of the superblock # landlock: Add ptrace restrictions # landlock: Set up the security framework and manage credentials # landlock: Add ruleset and domain management # landlock: Add object management # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 17ae69aba89dbfa2139b7f8024b757ab3cc42f59 # < make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- defconfig # < make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- help # make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- olddefconfig # make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-defconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- FIT description: Linux 5.12.0-g17ae69aba89d Created: Sun May 2 15:14:52 2021 Image 0 (kernel) Description: Linux 5.12.0-g17ae69aba89d Created: Sun May 2 15:14:52 2021 Type: Kernel Image Compression: gzip compressed Data Size: 5325235 Bytes = 5200.42 KiB = 5.08 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x809cb5c4 Hash algo: sha1 Hash value: 513c214e7ef41ae90659dbf79cde9b218a180391 Image 1 (fdt-boston) Description: img,boston Device Tree Created: Sun May 2 15:14:52 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt-ni169445) Description: NI 169445 device tree Created: Sun May 2 15:14:52 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt-ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Sun May 2 15:14:52 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 4659 Bytes = 4.55 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 5bcb6e4f21e8e5372544aa130b3bd097355a9050 Image 4 (fdt-ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Sun May 2 15:14:52 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 5418 Bytes = 5.29 KiB = 0.01 MiB Architecture: MIPS Hash algo: sha1 Hash value: 93d882f2009a217e0fa9dab94788535ed2be8476 Image 5 (fdt-xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Sun May 2 15:14:52 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf-default' Configuration 0 (conf-default) Description: Generic Linux kernel Kernel: kernel Configuration 1 (conf-boston) Description: Boston Linux kernel Kernel: kernel FDT: fdt-boston Configuration 2 (conf-ni169445) Description: NI 169445 Linux Kernel Kernel: kernel FDT: fdt-ni169445 Configuration 3 (conf-ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel FDT: fdt-ocelot_pcb123 Configuration 4 (conf-ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel FDT: fdt-ocelot_pcb120 Configuration 5 (conf-xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel FDT: fdt-xilfpga Completed OK # rm -rf /kisskb/build/linus_mips-defconfig_mips-gcc8 # Build took: 0:01:47.785372