FarSync FAQ – Linux
If this error occurs when insmod is trying to insert a module, such as the error below, then this is normally due to SELinux:
To check SELinux status:
$ sestatus
SELinux is enabled and set to enforcing
Set SELinux to permissive:
sudo setenforce permissive
Make sure farsync is stopped properly:
sudo /etc/init.d/farsync stop
Start farsync again:
sudo /etc/init.d/farsync start
Permission denied error is no longer displayed.
Try stopping and starting farsync a few more times, just to make sure:
Definitely looks like a SELinux issue, we can either:
- Leave SELinux in permissive mode, in which case we need to make sure the permissive setting is carried across reboots by editing the /etc/selinux/config file and setting SELINUX=permissive.
- Set SELinux back to enforcing and add a custom policy module, which can either be done manually or via a script. The sample script below demonstrates creating a custom policy module and loading the newly created policy module.
The document below specifies how to get LAPB up and working with FarSync Adapters on Linux. It was written using RedHat Enterprise Linux 8, but the same process applies to other distributions.