Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
William Erik Baxter committed Apr 24, 2024
1 parent e4f6171 commit d5cf9b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr/local/share/bastille/destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ destroy_jail() {
fi

if [ -d "${bastille_jail_base}" ]; then
## make sure no filesystem is currently mounted in the jail directory
mount_points=$(mount | cut -d ' ' -f 3 | grep "^${bastille_jail_base}")
if [ $? -eq 0 ]; then
error_exit "Jail has mounted filesystems:\n$mount_points"
fi
## removing all flags
chflags -R noschg "${bastille_jail_base}"

Expand Down

0 comments on commit d5cf9b0

Please sign in to comment.