diff --git a/file_contexts b/file_contexts
index 4325cf3daa3141bd8241cd2c076c0e8a6bb4b88d..416d78396bb4de9d50a48b9c1ca1d8aa84319c40 100644
--- a/file_contexts
+++ b/file_contexts
@@ -126,6 +126,7 @@
 #
 /system(/.*)?		u:object_r:system_file:s0
 /system/bin/e2fsck	--	u:object_r:fsck_exec:s0
+/system/bin/fsck\.f2fs	--	u:object_r:fsck_exec:s0
 /system/bin/toolbox	--	u:object_r:toolbox_exec:s0
 /system/bin/logcat	--	u:object_r:logcat_exec:s0
 /system/bin/sh		--	u:object_r:shell_exec:s0
diff --git a/fsck.te b/fsck.te
index d25517532922a4dcf6d3c2b40a9766a91b49ad80..dd696d51e3c184764dc5b18855552d2562a747aa 100644
--- a/fsck.te
+++ b/fsck.te
@@ -10,7 +10,7 @@ init_daemon_domain(fsck)
 allow fsck tmpfs:chr_file { read write ioctl };
 
 # Inherit and use pty created by android_fork_execvp_ext().
-allow fsck devpts:chr_file { read write ioctl };
+allow fsck devpts:chr_file { read write ioctl getattr };
 
 # Run e2fsck on block devices.
 # TODO:  Assign userdata and cache block device types to the corresponding