android_kernel_samsung_msm8976/tools
Eric W. Biederman bbeed681a5 mnt: Add tests for unprivileged remount cases that have found to be faulty
commit db181ce011e3c033328608299cd6fac06ea50130 upstream.

Kenton Varda <kenton@sandstorm.io> discovered that by remounting a
read-only bind mount read-only in a user namespace the
MNT_LOCK_READONLY bit would be cleared, allowing an unprivileged user
to the remount a read-only mount read-write.

Upon review of the code in remount it was discovered that the code allowed
nosuid, noexec, and nodev to be cleared.  It was also discovered that
the code was allowing the per mount atime flags to be changed.

The first naive patch to fix these issues contained the flaw that using
default atime settings when remounting a filesystem could be disallowed.

To avoid this problems in the future add tests to ensure unprivileged
remounts are succeeding and failing at the appropriate times.

Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-17 09:04:00 -07:00
..
cgroup cgroups: fix cgroup_event_listener error handling 2013-01-08 10:00:44 -08:00
firewire
hv Tools: hv: KVP: Fix a bug in IPV6 subnet enumeration 2013-08-04 16:50:58 +08:00
include/tools
lguest lguest: fix paths in comments 2013-03-07 09:56:46 +11:00
lib tools lib lk: Uninclude linux/magic.h in debugfs.c 2013-10-05 07:13:10 -07:00
net filter: add minimal BPF JIT image disassembler 2013-03-21 11:35:41 -04:00
nfsd
perf perf evsel: Fix printing of perf_event_paranoid message 2014-06-11 12:03:22 -07:00
power turbostat: Use GCC's CPUID functions to support PIC 2014-02-13 13:48:00 -08:00
scripts perf tools: Correct Makefile.include 2013-03-15 13:05:59 -03:00
testing mnt: Add tests for unprivileged remount cases that have found to be faulty 2014-09-17 09:04:00 -07:00
usb tools: ffs-test: fix header values endianess 2014-07-09 11:14:02 -07:00
virtio tools/virtio: remove virtqueue_add_buf() from tests. 2013-03-20 15:45:07 +10:30
vm tools/vm: Switch to liblk library 2013-03-15 13:06:01 -03:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2013-05-01 14:08:52 -07:00