I have a web app that receives, stores, and processes files using AI algorithms implemented in Python. The web app is developed in server-side scripting language, but when invoking the Python programs on uploaded files, SELinux denies permissions to access those files.
Suppose I have a site distribution package in the following directory format:
/bin # Python binaries
/doc # explains some important things
/web # document root.
and a file pool directory in the environmnet variable $FILE_POOL
How do I correctly and safely configure SELinux to allow such access?