mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
Add single_mountd_enable hook to run mountd but not NFS server
Needed for machine with CFS but without real NFS
This commit is contained in:
parent
328984c261
commit
319f15a262
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53158
@ -99,6 +99,7 @@ nfs_client_flags="-n 4" # Flags to nfsiod (if enabled).
|
||||
nfs_access_cache="2" # Client cache timeout in seconds
|
||||
nfs_server_enable="NO" # This host is an NFS server (or NO).
|
||||
nfs_server_flags="-u -t -n 4" # Flags to nfsd (if enabled).
|
||||
single_mountd_enable="NO" # Run mountd only (or NO).
|
||||
mountd_flags="-r" # Flags to mountd (if NFS server enabled).
|
||||
nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO).
|
||||
rpc_lockd_enable="NO" # Run NFS rpc.lockd (*broken!*) if nfs_server.
|
||||
|
@ -508,6 +508,23 @@ network_pass3() {
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
case ${single_mountd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r /etc/exports ]; then
|
||||
echo -n ' mountd'
|
||||
|
||||
case ${weak_mountd_authentication} in
|
||||
[Yy][Ee][Ss])
|
||||
mountd_flags="-n"
|
||||
;;
|
||||
esac
|
||||
|
||||
mountd ${mountd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${nfs_client_enable} in
|
||||
|
@ -508,6 +508,23 @@ network_pass3() {
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
case ${single_mountd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r /etc/exports ]; then
|
||||
echo -n ' mountd'
|
||||
|
||||
case ${weak_mountd_authentication} in
|
||||
[Yy][Ee][Ss])
|
||||
mountd_flags="-n"
|
||||
;;
|
||||
esac
|
||||
|
||||
mountd ${mountd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${nfs_client_enable} in
|
||||
|
@ -508,6 +508,23 @@ network_pass3() {
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
case ${single_mountd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r /etc/exports ]; then
|
||||
echo -n ' mountd'
|
||||
|
||||
case ${weak_mountd_authentication} in
|
||||
[Yy][Ee][Ss])
|
||||
mountd_flags="-n"
|
||||
;;
|
||||
esac
|
||||
|
||||
mountd ${mountd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${nfs_client_enable} in
|
||||
|
@ -508,6 +508,23 @@ network_pass3() {
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
case ${single_mountd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r /etc/exports ]; then
|
||||
echo -n ' mountd'
|
||||
|
||||
case ${weak_mountd_authentication} in
|
||||
[Yy][Ee][Ss])
|
||||
mountd_flags="-n"
|
||||
;;
|
||||
esac
|
||||
|
||||
mountd ${mountd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${nfs_client_enable} in
|
||||
|
@ -508,6 +508,23 @@ network_pass3() {
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
case ${single_mountd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r /etc/exports ]; then
|
||||
echo -n ' mountd'
|
||||
|
||||
case ${weak_mountd_authentication} in
|
||||
[Yy][Ee][Ss])
|
||||
mountd_flags="-n"
|
||||
;;
|
||||
esac
|
||||
|
||||
mountd ${mountd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${nfs_client_enable} in
|
||||
|
@ -508,6 +508,23 @@ network_pass3() {
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
case ${single_mountd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r /etc/exports ]; then
|
||||
echo -n ' mountd'
|
||||
|
||||
case ${weak_mountd_authentication} in
|
||||
[Yy][Ee][Ss])
|
||||
mountd_flags="-n"
|
||||
;;
|
||||
esac
|
||||
|
||||
mountd ${mountd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${nfs_client_enable} in
|
||||
|
@ -508,6 +508,23 @@ network_pass3() {
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
case ${single_mountd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r /etc/exports ]; then
|
||||
echo -n ' mountd'
|
||||
|
||||
case ${weak_mountd_authentication} in
|
||||
[Yy][Ee][Ss])
|
||||
mountd_flags="-n"
|
||||
;;
|
||||
esac
|
||||
|
||||
mountd ${mountd_flags}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${nfs_client_enable} in
|
||||
|
Loading…
Reference in New Issue
Block a user