[RFC 1/1] xattr: provide integrity. namespace to read real values

2013-02-13 Thread Dmitry Kasatkin
. getfattr -e text -n integrity.SMACK64 foo # file: foo integrity.SMACK64=hello world Suggested-by: Casey Schaufler ca...@schaufler-ca.com Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- fs/xattr.c | 22 +++--- include/uapi/linux/xattr.h |4

[PATCH v1 1/1] ima: digital signature verification using asymmetric keys

2013-02-06 Thread Dmitry Kasatkin
is reduced to 32 bits to save xattr space. Key search is done using partial match functionality of asymmetric_key_match(). - Kconfig option title was changed Signed-off-by: Dmitry Kasatkin Acked-by: David Howells --- security/integrity/Kconfig | 12 security/integrit

[PATCH v1 1/1] ima: digital signature verification using asymmetric keys

2013-02-06 Thread Dmitry Kasatkin
bits to save xattr space. Key search is done using partial match functionality of asymmetric_key_match(). - Kconfig option title was changed Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com Acked-by: David Howells dhowe...@redhat.com --- security/integrity/Kconfig | 12

[RFC 1/2] export unpack_to_rootfs

2013-02-05 Thread Dmitry Kasatkin
Signed-off-by: Dmitry Kasatkin --- init/do_mounts.h |2 ++ init/initramfs.c |2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.h b/init/do_mounts.h index f5b978a..11829eb 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -74,3 +74,5 @@ void

[RFC 2/2] initramfs with digital signature protection

2013-02-05 Thread Dmitry Kasatkin
-tools hooks, for example, by creating /etc/initramfs-tools/hooks/initramfs_sig.sh, and adding following lines there: #!/bin/sh . /usr/share/initramfs-tools/hook-functions copy_exec /initramfs-sig.img Signed-off-by: Dmitry Kasatkin --- init/Kconfig |7 +++ init/Makefile

[RFC 0/2] initramfs with digital signature protection

2013-02-05 Thread Dmitry Kasatkin
This an RFC for the signed initramfs images, which can be used to provide verified initial user-space. Please read patch description for the detailed explanation. BR, Dmitry Dmitry Kasatkin (2): export unpack_to_rootfs initramfs with digital signature protection init/Kconfig |7

[RFC 0/2] initramfs with digital signature protection

2013-02-05 Thread Dmitry Kasatkin
This an RFC for the signed initramfs images, which can be used to provide verified initial user-space. Please read patch description for the detailed explanation. BR, Dmitry Dmitry Kasatkin (2): export unpack_to_rootfs initramfs with digital signature protection init/Kconfig |7

[RFC 2/2] initramfs with digital signature protection

2013-02-05 Thread Dmitry Kasatkin
-tools hooks, for example, by creating /etc/initramfs-tools/hooks/initramfs_sig.sh, and adding following lines there: #!/bin/sh . /usr/share/initramfs-tools/hook-functions copy_exec /initramfs-sig.img Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- init/Kconfig |7

[RFC 1/2] export unpack_to_rootfs

2013-02-05 Thread Dmitry Kasatkin
Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- init/do_mounts.h |2 ++ init/initramfs.c |2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.h b/init/do_mounts.h index f5b978a..11829eb 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h

[PATCH 1/1] digsig: Fix memory leakage in digsig_verify_rsa()

2013-01-25 Thread Dmitry Kasatkin
From: YOSHIFUJI Hideaki digsig_verify_rsa() does not free kmalloc'ed buffer returned by mpi_get_buffer(). Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Dmitry Kasatkin Cc: sta...@vger.kernel.org --- lib/digsig.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/digsig.c b/lib

[PATCH 1/1] digsig: Fix memory leakage in digsig_verify_rsa()

2013-01-25 Thread Dmitry Kasatkin
From: YOSHIFUJI Hideaki yoshf...@linux-ipv6.org digsig_verify_rsa() does not free kmalloc'ed buffer returned by mpi_get_buffer(). Signed-off-by: YOSHIFUJI Hideaki yoshf...@linux-ipv6.org Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com Cc: sta...@vger.kernel.org --- lib/digsig.c |2

[PATCH v3 1/1] dm-integrity: integrity protection device-mapper target

2013-01-22 Thread Dmitry Kasatkin
e specific, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin --- Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig | 13 +

[PATCH v3 0/1] dm-integrity: integrity protection device-mapper target

2013-01-22 Thread Dmitry Kasatkin
ed new option 'zero_on_error' to return zeroed block instead of an error default behavior is to return an error - improved error printing -Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.txt | 137 drive

[PATCH v3 0/1] dm-integrity: integrity protection device-mapper target

2013-01-22 Thread Dmitry Kasatkin
'zero_on_error' to return zeroed block instead of an error default behavior is to return an error - improved error printing -Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig

[PATCH v3 1/1] dm-integrity: integrity protection device-mapper target

2013-01-22 Thread Dmitry Kasatkin
, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig

[PATCH v2.1 1/1] dm-integrity: integrity protection device-mapper target

2013-01-15 Thread Dmitry Kasatkin
e specific, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin --- Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig | 13 +

[PATCH v2.1 0/1] dm-integrity: integrity protection device-mapper target

2013-01-15 Thread Dmitry Kasatkin
yption. I addressed all comments I got so far. Can it be now added to the DM tree? - Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig | 13 + drivers/m

