summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorkatao <katao@xiaomi.com>2017-07-05 16:00:54 +0800
committerkatao <katao@xiaomi.com>2017-07-21 11:35:35 +0800
commit4e8d73fa0c16b8e5a751fa257b320a01147b2c60 (patch)
tree618d75018c4b588488baa01b960eb4ffed8223ee /libcutils/socket_local_server_unix.cpp
parente3d470b81d3bbb4e6507c92ee94bc98907d08c29 (diff)
fs_mgr:Add filter condition to make sure that the super block is correct.
Because full disk encryption make surper block is not except contents. Only judge the magic number can prevent most of encrypted surper block. In particular, magic number plaintext may be equal ciphertext. In order to avoid this situation, we add the judgment of adaptive situation of the s_rev_level, s_log_block_size and EXT4_INODE_SIZE. Test: 1. Config fstab,userdata add flags: forceencrypt=footer,reservedsize=128M 2. build a new target files, and flash all image. 3. Config encrypt userdata surperblock,set magic number is 0xEF53 4. reboot system and check log of fs_mgr. Change-Id: I925584d58f17afabbb3aa91f8be2302518172bb2 Signed-off-by: katao <katao@xiaomi.com>
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions