Gentoo Archives: gentoo-hardened

From: Luis Ressel <aranea@×××××.de>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] [PATCH] services/postgresql.fc: Drop obsolete distro_gentoo block
Date: Sat, 10 Oct 2015 15:36:47
Message-Id: 1444491392-18125-1-git-send-email-aranea@aixah.de
1 Only some of the binaries in /usr/lib/postgresql-.../bin should be
2 marked postgresql_exec_t (e.g. pg_ctl), the others (e.g. psql) should
3 get a bin_t marking so they're user-accessible. refpolicy applies
4 correct labels since last year (commit 3738cf10), but this ifdef block
5 still overrides them on Gentoo.
6 ---
7 policy/modules/services/postgresql.fc | 5 -----
8 1 file changed, 5 deletions(-)
9
10 diff --git a/policy/modules/services/postgresql.fc b/policy/modules/services/postgresql.fc
11 index 2a1b1a3..d3bc4bb 100644
12 --- a/policy/modules/services/postgresql.fc
13 +++ b/policy/modules/services/postgresql.fc
14 @@ -54,8 +54,3 @@ ifdef(`distro_redhat', `
15 /var/run/postgresql(/.*)? gen_context(system_u:object_r:postgresql_var_run_t,s0)
16
17 /var/run/postmaster.* gen_context(system_u:object_r:postgresql_var_run_t,s0)
18 -
19 -ifdef(`distro_gentoo',`
20 -/usr/lib/postgresql-.*/bin/.* -- gen_context(system_u:object_r:postgresql_exec_t,s0)
21 -')
22 -
23 --
24 2.6.1