I run Fedora with GNOME and recently installed Viber for linux. It's very good and all is working just fine. As Viber is not open-source software, I decided to run it as another user to make sure that it doesn't have access to my files without my concent, by creating a user:group viber:viber. If I try to open from inside Viber files that belong to me or any other user, it can't read them. Goal achieved but partly. Now, I stumbled against another problem, which is Viber works only with messages and when I try to make a call, it says, that it can't find neither microphone nor speakers? It feels that I know why (I run X Server (GNOME) as myself and Viber as viber:viber (user:group) ).How to make Viber run as viber:viber and at the same time, to let it use microphone and speakers, while running GNOME session as myusername:myusername? SELinux solutions are also welcome but with concrete examples! chroot is not the solution, as it will lead, as I understand, to the same problem as described above.EDIT 1:The exec for running it is: su - viber -c /opt/viber/Viber
Running Viber as another user while using mine X Server's microphine and speakers
fedora;security;gnome;selinux;jails
I wasn't aware of Pulseaudio running on Fedora as audio server.After researching, I have finally found a way to share audio (microphone and speakers) among other users, while running Pulseaudio as normal user (myself) and not in System Mode.In order to do that you will only need to copy initial configuration file to your home directory:cp /etc/pulse/default.pa  ~/.pulse/default.paAfterwards, add the following configuration option to it (~/.pulse/default.pa):load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1Now, under those users/user, that you want to share the audio with, in their home directories (NOT YOURS) create Pulseaudio custom user-config file ~/.pulse/client.conf and add the following option:default-server = 127.0.0.1Don't forget to restart your audio server or your computer/server to apply new settings.Eventually, I can run Viber as another user viber:viber and have access to microphone and speakers, while running GNOME session as myusername:myusername.Successfully tested on Fedora 20.