You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
desktop: bound the session record read in the owned display check #410
validateOwnedTarget in packages/desktop-linux/src/x11-target.ts has a 3 s budget, but it calls getSession, which reads the session record without that budget. If the record path is a FIFO, the read blocks past the deadline. Typing and, after #219, pointer and key input share this check. The sessions directory is private to the user, so only a process of the same user can plant a FIFO there.
Where it was found
Review of the PR for #219, with a FIFO reproduction. The behavior predates #219.
Acceptance criteria
The ownership check reads the session record within its deadline and refuses a non-regular record file.
Checklist
Bounded, non-blocking record read in the ownership check
Activity