Gentoo Archives: gentoo-hardened

From: Mivz <mivz@×××××××××××××.net>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] init.d
Date: Thu, 19 Jan 2006 10:07:08
Message-Id: 43CF6019.7000409@alpha.spugium.net
1 Hello,
2
3 I have a problem with creating a init.d script and policy for a custom
4 daemon.
5 What I have:
6
7 daemon_domain(custom)
8 can_exec(custom_t, custom_exec_t)
9 domain_auto_trans(initrc_t, custom_exec_t, custom_t)
10
11 Also the executable and init.d script are labeld correct.
12
13 If I call my init.d script. It say's it starts the daemon whit a nice [
14 OK ], but when I check ps, there is no process. If I don't label my
15 script initrc_exec_t, but etc_t, it works. Except for the fact that it
16 uses the user context instead of
17 system_u:object_r because it does not use run_init.
18 This is all in permissive mode, so de daemon should not be blocked by
19 the policy.
20 What am I doing wrong? Why won't it work whit run_init?
21
22 Mivz
23 --
24 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] init.d solar <solar@g.o>