util-linux/mount
Masatake YAMATO d33279c2e3 lomount.c: don't use mlockall if CRYPT_NONE
loop back mounting emits two system calls: mount and mlockall.
mount is obviously needed. mlockall is needed for encryption.
As the result both CAP_SYS_ADMIN and CAP_IPC_LOCK are needed
to do loopback mounting.

The problem is that CAP_IPC_LOCK is always needed through my
command doesn't need encryption.

With the following patch, mount calls mlockall only when
encryption is needed.

Signed-off-by: Masatake YAMATO <jet@gyve.org>
2007-07-10 14:05:45 +02:00
..
h Imported from util-linux-2.12a tarball. 2006-12-07 00:26:14 +01:00
Makefile.am build-sys: factor out common parts from mount/Makefile.am 2007-05-22 23:38:06 +02:00
README.mount build-sys: rename to -ng, change maintainer name 2007-01-04 13:44:06 +01:00
fsprobe.c mount: needs to handle special mountprog even on guessed file systems. 2007-06-28 01:23:49 +02:00
fsprobe.h mount: needs to handle special mountprog even on guessed file systems. 2007-06-28 01:23:49 +02:00
fsprobe_blkid.c mount: fsprobe: use blkid cache only when really necessary 2007-05-17 12:52:40 +02:00
fsprobe_volumeid.c mount: use encoded labels for volume_id 2007-06-26 12:53:16 +02:00
fstab.5 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
fstab.c mount: rewrite getfs_by_specdir() without mem leaks 2007-06-15 15:47:22 +02:00
fstab.h mount: clean up getfs* (fstab.c) interface 2007-05-25 11:18:37 +02:00
getusername.c Imported from util-linux-2.9i tarball. 2006-12-07 00:25:37 +01:00
getusername.h Imported from util-linux-2.9i tarball. 2006-12-07 00:25:37 +01:00
linux_fs.h mount: fsprobe: remove non-blkid code 2007-05-17 12:03:53 +02:00
lomount.c lomount.c: don't use mlockall if CRYPT_NONE 2007-07-10 14:05:45 +02:00
lomount.h Imported from util-linux-2.12b tarball. 2006-12-07 00:26:16 +01:00
loop.h Imported from util-linux-2.12a tarball. 2006-12-07 00:26:14 +01:00
losetup.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
mount.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
mount.c mount: use loop= option when mounting by /sbin/mount.<type> 2007-07-02 23:35:08 +02:00
mount.smbfs Imported from util-linux-2.12 tarball. 2006-12-07 00:26:12 +01:00
mount_constants.h mount: relative atime support 2007-04-05 00:29:55 +02:00
mount_mntent.c build-sys: remove DEFAULT_INCLUDES workaround 2007-01-04 14:39:17 +01:00
mount_mntent.h build-sys: remove DEFAULT_INCLUDES workaround 2007-01-04 14:39:17 +01:00
mount_paths.h swapon: cleanup PATH_ macros and tailing white-spaces 2007-06-14 11:54:44 +02:00
my_dev_t.h Imported from util-linux-2.12d tarball. 2006-12-07 00:26:18 +01:00
pivot_root.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
pivot_root.c Imported from util-linux-2.12a tarball. 2006-12-07 00:26:14 +01:00
realpath.c clean up realpath.[ch] includes and macros 2007-02-09 17:35:15 +01:00
realpath.h clean up realpath.[ch] includes and macros 2007-02-09 17:35:15 +01:00
sundries.c mount: fsprobe: make fsprobe_get_devname functions more generic 2007-05-17 12:10:18 +02:00
sundries.h mount: use verbose mode instead debug mode 2007-05-25 13:33:22 +02:00
swap_constants.h Imported from util-linux-2.9i tarball. 2006-12-07 00:25:37 +01:00
swapoff.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
swapon.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
swapon.c swapon: cleanup PATH_ macros and tailing white-spaces 2007-06-14 11:54:44 +02:00
umount.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
umount.c mount: clean up getfs* (fstab.c) interface 2007-05-25 11:18:37 +02:00
xmalloc.c Imported from util-linux-2.12o tarball. 2006-12-07 00:26:31 +01:00
xmalloc.h Imported from util-linux-2.12o tarball. 2006-12-07 00:26:31 +01:00

README.mount

mount/umount for Linux 0.97.3 and later.
Authors:
Doug Quale <quale@saavik.cs.wisc.edu>,
H.J. Lu <hlu@eecs.wsu.edu>,
Rick Sladkey <jrs@world.std.com>,
Stephen Tweedie <sct@dcs.ed.ac.uk>.
Andries Brouwer <aeb@cwi.nl>
Adrian Bunk <bunk@stusta.de>

Presently in util-linux-ng maintained by Karel Zak <kzak@redhat.com>.