1 |
On Fri, 2007-08-03 at 12:12 +0200, julien.thomas@×××××××××××××.fr wrote: |
2 |
> Hi. |
3 |
> The problems of courier-imap began to be solved ... |
4 |
> |
5 |
> (The previous post where labelled by "SELinux - network streams" but |
6 |
> as I am more focused with courier-imap now, I though it was good to |
7 |
> change the subject) |
8 |
> |
9 |
> However, here is the problem I have with file labelling : |
10 |
> |
11 |
> I put it /etc/security/selinx/file_contexts the following lines |
12 |
> /var/run/impad.* system_u:object_r:courier_var_run_t |
13 |
> /var/run/pop3.* system_u:object_r:courier_var_run_t |
14 |
> /var/run/authdaemon.* system_u:object_r:courier_var_run_t |
15 |
> |
16 |
> as the previous ones (/var/run/courier(/.*)?) where wrong. |
17 |
> |
18 |
> However, restorecon do not give the good contexts for these files |
19 |
> (var_run_t). Besides, when the server are restarted or after let's say |
20 |
> one hour, |
21 |
> the files got the var_run_t context though I changed them with chcon. |
22 |
> |
23 |
> Where should I put this file_context information. |
24 |
> (Do I have to add this I a QuickFix module ?) |
25 |
|
26 |
You can either make a module with your customizations or you can use |
27 |
semanage, e.g. |
28 |
|
29 |
semanage fcontext -a -s system_u -t courier_var_run_t '/var/run/pop3.*' |
30 |
|
31 |
I generally just use a local module with my customizations. |
32 |
|
33 |
> for the other problem, It was due to transition problems. |
34 |
> I have added the following lines : |
35 |
> type_transition initrc_t courier_exec_t:process courier_tcpd_t; |
36 |
|
37 |
This doesn't make sense, there already exists a courier_tcpd_exec_t. |
38 |
Sounds like a file is mislabeled. |
39 |
|
40 |
> type_transition courier_tcpd_t courier_authdaemon_exec_t:process |
41 |
> courier_authdaemon_t; |
42 |
|
43 |
I'd appreciate it if you would collect all of your fixes when you get |
44 |
your system working, and send them to me so I can review them and |
45 |
integrate it into the policy. |
46 |
|
47 |
-- |
48 |
Chris PeBenito |
49 |
<pebenito@g.o> |
50 |
Developer, |
51 |
Hardened Gentoo Linux |
52 |
|
53 |
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243 |
54 |
Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243 |