1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B OpenNebula/one#5086: lxd market auto context incompatible with nosuid, nodev (#931)

This commit is contained in:
Daniel Clavijo Coca 2021-03-10 03:18:32 -06:00 committed by GitHub
parent c8565cfce0
commit a18308887d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,8 +49,8 @@ esac
# try first to mount with the fuse2fs command and if that fails fallback to the
# regular mount
if ! fuse2fs -o noexec,nodev,nosuid $tmp_dir/$id.raw $tmp_dir/$id >/dev/null 2>&1 ; then
mount -o noexec,nodev,nosuid $tmp_dir/$id.raw $tmp_dir/$id
if ! fuse2fs -o nosuid $tmp_dir/$id.raw $tmp_dir/$id >/dev/null 2>&1 ; then
mount -o nosuid $tmp_dir/$id.raw $tmp_dir/$id
fi
chown $USER:$GROUP $tmp_dir/$id