Revert "->permission() sanitizing: don't pass flags to ->inode_permission()"

This reverts commit f4e74afc79015d76f74882087d8264dd0e23c37a.