Gentoo Archives: gentoo-commits

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/
Date: Wed, 21 Nov 2012 21:03:12
Message-Id: 1353531697.4e8db2f02ccebf404d1a8b8960e4f5be9dd9b0fc.SwifT@gentoo
1 commit: 4e8db2f02ccebf404d1a8b8960e4f5be9dd9b0fc
2 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
3 AuthorDate: Sat Nov 17 20:58:54 2012 +0000
4 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
5 CommitDate: Wed Nov 21 21:01:37 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4e8db2f0
7
8 Postfix deferred queue should not mark mails as postfix_spool_maildrop_t
9
10 Postfix /moves/ the mail files between the queues as they are processed. Mails
11 that cannot be delivered currently are pushed towards the deferred queue.
12 However, when this occurs, the mail file retains its context (as it is moved,
13 not copied) for postfix_spool_t.
14
15 If we would relabel the system or directory at that point, the mail gets labeled
16 postfix_spool_maildrop_t. When a new attempt is made to deliver, the postfix
17 daemons, like local, are not able to read (and process) the mail anymore since
18 they do not hold read rights on the postfix_spool_maildrop_t type.
19
20 Only mark the deferred directory as postfix_spool_maildrop_t solves this.
21
22 Signed-off-by: Sven Vermeulen <sven.vermeulen <AT> siphos.be>
23
24 ---
25 policy/modules/contrib/qemu.te | 4 ++++
26 1 files changed, 4 insertions(+), 0 deletions(-)
27
28 diff --git a/policy/modules/contrib/qemu.te b/policy/modules/contrib/qemu.te
29 index 78af6ab..6e4403f 100644
30 --- a/policy/modules/contrib/qemu.te
31 +++ b/policy/modules/contrib/qemu.te
32 @@ -48,6 +48,10 @@ tunable_policy(`qemu_full_network',`
33 corenet_tcp_connect_all_ports(qemu_t)
34 ')
35
36 +optional_policy(`
37 + xserver_user_x_domain_template(qemu, qemu_t, qemu_tmpfs_t)
38 +')
39 +
40 ########################################
41 #
42 # Unconfined local policy