Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkcheck --list-temp not work #181

Open
polkit-github-migration-bot opened this issue Nov 8, 2022 · 1 comment
Open

pkcheck --list-temp not work #181

polkit-github-migration-bot opened this issue Nov 8, 2022 · 1 comment

Comments

@polkit-github-migration-bot
Copy link
Collaborator

In gitlab.freedesktop.org by taisuishen on Nov 8, 2022, 03:29

Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/180

[user@localhost root]$ echo $$
15013
[user@localhost root]$ pkcheck --action-id 'org.freedesktop.NetworkManager.settings.modify.system' --process 15013 -u
polkit\56temporary_authorization_id=tmpauthz1
polkit\56retains_authorization_after_challenge=true
[user@localhost root]$ pkcheck --list-temp

pkcheck --list-temp does not display any information even if temporary permission has been granted.

this bug first proposed in 2014 [https://access.redhat.com/errata/RHBA-2015:0692.html]

However, the final patch does not appear to include removing the --list-temp parameter or fixing this feature.[https://bugs.freedesktop.org/show_bug.cgi?id=29936]

@polkit-github-migration-bot
Copy link
Collaborator Author

In gitlab.freedesktop.org by jrybar on Mar 28, 2023, 17:13

Just tried

$ systemctl restart sshd
 [authentication window now]
$ pkcheck --list-temp
Error opening `/proc/1175521/cmdline': Failed to open file ?/proc/1175521/cmdline?: No such file or directory
authorization id: tmpauthz0
action:           org.freedesktop.systemd1.manage-units
subject:          unix-process:1175521:112888851 (cannot read cmdline)
obtained:         2 sec ago (Tue Mar 28 17:04:51 2023)
expires:          4 min 57 sec from now (Tue Mar 28 17:09:50 2023)

pkcheck --list-temp is supposed to list temp authorization ("authorization cookies") that already exists. Are you sure your tmpauthz really existed? Maybe I just don't understand your reproducer...

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

No branches or pull requests

1 participant