in script a.sh:
chown -R root:group parent-folder/
chown -R root:group parent-folder/*
The script runs as root user.
When chown gets executed it show below SELinux violations:
chown : type=1400 audit(0.0:7): avc: denied { dac_override } for capability=1 scontext=u:r:scriptName:s0 tcontext=u:r:scriptName:s0 tclass=capability permissive=1
What do I need to do to avoid the above dac_override ? (I dont want to apply the dac_override SE policy of course)