Re: AVC error in cron script - SOLVED?

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

 



On Thu, 2024-09-12 at 12:14 +0930, Tim via users wrote:
> On Wed, 2024-09-11 at 12:19 +0100, Patrick O'Callaghan wrote:
> > Turns out I don't need any of this. If I substitute my original crontab
> > line for one that simply calls a Shell script which in turn calls
> > apachectl, then it all works with no AVC.
> 
> ENVironment differences?  The crontab versus your shell's?  Try dumping
> all the ENV variables to a text file, via crontab entry.

The shell script is called directly from the crontab line, so
presumably the ENV variables are the same. In any  case, this the
environment passed on:

SHELL=/bin/sh
PWD=/root
LOGNAME=root
HOME=/root
LANG=en_GB.UTF-8
USER=root
SHLVL=1
PATH=/usr/bin:/bin:/usr/sbin:/sbin
_=/usr/bin/printenv

There's nothing there that should affect SElinux.

poc
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[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