utimensat: re-apply: fix immutable file retcodes for 4.8.0 and newer.

As mentioned in thread "utimensat EACCES vs. EPERM in 4.8+" [1],
there is a conflict between kernel and man pages, that has not
been resolved for several releases. This re-applies the patch
to get test aligned with kernel behaviour.

[1] http://www.spinics.net/lists/linux-fsdevel/msg106449.html
---

Kernel 4.8.0 contains patch "337684a fs: return EPERM on immutable inode" that
makes operations on immutable files return EPERM instead of EACCESS.

Adjust utimensat test to check new retcode for kernels 4.8.0 and newer.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
1 file changed