Skip to content

Console service installed by console install fails to start after update on SELinux-enforcing hosts (user_tmp_t label) #2131

Closed

Description

@JacobStephens2

What happened

On a Rocky Linux 9 host with SELinux enforcing, the systemd unit that thirdshift console install writes (ExecStart="/home/<user>/.local/bin/thirdshift" console) fails to start after thirdshift update:

thirdshift-console.service: Failed to locate executable /home/<user>/.local/bin/thirdshift: Permission denied
thirdshift-console.service: Failed at step EXEC spawning /home/<user>/.local/bin/thirdshift: Permission denied
thirdshift-console.service: Main process exited, code=exited, status=203/EXEC

The binary's label:

$ ls -Z ~/.local/bin/thirdshift
unconfined_u:object_r:user_tmp_t:s0 /home/<user>/.local/bin/thirdshift

The release installer (src/update.rs: "the release's installer moves the new binary into place with a rename") downloads to a temp directory and renames into ~/.local/bin. A rename keeps the user_tmp_t label, and systemd (init_t) may not execute user_tmp_t files.

Workaround in use

ExecStart=/bin/sh -c "exec /home/<user>/.local/bin/thirdshift console"

/bin/sh is bin_t, so the service runs as unconfined_service_t, which may exec the binary. This survives later updates. A chcon/restorecon fix would be lost on the next thirdshift update.

Expected

On SELinux-enforcing hosts, a Console service installed by console install keeps starting after thirdshift update. That could come from console install writing an ExecStart that survives relabelling, or from update restoring the default context after the rename (restorecon when SELinux is enabled).

Hosts with SELinux disabled (the other Rocky hosts in this fleet) are unaffected.

Activity

  1. added
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 12, 2026
  2. JacobStephens2 commented on Nov 12, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Recommend closing #2131 as a duplicate of open issue #1078: #1078. This closes the duplicate report, not the underlying bug.

    #1078 already describes the same Rocky Linux SELinux-enforcing failure: an updated ~/.local/bin/thirdshift labelled user_tmp_t, systemd EXEC permission denial, and a generated unit that directly executes the binary from $HOME. Its scope also includes home-directory access after relabelling. Open issue #1592 separately proposes replacing axoupdater and includes this labelling problem.

    Investigation at selected Base commit cf12290 confirms the relevant implementation remains: src/console/install.rs:130 emits a direct ExecStart; src/update.rs:79-108 delegates installation to AxoUpdater::run_sync without subsequent context restoration. The rename behavior is documented in src/update.rs:5, but the release installer's actual label behavior was not reproduced here.

    Some mitigation requested by #1078 has landed: src/console/install.rs:107-108 warns on enforcing SELinux and links directly to #1078; lines 139-152 check service activity and HTTP availability and print journal diagnostics on failure. docs/guide.md:1036 explicitly says the script does not change SELinux labels or policy.

    Carry the newly reported successful shell-entry workaround to #1078 as evidence for evaluation. Keep the supported launch policy and verification on an enforcing Rocky host under that existing issue.

  3. added
    bug
    wontfix
    and removed
    in-progress
    on Nov 12, 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

    bugwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions