First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 49275
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: petre rodan (RETIRED) <kaiowas@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: petre rodan (RETIRED) <kaiowas@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
qmail.fc.diff file contexts patch petre rodan (RETIRED) 2004-04-28 06:25 0000 742 bytes Details | Diff
qmail.te.diff type enforcement patch petre rodan (RETIRED) 2004-04-28 06:26 0000 1.17 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 49275 depends on: Show dependency tree
Show dependency graph
Bug 49275 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-04-28 06:25 0000
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 From petre rodan (RETIRED) 2004-04-28 06:25:58 0000 -------
Created an attachment (id=30232) [edit]
file contexts

------- Comment #2 From petre rodan (RETIRED) 2004-04-28 06:26:28 0000 -------
Created an attachment (id=30233) [edit]
type enforcement

------- Comment #3 From petre rodan (RETIRED) 2004-10-21 04:38:31 0000 -------
in CVS

First Last Prev Next    No search results available      Search page      Enter new bug