X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/c49dfd272d994b1cdaa14107fee66be84b80c06b..204403056e6c8adc14406be5e64c4f1996e185bc:/tools/helpers/lxc.py diff --git a/tools/helpers/lxc.py b/tools/helpers/lxc.py index 0221d0b..3f7ad74 100644 --- a/tools/helpers/lxc.py +++ b/tools/helpers/lxc.py @@ -181,11 +181,11 @@ def generate_session_lxc_config(args, session): nodes = [] def make_entry(src, dist=None, mnt_type="none", options="rbind,create=file 0 0"): if any(x in src for x in ["\n", "\r"]): - logging.warning("User-provided mount path contains illegal character") + logging.warning("User-provided mount path contains illegal character: " + src) return False if dist is None and (not os.path.exists(src) or str(os.stat(src).st_uid) != session["user_id"]): - logging.warning("User-provided mount path is not owned by user") + logging.warning("User-provided mount path is not owned by user: " + src) return False return add_node_entry(nodes, src, dist, mnt_type, options, check=False)