Ask Your Question
0

SElinux sandbox without audio (no sound)

asked 2013-09-20 03:26:44 -0600

erik gravatar image

updated 2014-04-11 16:39:17 -0600

remjg gravatar image

I am using Fedora 17 and Gnome Shell (Gnome 3).

I have two displays. Now I want to play videos fullscreen stretched all over both displays. I tried it with mplayer and gnome-mplayer with the option --fullscreen, but only one of the displays is used. I have to manually resize the window to have it fill both displays.

As a workaround I started gnome-mplayer in a SElinux sandbox, that has the size of both displays together.

  • First problem: I have to start this sandbox-player on the left screen for the sandbox to be visible on both displays. If I start the sandbox-player on the right screen I have to manually drag and drop it to the left screen, otherwise I can see only the left part of the video (displayed on the right screen).
  • Second problem: I hear no sound. Which option do I have to set for letting the audio through the sandbox?
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2013-09-20 04:42:33 -0600

domg472 gravatar image

updated 2013-09-20 04:43:46 -0600

As for the second part of your question:

I have just tested this: (sandbox -X -t sandbox_web_t gnome-mplayer test1.webm)

By default sound did not work due to the properties of sandbox technology.

However i managed to get it going by going to the mplayer preferences menu and select the actual audio output device rather than leaving it on "Default"

Example

edit flag offensive delete link more

Comments

Thanks for this answer. But it would be nicer to not have to change the gnome-mplayer preferences. Because I want to use this player for normal playback (without sandbox), too. Is there somewhere a list of types (other than the short one in the man page)? Or isn’t it a problem of the sandbox types at all?

erik gravatar imageerik ( 2013-09-22 00:17:59 -0600 )edit

This is not a issue with sandbox types i believe. It is an issue with how sandbox uses namespaces. I Think it cannot get to the pulseaudio socket in your home directory or something

domg472 gravatar imagedomg472 ( 2013-11-22 07:55:14 -0600 )edit

Question Tools

Stats

Asked: 2013-09-20 03:26:44 -0600

Seen: 401 times

Last updated: Sep 20 '13