]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mnt: Update unprivileged remount test
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 22 Aug 2014 21:39:03 +0000 (16:39 -0500)
committerJiri Slaby <jslaby@suse.cz>
Wed, 7 Jan 2015 16:55:09 +0000 (17:55 +0100)
commitc7c5d7123d0b13ed4f4631061080f7b1d6dcfd98
tree539e62dc95ae96fe59446a5f1d47763d54f15d5a
parenta4c2b660f35a1f1201cea27d5fbad41482b191fc
mnt: Update unprivileged remount test

commit 4a44a19b470a886997d6647a77bb3e38dcbfa8c5 upstream.

- MNT_NODEV should be irrelevant except when reading back mount flags,
  no longer specify MNT_NODEV on remount.

- Test MNT_NODEV on devpts where it is meaningful even for unprivileged mounts.

- Add a test to verify that remount of a prexisting mount with the same flags
  is allowed and does not change those flags.

- Cleanup up the definitions of MS_REC, MS_RELATIME, MS_STRICTATIME that are used
  when the code is built in an environment without them.

- Correct the test error messages when tests fail.  There were not 5 tests
  that tested MS_RELATIME.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
tools/testing/selftests/mount/unprivileged-remount-test.c