# 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-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 17ae69aba89dbfa2139b7f8024b757ab3cc42f59 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd70e60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd60734) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6540015 Bytes = 6386.73 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6505967 Bytes = 6353.48 KiB = 6.20 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6538033 Bytes = 6384.80 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6538043 Bytes = 6384.81 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6540069 Bytes = 6386.79 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6538072 Bytes = 6384.84 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6537292 Bytes = 6384.07 KiB = 6.23 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6538644 Bytes = 6385.39 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6537412 Bytes = 6384.19 KiB = 6.23 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6537942 Bytes = 6384.71 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6537223 Bytes = 6384.01 KiB = 6.23 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6537968 Bytes = 6384.73 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6537411 Bytes = 6384.19 KiB = 6.23 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6538010 Bytes = 6384.78 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6538682 Bytes = 6385.43 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.12.0-g17ae69aba89d Created: Sun May 2 14:00:34 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6537969 Bytes = 6384.74 KiB = 6.24 MiB Load Address: 00e00000 Entry Point: 00e002a4 Completed OK # rm -rf /kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 # Build took: 0:02:30.319212