Bug 236004 - CUPS 'mailto' notifier can't mail
CUPS 'mailto' notifier can't mail
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-11 09:30 EDT by Tim Waugh
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-16 13:10:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2007-04-11 09:30:30 EDT
Description of problem:
/usr/lib/cups/notifier/mailto needs to be able to execute sendmail.  Here is the
AVC I get:

avc: denied { execute } for comm="mailto" dev=hda1 egid=7 euid=4
exe="/usr/lib/cups/notifier/mailto" exit=-13 fsgid=7 fsuid=4 gid=7 items=0
name="sendmail.sendmail" pid=14794
scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 sgid=7
subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 suid=4 tclass=file
tcontext=system_u:object_r:sendmail_exec_t:s0 tty=(none) uid=4

The mailto program runs as a separate process from CUPS (it gets executed by
cupsd), and perhaps needs a separate label (cups_mail_t?) such that mailto can
execute sendmail, and cupsd can execute mailto, but cupsd cannot execute
sendmail directly.  What do you think?

Version-Release number of selected component (if applicable):
cups-1.2.10-3.fc6
selinux-policy-2.4.6-54.fc6

How reproducible:
100%

Steps to Reproduce:
1. Stop CUPS
2. Make a file /etc/cups/subscriptions.conf:
NextSubscriptionId 9
<Subscription 8>
Events all
Owner root
Recipient mailto:root@localhost
LeaseDuration 86400
Interval 0
ExpirationTime 1176383781
NextEventId 2
</Subscription>
3.Start CUPS
4.lp /etc/fstab

Actual results:
AVC message

Expected results:
Email
Comment 1 Daniel Walsh 2007-04-11 10:12:29 EDT
I don't see much value in that, versus just allowing cupsd to transition to
sendmail.

Added in selinux-policy-2.4.6-55.fc6
Comment 2 Tim Waugh 2007-04-16 12:48:51 EDT
Fix confirmed in selinux-policy-2.4.6-57.fc6.  Thanks.

Note You need to log in before you can comment on or make changes to this bug.