[RFC 0/1] ima/evm: signature verification support using asymmetric keys

2013-01-15 Thread Dmitry Kasatkin
signature format. BR, Dmitry Dmitry Kasatkin (1): ima: digital signature verification using asymmetric keys security/integrity/Kconfig | 12 + security/integrity/digsig.c | 103 ++- 2 files changed, 114 insertions(+), 1 deletion(-) -- 1.7.10.4

[RFC 0/1] ima/evm: signature verification support using asymmetric keys

2013-01-15 Thread Dmitry Kasatkin
signature format. BR, Dmitry Dmitry Kasatkin (1): ima: digital signature verification using asymmetric keys security/integrity/Kconfig | 12 + security/integrity/digsig.c | 103 ++- 2 files changed, 114 insertions(+), 1 deletion(-) -- 1.7.10.4

[PATCH v2.1 0/1] dm-integrity: integrity protection device-mapper target

2013-01-15 Thread Dmitry Kasatkin
addressed all comments I got so far. Can it be now added to the DM tree? - Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig | 13 + drivers/md/Makefile

[PATCH v2.1 1/1] dm-integrity: integrity protection device-mapper target

2013-01-15 Thread Dmitry Kasatkin
, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig

[PATCHv2 1/1] dm-integrity: integrity protection device-mapper target

2012-11-26 Thread Dmitry Kasatkin
e specific, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin --- Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig | 13 +

[PATCHv2 0/1] dm-integrity: integrity protection device-mapper target

2012-11-26 Thread Dmitry Kasatkin
added sync mode flag to handle reboot notifications - added discards handling - use DM functions for printing kernel messages - Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.txt | 137 drivers/

[PATCHv2 0/1] dm-integrity: integrity protection device-mapper target

2012-11-26 Thread Dmitry Kasatkin
mode flag to handle reboot notifications - added discards handling - use DM functions for printing kernel messages - Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig

[PATCHv2 1/1] dm-integrity: integrity protection device-mapper target

2012-11-26 Thread Dmitry Kasatkin
, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- Documentation/device-mapper/dm-integrity.txt | 137 drivers/md/Kconfig

[PATCH 1/2] vfs: new super block feature flags attribute

2012-11-22 Thread Dmitry Kasatkin
will not be measured and appraised and test this flag during subsequent calls to skip policy search. Signed-off-by: Dmitry Kasatkin --- include/linux/fs.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index b33cfc9..0bef2b2 100644 --- a/include

[PATCH 0/2] ima: policy search speedup

2012-11-22 Thread Dmitry Kasatkin
such approach? Thanks, Dmitry Dmitry Kasatkin (2): vfs: new super block feature flags attribute ima: skip policy search for never appraised or measured files include/linux/fs.h |4 security/integrity/ima/ima_api.c|8 ++-- security/integrity/ima/ima_policy.c | 20

[PATCH 1/2] vfs: new super block feature flags attribute

2012-11-22 Thread Dmitry Kasatkin
will not be measured and appraised and test this flag during subsequent calls to skip policy search. Signed-off-by: Dmitry Kasatkin --- include/linux/fs.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index b33cfc9..0bef2b2 100644 --- a/include

[PATCH 1/2] vfs: new super block feature flags attribute

2012-11-22 Thread Dmitry Kasatkin
will not be measured and appraised and test this flag during subsequent calls to skip policy search. Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- include/linux/fs.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index b33cfc9..0bef2b2

[PATCH 0/2] ima: policy search speedup

2012-11-22 Thread Dmitry Kasatkin
such approach? Thanks, Dmitry Dmitry Kasatkin (2): vfs: new super block feature flags attribute ima: skip policy search for never appraised or measured files include/linux/fs.h |4 security/integrity/ima/ima_api.c|8 ++-- security/integrity/ima/ima_policy.c | 20

[PATCH 1/2] vfs: new super block feature flags attribute

2012-11-22 Thread Dmitry Kasatkin
will not be measured and appraised and test this flag during subsequent calls to skip policy search. Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- include/linux/fs.h |4 1 file changed, 4 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index b33cfc9..0bef2b2

[PATCH 1/1] dm-integrity: integrity protection device-mapper target

2012-09-24 Thread Dmitry Kasatkin
e specific, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin --- Documentation/device-mapper/dm-integrity.txt | 125 drivers/md/Kconfig | 12 +

[PATCH 0/1] dm-integrity: integrity protection device-mapper target

2012-09-24 Thread Dmitry Kasatkin
-integrity provides a lighter weight read-write block level integrity protection for file systems not requiring full disk encryption, but which do require writability. - Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.

[PATCH 0/1] dm-integrity: integrity protection device-mapper target

2012-09-24 Thread Dmitry Kasatkin
a lighter weight read-write block level integrity protection for file systems not requiring full disk encryption, but which do require writability. - Dmitry Dmitry Kasatkin (1): dm-integrity: integrity protection device-mapper target Documentation/device-mapper/dm-integrity.txt | 125

[PATCH 1/1] dm-integrity: integrity protection device-mapper target

2012-09-24 Thread Dmitry Kasatkin
, binds integrity data to the device. As a result data blocks and corresponding HMACs cannot simply be copied over from other file systems. Signed-off-by: Dmitry Kasatkin dmitry.kasat...@intel.com --- Documentation/device-mapper/dm-integrity.txt | 125 drivers/md/Kconfig

<    3   4   5   6   7   8