1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

net/samba416: Fix startup script in a jail environment

PR:		275343
Approved by:	maintainer timeout (6 months)
Approved by:	mikael (samba419 maintainer, ports committer)
This commit is contained in:
Yoshihiro Takahashi 2024-05-26 21:16:36 +09:00
parent b6b85085a0
commit 8a71351326
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= ${SAMBA4_BASENAME}416
PORTVERSION= ${SAMBA4_VERSION}
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES?= net
MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
DISTNAME= ${SAMBA4_DISTNAME}

View File

@ -225,10 +225,12 @@ can_mount()
if ! load_kld $kld; then
return 1
fi
if [ $(${SYSCTL_N} security.jail.jailed) -eq 0 ] ||
[ $(${SYSCTL_N} security.jail.mount_allowed) -eq 1 ] ||
[ $(${SYSCTL_N} security.jail.mount_${kld}_allowed) -eq 1 ]; then
return 0
if [ $(${SYSCTL_N} security.jail.jailed) -eq 0 ]; then
return 0
fi
if [ $(${SYSCTL_N} security.jail.mount_allowed) -eq 1 ] &&
[ $(${SYSCTL_N} security.jail.mount_${kld}_allowed) -eq 1 ]; then
return 0
fi
return 1
}