Skip to content

Conversation

jsegitz
Copy link
Contributor

@jsegitz jsegitz commented Sep 18, 2025

Ohterwise creating ssh keys via cloud init will result in type etc_t for the key files

')

optional_policy(`
ssh_domtrans_keygen(cloud_init_t)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be together with other ssh interfaces in one optional block. If you move it, you can notice ssh_exec_keygen() is now ineffective, so I need to ask for justification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, I got bitten by assuming the interface calls were ordered and overlooked the other interface calls. Justification is that the key files created upon the first boot when using this mechanism will have etc_t as type instead of the dedicated type. Doesn't cause issues AFAICS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zpytela is that acceptable to you?

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, but I am kind-of reluctant pushing it to current releases as we only have basic test coverage, so cannot evaluate the impact.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood. Works on SLE 16 cloud images, but unfortunately they're not public yet, so I can't make them available. There's no hurry, can be kept here until after the release

Ohterwise creating ssh keys via cloud init will result in type etc_t for
the key files
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.

2 participants