![why](/static/img/x1mno0Ukhc-600.jpeg)
SELinux is a good thing, but it also requires you to watch out on some libraries. Sometimes, something just fails, because SELinux does not allow it to run. This so happens when you have SELinux installed and want to run FFMpeg.
I just run into this when I tried to run FFMpeg and got this error message:
“error while loading shared libraries: /usr/lib/libavcodec.so.52: cannot restore segment prot after reloc: Permission denied”
In order to run FFMpeg without problems I had to add the remove the restrictions for SELinux with:
chcon -t textrel_shlib_t ‘/usr/lib/libavutil.so.49.15.0’
chcon -t textrel_shlib_t ‘/usr/lib/libavcodec.so.52.20.0’
chcon -t textrel_shlib_t ‘/usr/lib/libavformat.so.52.31.0’
chcon -t textrel_shlib_t ‘/usr/lib/libavformat.so.52.31.0’
chcon -t textrel_shlib_t ‘/usr/lib/libswscale.so.0.7.1’