Hello,

I have a problem with creating a init.d script and policy for a custom daemon.
What I have:

daemon_domain(custom)
can_exec(custom_t, custom_exec_t)
domain_auto_trans(initrc_t, custom_exec_t, custom_t)

Also the executable and init.d script are labeld correct.

If I call my init.d script. It say's it starts the daemon whit a nice [ OK ], but when I check ps, there is no process. If I don't label my script initrc_exec_t, but etc_t, it works. Except for the fact that it uses the user context instead of
system_u:object_r because it does not use run_init.
This is all in permissive mode, so de daemon should not be blocked by the policy.
What am I doing wrong? Why won't it work whit run_init?

Mivz
--
[email protected] mailing list

Reply via email to