diff -up autofs-5.0.1/modules/mount_nfs.c.fix-mount-nfs-nosymlink autofs-5.0.1/modules/mount_nfs.c --- autofs-5.0.1/modules/mount_nfs.c.fix-mount-nfs-nosymlink 2007-10-18 14:26:12.000000000 +0800 +++ autofs-5.0.1/modules/mount_nfs.c 2007-10-18 14:26:47.000000000 +0800 @@ -214,7 +214,7 @@ int mount_mount(struct autofs_point *ap, port_opt = strstr(nfsoptions, "port="); /* Port option specified, don't try to bind */ - if (!port_opt && this->proximity == PROXIMITY_LOCAL) { + if (!nosymlink && !port_opt && this->proximity == PROXIMITY_LOCAL) { /* Local host -- do a "bind" */ const char *bind_options = ro ? "ro" : ""; diff -up autofs-5.0.1/man/auto.master.5.in.fix-mount-nfs-nosymlink autofs-5.0.1/man/auto.master.5.in --- autofs-5.0.1/man/auto.master.5.in.fix-mount-nfs-nosymlink 2007-10-18 14:26:12.000000000 +0800 +++ autofs-5.0.1/man/auto.master.5.in 2007-10-18 14:26:47.000000000 +0800 @@ -139,6 +139,14 @@ Treat errors when mounting file systems multiple file systems should be mounted (`multimounts'). If this option is given, no file system is mounted at all if at least one file system can't be mounted. +.TP +.I "nosymlink" +This is an autofs specific option that is a pseudo mount option and +so is given without a leading dash. Historically this option was used +to prevent symlinking of local NFS mounts. Nowadays it can be used to +prevent bind mounting of local NFS filesystems as well. If you need to +prevent bind mounting for only specific entrys in a map then this +can be done by adding the "port=" mount option to the given entries. .SH GENERAL SYSTEM DEFAULTS CONFIGURATION .P The default value of several general settings may be changed in the