Skip to content

desktop: bound the session record read in the owned display check #410

Closed

Description

@ElbertePlinio

Problem

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
  • Test with a FIFO at the record path

Activity

  1. added
    enhancement
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions