Summary: | mail-mta/postfix-3.0.3-r1 world writable files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jaak Ristioja <jaak> |
Component: | [OLD] Server | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jaak Ristioja
2016-05-17 18:01:44 UTC
$ ls -l /etc/postfix/.keep_mail-mta_postfix-0 /etc/pam.d/smtp /var/spool/postfix/.keep_mail-mta_postfix-0 /var/lib/postfix/.keep_mail-mta_postfix-0 -rw-r--r-- 1 root root 106 May 18 13:34 /etc/pam.d/smtp -rw-r--r-- 1 root root 0 May 18 13:34 /etc/postfix/.keep_mail-mta_postfix-0 -rw-r--r-- 1 postfix postfix 0 May 18 13:34 /var/lib/postfix/.keep_mail-mta_postfix-0 -rw-r--r-- 1 root root 0 May 18 13:34 /var/spool/postfix/.keep_mail-mta_postfix-0 and the code to create the keepdir files is for x in "$@"; do >> "${ED}${x}/.keep_${CATEGORY}_${PN}-${SLOT%/*}" || \ { echo "!!! ${0##*/}: cannot write .keep in ${ED}${x}" 1>&2; ret=1; } done I don't see how that can create a world writable file unless a. you already have a world writable file in place or b. you mucked up the umask values in ebuild.sh Reopen if this is not a local error/misconfiguration. [23:15:39] < dwfreed|phone> it seems like his umask is set incorrectly [23:17:54] < dwfreed|phone> definitely his umask, because that doesn't happen on my system [23:23:26] < dwfreed|phone> also, portage does a lot of 'umask 022' [23:27:05] < dwfreed|phone> Hello71: the dead giveaway should have been the keep files being world-writable [21:41:52] < Hello71> dwfreed|phone: because there's seven of them. bulk close INVALID? [21:49:50] < dwfreed|phone> Hello71: yes |