08 May, 2016

1 commit


18 Mar, 2016

2 commits

  • The crc function is done bit by bit.
    Optimize this by use cryptoapi
    crc32 function which is backed by h/w acceleration.

    Signed-off-by: Keith Mok
    Signed-off-by: Jaegeuk Kim

    Keith Mok
     
  • This patch adds the renamed functions moved from the f2fs crypto files.

    1. definitions for per-file encryption used by ext4 and f2fs.

    2. crypto.c for encrypt/decrypt functions
    a. IO preparation:
    - fscrypt_get_ctx / fscrypt_release_ctx
    b. before IOs:
    - fscrypt_encrypt_page
    - fscrypt_decrypt_page
    - fscrypt_zeroout_range
    c. after IOs:
    - fscrypt_decrypt_bio_pages
    - fscrypt_pullback_bio_page
    - fscrypt_restore_control_page

    3. policy.c supporting context management.
    a. For ioctls:
    - fscrypt_process_policy
    - fscrypt_get_policy
    b. For context permission
    - fscrypt_has_permitted_context
    - fscrypt_inherit_context

    4. keyinfo.c to handle permissions
    - fscrypt_get_encryption_info
    - fscrypt_free_encryption_info

    5. fname.c to support filename encryption
    a. general wrapper functions
    - fscrypt_fname_disk_to_usr
    - fscrypt_fname_usr_to_disk
    - fscrypt_setup_filename
    - fscrypt_free_filename

    b. specific filename handling functions
    - fscrypt_fname_alloc_buffer
    - fscrypt_fname_free_buffer

    6. Makefile and Kconfig

    Cc: Al Viro
    Signed-off-by: Michael Halcrow
    Signed-off-by: Ildar Muslukhov
    Signed-off-by: Uday Savagaonkar
    Signed-off-by: Theodore Ts'o
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Jaegeuk Kim

    Jaegeuk Kim
     

22 Aug, 2015

1 commit


29 May, 2015

1 commit

  • This patch adds f2fs encryption config.

    This patch integrates:

    "ext4 crypto: require CONFIG_CRYPTO_CTR if ext4 encryption is enabled

    On arm64 this is apparently needed for CTS mode to function correctly.
    Otherwise attempts to use CTS return ENOENT."

    Signed-off-by: Michael Halcrow
    Signed-off-by: Theodore Ts'o
    Signed-off-by: Jaegeuk Kim

    Jaegeuk Kim
     

11 Apr, 2015

1 commit


10 Jan, 2015

1 commit


20 Aug, 2014

1 commit

  • Fix typo and some grammatical errors.

    The words "filesystem" and "readahead" are being used without the space treewide.

    Signed-off-by: Park Ju Hyung
    Signed-off-by: Jaegeuk Kim

    arter97
     

29 Oct, 2013

1 commit


11 Jun, 2013

1 commit

  • This patch adds the support of security labels for f2fs, which will be used
    by Linus Security Models (LSMs).

    Quote from http://en.wikipedia.org/wiki/Linux_Security_Modules:
    "Linux Security Modules (LSM) is a framework that allows the Linux kernel to
    support a variety of computer security models while avoiding favoritism toward
    any single security implementation. The framework is licensed under the terms of
    the GNU General Public License and is standard part of the Linux kernel since
    Linux 2.6. AppArmor, SELinux, Smack and TOMOYO Linux are the currently accepted
    modules in the official kernel.".

    Signed-off-by: Jaegeuk Kim

    Jaegeuk Kim
     

11 Dec, 2012

2 commits

  • There exist two build failures reported by Randy Dunlap as follows.

    (on i386)
    a. (config-r8857)
    ERROR: "f2fs_xattr_advise_handler" [fs/f2fs/f2fs.ko] undefined!

    Key configs in (config-r8857) are as follows.
    CONFIG_F2FS_FS=m
    # CONFIG_F2FS_STAT_FS is not set
    CONFIG_F2FS_FS_XATTR=y
    # CONFIG_F2FS_FS_POSIX_ACL is not set

    The error was occurred due to the function location that we made a mistake.
    Recently we added a new functionality for users to indicate cold files
    explicitly through xattr operations (i.e., f2fs_xattr_advise_handler).

    This handler should have been added in xattr.c instead of acl.c in order
    to avoid an undefined operation like in this case where XATTR is set and
    ACL is not set.

    b. (config-r8855)
    fs/f2fs/file.c: In function 'f2fs_vm_page_mkwrite':
    fs/f2fs/file.c:97:2: error: implicit declaration of function
    'block_page_mkwrite_return'

    Key config in (config-r8855) is CONFIG_BLOCK.

    Obviously, f2fs works on top of the block device so that we should consider
    carefully a sort of config dependencies.

    The reason why this error was occurred was that f2fs_vm_page_mkwrite() calls
    block_page_mkwrite_return() which is enalbed only if CONFIG_BLOCK is set.

    Reported-by: Randy Dunlap
    Signed-off-by: Jaegeuk Kim
    Acked-by: Randy Dunlap

    Jaegeuk Kim
     
  • This adds Makefile and Kconfig for f2fs, and updates Makefile and Kconfig files
    in the fs directory.

    Signed-off-by: Jaegeuk Kim

    Jaegeuk Kim