Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49275 - qmail policy update
Summary: qmail policy update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: petre rodan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 06:25 UTC by petre rodan (RETIRED)
Modified: 2004-10-21 04:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
file contexts (qmail.fc.diff,742 bytes, patch)
2004-04-28 06:25 UTC, petre rodan (RETIRED)
Details | Diff
type enforcement (qmail.te.diff,1.17 KB, patch)
2004-04-28 06:26 UTC, petre rodan (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description petre rodan (RETIRED) gentoo-dev 2004-04-28 06:25:21 UTC
this update includes serialmail support, support for qmail-1.0.3-r13 (tested only on 1 lucky non-production server) and alias file contexts.

as I have said before, it is _extremely_ important to label everything inside ~alias (/var/qmail/alias) with a $user_home_t type. 
$user can be user, staff or sysadm depending on everyone's taste. without labeling ~alias, this entire policy is useless. mails that have to be received by users that have aliases will never arrive. mails to root cannot be sent to a local user/mail address, postmaster mails will never be delivered, ezmlm will never function correctly, etc.

~alias looks like:

# cat /etc/passwd |grep alias
alias:x:200:200::/var/qmail/alias:/bin/false
# id alias
uid=200(alias) gid=200(nofiles) groups=200(nofiles)

i really see no problem in labeling it with staff_t for example. i have tried to declare 
user alias roles { staff_r };
to no avail. the 'alias' word seems to be 'misinterpreted' by m4.

can we please make something about this? I had no luck with Russell :(

BTW, please leave
/var/qmail/alias(/.*)?          system_u:object_r:staff_home_t
or whatever without '--', because we have both files and directories there.


once I will be able to compile any qmail >qmail-1.03-r11 I will also add functionality for .qmail files and I will do much more thorough tests. it looks like qmail is a very unhappy package in gentoo. most of the time it doesn't even compile (and I talk about the stable version here) because of bad patch management. those patches are being changed upstream and it's only a small step from md5sum errors to compile problems. IMHO all those patches should reside in portage itself and they should be version/release oriented.
Comment 1 petre rodan (RETIRED) gentoo-dev 2004-04-28 06:25:58 UTC
Created attachment 30232 [details, diff]
file contexts
Comment 2 petre rodan (RETIRED) gentoo-dev 2004-04-28 06:26:28 UTC
Created attachment 30233 [details, diff]
type enforcement
Comment 3 petre rodan (RETIRED) gentoo-dev 2004-10-21 04:38:31 UTC
in CVS