15 Dec, 2015

1 commit

  • A crypto HW kernel module can possibly initialize the EVM key from the
    kernel __init code to enable EVM before calling the 'init' process.
    This patch provides a function evm_set_key() to set the EVM key
    directly without using the KEY subsystem.

    Changes in v4:
    * kernel-doc style for evm_set_key

    Changes in v3:
    * error reporting moved to evm_set_key
    * EVM_INIT_HMAC moved to evm_set_key
    * added bitop to prevent key setting race

    Changes in v2:
    * use size_t for key size instead of signed int
    * provide EVM_MAX_KEY_SIZE macro in
    * provide EVM_MIN_KEY_SIZE macro in

    Signed-off-by: Dmitry Kasatkin
    Signed-off-by: Mimi Zohar

    Dmitry Kasatkin
     

27 Mar, 2013

1 commit


15 Sep, 2011

1 commit

  • The posix xattr acls are 'system' prefixed, which normally would not
    affect security.evm. An interesting side affect of writing posix xattr
    acls is their modifying of the i_mode, which is included in security.evm.

    This patch updates security.evm when posix xattr acls are written.

    Signed-off-by: Mimi Zohar

    Mimi Zohar
     

11 Aug, 2011

2 commits

  • evm_inode_init_security() should return 0, when EVM is not enabled.
    (Returning an error is a remnant of evm_inode_post_init_security.)

    Signed-off-by: Mimi Zohar
    Signed-off-by: James Morris

    Mimi Zohar
     
  • - Missing 'inline' on evm_inode_setattr() definition.
    Introduced by commit 817b54aa45db ("evm: add evm_inode_setattr to prevent
    updating an invalid security.evm").

    - Missing security_old_inode_init_security() stub function definition.
    Caused by commit 9d8f13ba3f48 ("security: new security_inode_init_security
    API adds function callback").

    Reported-by: Stephen Rothwell
    Signed-off-by: Mimi Zohar
    Signed-off-by: James Morris

    Mimi Zohar
     

19 Jul, 2011

6 commits