xpra icon
Bug tracker and wiki

Opened 7 months ago

Closed 7 months ago

#2075 closed enhancement (fixed)

enhance mmap-group to specify the group to use

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 2.5
Component: core Version: 2.4.x
Keywords: Cc:

Description (last modified by Antoine Martin)

It will make this more usable (see xpra session to other account on localhost: mmap is hard to setup)

Links:

  • r7247: mmap error message
  • r594 / #88: original feature (2012!)

Change History (2)

comment:1 Changed 7 months ago by Antoine Martin

Description: modified (diff)
Status: newassigned

comment:2 Changed 7 months ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

Done in r21245, which also adds the XPRA_KEEP_MMAP_FILE env var so we can inspect the file before it gets deleted (normally removed as soon as the server has a handle on it):

$ XPRA_KEEP_MMAP_FILE=1 xpra attach --mmap=/tmp/shared-session --mmap-group=docker -d mmap
(..)
init_mmap('docker', '/run/user/1000/xpra/localhost.localdomain-13', 268435456, '/tmp/shared-session')
setting mmap file /tmp/shared-session to group id=1001
using mmap file /tmp/shared-session, fd=11, size=268439552
write_mmap_token(<mmap.mmap object at 0x7f1242a28b20>, 0xe7308f4b674444ad03fba75da63e66, 0x200, 0x80)
write_mmap_token(<mmap.mmap object at 0x7f1242a28b20>, 0xe7308f4b674444ad03fba75da63e66, 0x10000f80, 0x80)
read_mmap_token(<mmap.mmap object at 0x7f1242a28b20>, 0x10000f80, 0x80)=0x39507ca907d24a008635ffe972217379
$ ls -la /tmp/shared-session 
-rw-rw----. 1 antoine docker 268439552 Dec 18 16:47 /tmp/shared-session
Note: See TracTickets for help on using tickets.