[dm-devel] [dm- devel][PATCH] libmultipath: fix a memory leak in dm_get_maps

2020-07-29 Thread lixiaokeng
In dm_get_maps func, if vector_alloc_slot(mp) fails, the mpp should be free. Here we call free_multipath(mpp, KEEP_PATHS) to free map. Signed-off-by: Lixiaokeng Signed-off-by: Zhiqiang Liu --- libmultipath/devmapper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[dm-devel] [RFC PATCH v6 03/11] security: add ipe lsm policy parser and policy loading

2020-07-29 Thread Deven Bowers
Adds the policy parser and the policy loading to IPE, along with the related securityfs entries and audit events. Signed-off-by: Deven Bowers --- security/ipe/Kconfig |2 + security/ipe/Makefile|3 + security/ipe/ipe-audit.c | 74 +-

[dm-devel] [RFC PATCH v6 09/11] ipe: add property for dmverity roothash

2020-07-29 Thread Deven Bowers
Add a property to allow IPE policy to express rules around a specific root-hash of a dm-verity volume. This can be used for revocation, (when combined with the previous dm-verity property) or the authorization of a single dm-verity volume. Signed-off-by: Deven Bowers ---

[dm-devel] [RFC PATCH v6 08/11] dm-verity: add bdev_setsecurity hook for root-hash

2020-07-29 Thread Deven Bowers
Add a security hook call to set a security property of a block_device in dm-verity with the root-hash that was passed to device-mapper. Signed-off-by: Deven Bowers --- drivers/md/dm-verity-target.c | 8 include/linux/device-mapper.h | 1 + 2 files changed, 9 insertions(+) diff --git

[dm-devel] [RFC PATCH v6 05/11] fs: add security blob and hooks for block_device

2020-07-29 Thread Deven Bowers
Add a security blob and associated allocation, deallocation and set hooks for a block_device structure. Signed-off-by: Deven Bowers --- fs/block_dev.c| 8 include/linux/fs.h| 1 + include/linux/lsm_hook_defs.h | 5 +++ include/linux/lsm_hooks.h | 12

[dm-devel] [RFC PATCH v6 07/11] ipe: add property for signed dmverity volumes

2020-07-29 Thread Deven Bowers
Allow IPE to leverage the stacked security blob infrastructure, and enlighten IPE to the block_device security blob. This allows IPE to have a property to express rules around a device-mapper verity volume whose root-hash has been signed, and the signature has been verified against the system

[dm-devel] [RFC PATCH v6 10/11] documentation: add ipe documentation

2020-07-29 Thread Deven Bowers
Add IPE's documentation to the kernel tree. Signed-off-by: Deven Bowers Acked-by: Jonathan Corbet --- Documentation/admin-guide/LSM/index.rst | 1 + Documentation/admin-guide/LSM/ipe.rst | 508 ++ .../admin-guide/kernel-parameters.txt | 12 +

[dm-devel] [RFC PATCH v6 04/11] ipe: add property for trust of boot volume

2020-07-29 Thread Deven Bowers
Add a property for IPE policy to express trust of the first superblock where a file would be evaluated to determine trust. Signed-off-by: Deven Bowers --- security/ipe/Kconfig| 2 + security/ipe/Makefile | 4 ++ security/ipe/ipe-engine.c |

[dm-devel] [RFC PATCH v6 00/11] Integrity Policy Enforcement LSM (IPE)

2020-07-29 Thread Deven Bowers
Overview: IPE is a Linux Security Module which allows for a configurable policy to enforce integrity requirements on the whole system. It attempts to solve the issue of Code Integrity: that any code being executed (or files being read), are identical to the

[dm-devel] [RFC PATCH v6 02/11] security: add ipe lsm evaluation loop and audit system

2020-07-29 Thread Deven Bowers
Add the core logic of the IPE LSM, the evaluation loop (engine), a portion of the audit system, and the skeleton of the policy structure. Signed-off-by: Deven Bowers --- MAINTAINERS | 1 + include/uapi/linux/audit.h | 4 + security/Kconfig | 12 +-

[dm-devel] [RFC PATCH v6 01/11] scripts: add ipe tooling to generate boot policy

2020-07-29 Thread Deven Bowers
Add a tool for the generation of an IPE policy to be compiled into the kernel. This policy will be enforced until userland deploys and activates a new policy. Signed-off-by: Deven Bowers --- MAINTAINERS | 6 ++ scripts/Makefile | 1 + scripts/ipe/Makefile

[dm-devel] [RFC PATCH v6 06/11] dm-verity: add bdev_setsecurity hook for dm-verity signature

2020-07-29 Thread Deven Bowers
Add a security hook call to set a security property of a block_device in dm-verity with the results of a verified, signed root-hash. Signed-off-by: Deven Bowers --- drivers/md/dm-verity-target.c | 2 +- drivers/md/dm-verity-verify-sig.c | 14 +++---

[dm-devel] [RFC PATCH v6 11/11] cleanup: uapi/linux/audit.h

2020-07-29 Thread Deven Bowers
Remove trailing whitespaces and align the integrity #defines in linux/uapi/audit.h Signed-off-by: Deven Bowers --- include/uapi/linux/audit.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/uapi/linux/audit.h

Re: [dm-devel] [RFC PATCH v5 05/11] fs: add security blob and hooks for block_device

2020-07-29 Thread Casey Schaufler
On 7/28/2020 2:36 PM, Deven Bowers wrote: > Add a security blob and associated allocation, deallocation and set hooks > for a block_device structure. > > Signed-off-by: Deven Bowers > --- > fs/block_dev.c| 8 > include/linux/fs.h| 1 + >