Re: permission problems with script run via crondargs -m
Lukas Vrabec <[email protected]>
| Newsgroups | gmane.linux.redhat.fedora.selinux |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
On 5/13/20 3:26 PM, Robert Moskowitz wrote: > > > On 5/12/20 12:13 PM, Lukas Vrabec wrote: >> Oh, and this script runs fine for root's crontab tasks. It is failing >>> on whatever kicks off logwatch. >>> >> Yes, that's the problem. >> >> >> Can you please run: >> >> # semanage fcontext -a -t sendmail_exec_t /usr/local/mycron >> # restorecon -Rv /usr/local >> >> and then reproduce it? This could help. > > > It works now. Thanks! > Great to hear that! > Of course I am changing my mycron script yet again! I was shown how to > use formail/procmail as a simple MDA. Still need a script file, and > probably still need all these selinux changes for it, > > eventhough only procmail is touching /var/spool/mail/ > > -- Lukas Vrabec SELinux Evangelist, Senior Software Engineer, Security Technologies Red Hat, Inc. _______________________________________________ selinux mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE3wrP3ArXoyYgAS7LRyAaxC8pzgYFAl67994ACgkQRyAaxC8p zgbl3gf/TWYVjE7UPxvq3yXwn0Sxn41JNmuiaD0lGMmmwAzudjJKzfYNsAmLHYR5 j0mfjWcV49f9IzA0brJm1XFfnk1qADZQjWX+UrnFR7Fcns6n4TLsrCF+KcVnVT0a eyh/ugGjXDi94huXPRzRnpuf9LCni21u0/qUiby/kJMZZ+DT2tg8cRvXXHdl1djQ YBotkgzI5CtJwbYQVnGMaeh/S3zSS4PjrvvYQLFjYvp8spvQrgNJiDIgKT+oJg3i PCOWNci3A48kMd7X46xYd/MFkeATGeo8/NU9s6FNK8GEevWS6DrXSxvRmwb+28+I Ju2cmGIYHpeFSMRG5KiGOdKf3QpBPA== =zdX7 -----END PGP SIGNATURE-----