From 81cb4740de3ac2a790f1c093eba5f064ced0a2a5 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Tue, 15 Mar 2011 09:39:26 -0400 Subject: [PATCH] Update comment about validating requested filesystem type Signed-off-by: David Zeuthen --- src/device.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/device.c b/src/device.c index bee68e0..261e45e 100644 --- a/src/device.c +++ b/src/device.c @@ -6353,12 +6353,13 @@ device_filesystem_mount_authorized_cb (Daemon *daemon, * filesystem type is * * - well-known [1]; or - * - in the /etc/filesystems file; or - * - in the /proc/filesystems file + * - in the /proc/filesystems file; or + * - in the /etc/filesystems file * - * We do this because mount(8) on Linux allows loading any arbitrary - * kernel module (when invoked as root) by passing something appropriate - * to the -t option. So we have to validate whatever we pass. + * in that order. We do this because mount(8) on Linux allows + * loading any arbitrary kernel module (when invoked as root) by + * passing something appropriate to the -t option. So we have to + * validate whatever we pass... * * See https://bugs.freedesktop.org/show_bug.cgi?id=32232 for more * details. -- 2.7.4