From 8e3d7dfa20b966b928078d8071d10fb186a0d781 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Mon, 21 Oct 2024 09:17:49 -0400 Subject: cleanup nfs1 host script --- lib/30-files | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/30-files b/lib/30-files index 767bbeb..4ba6587 100644 --- a/lib/30-files +++ b/lib/30-files @@ -179,3 +179,12 @@ install_ca_certificate(){ install -m "$_bcicc_mode" $_bcicc_install_args "${BOXCONF_CA_DIR}/ca.crt" "$1" log "installed root CA to ${1}" } + +set_facl(){ + # Replaces the NFSv4 ACL on a file with the specified ACL list. + # $1 = path + # $2-$N = ACL entries + [ "$BOXCONF_OS" = freebsd ] || bug 'set_facl only supported on FreeBSD' + _bcsetfacl_path=$1; shift + setfacl -b -a 0 "$(join ',' "$@")" "$_bcsetfacl_path" +} -- cgit v1.2.3