Re: SE Linux error in logwatch (sendmail)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/28/2010 05:29 PM, Christofer C. Bell wrote:
> When cron.daily runs, I get the following error related to sendmail
> and logwatch:
> 
> /etc/cron.daily/0logwatch:
> 
> Can't exec "sendmail": Permission denied at /usr/sbin/logwatch line
> 1032, <TESTFILE> line 2.
> Can't execute sendmail -t: Permission denied
> 
> The SE Linux error is:
> 
> type=SELINUX_ERR msg=audit(1280304906.187:42655):
> security_compute_sid:  invalid context
> system_u:system_r:logwatch_mail_t:s0-s0:c0.c1023 for
> scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023
> tcontext=system_u:object_r:sendmail_exec_t:s0 tclass=process
> 
> Here is the relevant section of /usr/sbin/logwatch:
> 
>          #Use mailer = in logwatch.conf to set options. Default should
> be "sendmail -t"
>          #In theory this should be able to handle many different
> mailers. I might need to add
>          #some filter code on $Config{'mailer'} to make it more robust. -mgt
>          open(OUTFILE,"|$Config{'mailer'}") or die "Can't execute
> $Config{'mailer'}: $!\n";
>          my $mailto = $Config{"mailto_$Config{'hostname'}"};
>          $mailto = $Config{'mailto'} unless $mailto;
>          for my $to (split(/ /, $mailto)) {
>             print OUTFILE "To: $to\n";
>          }
>          print OUTFILE "From: $Config{'mailfrom'}\n";
>          print OUTFILE "Subject: Logwatch for $Config{'hostname'}
> (${OStitle})\n";
> 
> The open statement (right under the comments) is line 1032.
> 
> Is this something that a bug needs to be opened on or is there a
> context change on a file I can run to correct this?  I'm not able to
> use the SE Linux Troubleshooter because it generates the following
> error (a bug to submit):
> 
> "Error while checking policy version."
> 
> Thanks.
> 
There is an existing bug on this.  You should update to the latest
selinux-policy in updates-testing.

This might fix your problem depending on the mailer you are using

yum update selinux-policy --enablerepo=updates-testing
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkxRezIACgkQrlYvE4MpobPpLgCglT/NLRv55bT/32k9+pCNhIqj
QykAoK42V6oBny8XhdqvhxSmVsLC0vpA
=V7nB
-----END PGP SIGNATURE-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux