Skip to content

Commit

Permalink
#3217 the user must own the session directory
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 4, 2021
1 parent c12bca9 commit 119cc8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ def show_progress(pct, text=""):
import tempfile
session_dir = osexpand(os.path.join(tempfile.gettempdir(), display_name.lstrip(":")))
os.makedirs(session_dir, 0o750)
os.lchown(session_dir, uid, gid)
os.environ["XPRA_SESSION_DIR"] = session_dir
#populate it:
if run_xpra_script:
Expand Down

0 comments on commit 119cc8a

Please sign in to comment.