Skip to content

Conversation

jsegitz
Copy link
Contributor

@jsegitz jsegitz commented Jul 25, 2025

when you run shell commands in ExecStart this is needed. This is the case for our locate systemd service, so use it there

jsegitz added 2 commits July 24, 2025 11:18
Similar to init_nnp_daemon_domain interface. Helpful if you run
shell commands in ExecStart
solves
avc:  denied  { nnp_transition } for  pid=7848 comm="sh" scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:system_r:locate_t:s0 tclass=process2 permissive=0
Copy link

Cockpit tests failed for commit 9fe0a90. @martinpitt, @jelly, @mvollmer please check.

@zpytela
Copy link
Contributor

zpytela commented Aug 27, 2025

I wonder what is the use case for having initrc domains today?

@jsegitz
Copy link
Contributor Author

jsegitz commented Sep 5, 2025

When a packager uses a shell construct in ExecStart this is run in initrc. Yes, I know that this is not a good way of doing things, but we still have cases like this and it will take some time until we get rid of them

@jsegitz
Copy link
Contributor Author

jsegitz commented Sep 15, 2025

@zpytela I fear that these constructs will be with us for a while, so it would be nice to have an interface for this

@jsegitz
Copy link
Contributor Author

jsegitz commented Oct 6, 2025

@zpytela can you please have another look? If that's not okay for you then I'll try to find another solution for this

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