Polkit should provide full command line when pkexec is invoked
Originally posted as a question here.
When policy agent kit asking to authorize request, there is no enough information to make a decision. For example, if I run
pkexec sh -c 'echo hello'
I'll see a prompt containing only the name of the executable (/usr/bin/sh). There is no information about the arguments of the command I'm trying to execute. So, it would look like the same for dangerous
pkexec sh -c 'rm -rf /'
I think a user should be able to see the full command line of action he's authorizing. Changing the original message could break language packs (because msgid contains template itself). I think a nice place for full command line would be Details
block.