Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-134546: ensure remote pdb script is readable#134552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
asottile wants to merge3 commits intopython:main
base:main
Choose a base branch
Loading
fromasottile:pdb-script-readable-permission-134546

Conversation

asottile
Copy link
Contributor

@asottileasottile commentedMay 22, 2025
edited by bedevere-appbot
Loading

@asottileasottileforce-pushed thepdb-script-readable-permission-134546 branch from4fd050e to855651bCompareMay 22, 2025 22:14
@gaogaotiantian
Copy link
Member

The news is a bit inaccurate. It's more about client process creating a file that server process does not have access to. It is permission issue, but there are many kinds of permission issues and they are not all fixed. Could you be a little bit more accurate on the news?

Also cc@godlygeek and@pablogsal . I think the fix is fine but maybe you have other suggestions.

@asottile
Copy link
ContributorAuthor

maybe it's just a wording thing? I think the news is accurate but perhaps too broad. the script from pdb can't be read in the process that's being debugged

@gaogaotiantian
Copy link
Member

I think it's a wording thing. I think the issue is that, we did not fix it from the reading side. It's not like we fixed something so the process can read that file. We granted the read permission after we wrote it - that's what's fixed.

@asottile
Copy link
ContributorAuthor

do you have a suggestion for the contents of the news file?

@gaogaotiantian
Copy link
Member

I would do something like

Grant read permission to the attach script for all processes for:func:`pdb.attach` so it can be read by:func:`sys.remote_exec`.

I'm also not the expert in news and I'll probably wait for someone else to see if this is a better description.

@emmatypingemmatyping added the needs backport to 3.14bugs and security fixes labelMay 23, 2025
@emmatyping
Copy link
Member

Perhaps

Ensure:func:`pdb.attach` script is readable by remote Python process.

@godlygeek
Copy link
Contributor

Fix looks reasonable to me. For the news entry, maybe "FixPermissionError when a superuser attaches PDB to another user's process" or something like that.

@gaogaotiantian
Copy link
Member

@asottile you can sum the suggestions up and make it a bit clearer. news is not as strict as the real documentation. Good to have a clear one but won't be a serious blocker.

…jLVzK.rstCo-authored-by: Emma Smith <emma@emmatyping.dev>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@emmatypingemmatypingemmatyping left review comments

@gaogaotiantiangaogaotiantianAwaiting requested review from gaogaotiantiangaogaotiantian is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@asottile@gaogaotiantian@emmatyping@godlygeek

[8]ページ先頭

©2009-2025 Movatter.jp