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

Cannot add new hosts with fapolicyd service enabled - Cannot execute ferny-askpass #21251

Open
cakersq opened this issue Nov 11, 2024 · 0 comments
Labels

Comments

@cakersq
Copy link

cakersq commented Nov 11, 2024

Explain what happens

  1. Install and enable fapolicyd (dnf install fapolicyd; systemctl enable --now fapolicyd.service) (or enabled as part of SCAP Security Guide profiles).
  2. Login to Cockpit web interface as non-root user (with wheel group sudo privileges)
  3. Attempt to add New Host
  4. Error occurs, cannot execute KnownHostsCommand ferny-askpass

Version of Cockpit

311.2

Where is the problem in Cockpit?

Navigation & Shell

Server operating system

other

Server operating system version

Rocky Linux 9.4

What browsers are you using?

Firefox

System log

Cockpit Error in Web: KnownHostsCommand-ORDER execv "/run/user/1000/ferny/tmpf6x02hnk/ferny-askpass ORDER other.home.net NONE NONE NONE": Operation not permitted KnownHostsCommand-ORDER /run/user/1000/ferny/tmpf6x02hnk/ferny-askpass ORDER other.home.net NONE NONE NONE failed, status 127 KnownHostsCommand failed

fapolicyd with debug reports: rule=11 dec=deny_audit perm=execute auid=1000 pid=3631 exe=/usr/bin/ssh : path=/run/user/1000/ferny/tmp9twfh2fb/ferny-askpass ftype=text/x-python trust=0

fapolicyd rule is: deny_audit perm=any all : ftype=text/x-python

fapolicyd effectively doesn't trust executing Python scripts that are not installed by an DNF/RPM package.

Potential Solutions: Move the ferny-askpass to be in a common directory, and include in the Cockpit RPM.
@cakersq cakersq added the bug label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant