SELinux and FFMpeg

Share this post:

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’

Over 10 years in business.

Self-funded. No investors. No bullshit.

More than 3,000 customers worldwide.

Helpmonks - no bullshit customer engagement service

Growth starts with action

Empower your team and delight your customers.

Helpmonks - email management for small businesses