Skip to content

Check for the no new privs flag#1459

Merged
squell merged 1 commit into
trifectatechfoundation:mainfrom
bjorn3:no_new_privs
Feb 20, 2026
Merged

Check for the no new privs flag#1459
squell merged 1 commit into
trifectatechfoundation:mainfrom
bjorn3:no_new_privs

Conversation

@bjorn3

@bjorn3 bjorn3 commented Feb 16, 2026

Copy link
Copy Markdown
Collaborator

And emit a nicer error message.

Tested using systemd-run --user --property=NoNewPrivileges=true -t ./sudo-rs true.

Fixes #1164

@bjorn3 bjorn3 requested a review from squell February 16, 2026 15:20
@bjorn3 bjorn3 force-pushed the no_new_privs branch 2 times, most recently from 28f81c5 to cb7f90a Compare February 16, 2026 15:32

@squell squell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment below. For the rest the PR is fine.

Comment thread src/sudo/mod.rs Outdated
@squell squell enabled auto-merge (rebase) February 20, 2026 18:24
And emit a nicer error message.
@squell squell merged commit c0e1794 into trifectatechfoundation:main Feb 20, 2026
35 of 36 checks passed
@bjorn3 bjorn3 deleted the no_new_privs branch February 20, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Throw error if no_new_privs is set

2 participants