commit | d644f260665f24ba37069861c717ad55b00e9bfc | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Thu Jan 21 14:43:36 2016 -0800 |
committer | Jeff Vander Stoep <jeffv@google.com> | Thu Jan 21 14:43:36 2016 -0800 |
tree | 4c50ac86df94c1d137f1d5aa4bfe75cbb5eebff5 | |
parent | 540ea534e067fee60d522784f456c7f0e5880d6d [diff] |
fsck: allow e2fsck to stat swap_block_device In libext2fs ext2fs_check_mount_point() calls is_swap_device() to verify that a device is swap before setting the EXT2_MF_SWAP mount flag. Addresses: avc: denied { getattr } for path="/dev/block/zram0" dev="tmpfs" ino=9951 scontext=u:r:fsck:s0 tcontext=u:object_r:swap_block_device:s0 tclass=blk_file Bug: 22821100 Change-Id: Ic7a1b6f83b34a40bf4bd35a1564300c58ca27089