Unix Technical Forum

Slackware 10, MPlayer, SELinux monolithic kernel recompiled, realtime-lsm... isn't that too much?

This is a discussion on Slackware 10, MPlayer, SELinux monolithic kernel recompiled, realtime-lsm... isn't that too much? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, guys. With all this combi (needed for my Ardour music studio... I don't want Fedora Core 2 or ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 01:51 PM
Alejandro Nova
 
Posts: n/a
Default Slackware 10, MPlayer, SELinux monolithic kernel recompiled, realtime-lsm... isn't that too much?

Hi, guys. With all this combi (needed for my Ardour music studio... I
don't want Fedora Core 2 or another distro that carries SELinux because of
the same reasons that you don't want to leave Slackware... Slack is the
best distro ever) I'm having trouble with access to /dev/rtc. And, i'm
sure, it's not the traditional permission blues.

root@starlight:/home/phoebus/incoming# mplayer Within\ Temptation\ -\ Icequeen\
NEW\ VERSION\!.avi
MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon Thunderbird 1344 MHz (Family: 6, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compilado para CPU x86 con extensiones: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf':
No existe el fichero o el directorio
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/
codecs.conf': No existe el fichero o el directorio
Usando codecs.conf interno por defecto.
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Failed to open /dev/rtc: Dispositivo o recurso ocupado (it should be readable by
the user.)
Using usleep() timing

Is this origined by udev? Which setting should I change there? My
permissions for /dev/misc/rtc are 662 normally
(/etc/udev/permissions.d/udev.permissions) and this shot was taken with
666. I think its origin is the SELinux kernel, because when I omitted that
in the kernel configuration /dev/rtc worked. But I need SELinux because I
need to use realtime-lsm (which only works in SELinux) to give realtime
privileges to JACK and Ardour in kernel 2.6 (I've also tried
AudioSlack-kernel, and in fact, i'll drop my 2.6 kernel if this continues,
because I have some minor troubles too (e.g. tdfx_vid isn't ported to
kernel 2.6, anyone interested in testing how a 3dfx Voodoo3 3000 works in
a 2.6 environment contact me, specially for porting tdfx_vid to 2.6
kernel), but i don't want to lose the improvements in 2.6 management) Is
there any way INSIDE SELINUX to fix this?

The other way, of course, is to ditch all this and install the 2.4.26-
AudioSlack kernel, but I still want to give 2.6 kernel a chance. It has
run flawlessly for me, and in JACK alsa_xruns are unnoticeable.


Becoming someone beautiful, through my music, my silent devotion...
Alejandro Nova.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 01:51 PM
Mark Hill
 
Posts: n/a
Default Re: Slackware 10, MPlayer, SELinux monolithic kernel recompiled, realtime-lsm... isn't that too much?

On Tue, 20 Jul 2004 13:06:39 -0400,
Alejandro Nova <novaasc@vtr.net> wrote:
> I'm having trouble with access to /dev/rtc.

....
> Failed to open /dev/rtc: Dispositivo o recurso ocupado (it should be readable by
> the user.)

....
> Is this origined by udev? Which setting should I change there? My
> permissions for /dev/misc/rtc are 662 normally


Is there any significance in that mplayer is trying to open /dev/rtc
while udev has a /dev/misc/rtc? Does it help to symlink /dev/rtc to
/dev/misc/rtc? I have no experience of udev or SELinux, so I'm just
guessing here until a more informed answer comes along.

--
Mark Hill <mrhill@gmail.com>
Email: echo zbp.yvnzt.yyvuez | rot13 | rev | sed s/\\./@/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 01:51 PM
Alejandro Nova
 
Posts: n/a
Default Re: Slackware 10, MPlayer, SELinux monolithic kernel recompiled, realtime-lsm... isn't that too much?

On Tue, 20 Jul 2004 18:51:50 +0000, Mark Hill wrote:

> On Tue, 20 Jul 2004 13:06:39 -0400,
> Alejandro Nova <novaasc@vtr.net> wrote:
>> I'm having trouble with access to /dev/rtc.

> ...
>> Failed to open /dev/rtc: Dispositivo o recurso ocupado (it should

be readable by
>> the user.)

> ...
>> Is this origined by udev? Which setting should I change there? My
>> permissions for /dev/misc/rtc are 662 normally

>
> Is there any significance in that mplayer is trying to open /dev/rtc
> while udev has a /dev/misc/rtc? Does it help to symlink /dev/rtc to
> /dev/misc/rtc? I have no experience of udev or SELinux, so I'm just
> guessing here until a more informed answer comes along.


Thanks for replying. Also, I apologize for my lack of clarity. Mi english
isn't that good (you noted that half of MPlayer's messages were in spanish).
The symlinks between /dev/rtc and /dev/misc/rtc are up and running.

root@starlight:/dev# ls -l rtc
lrwxrwxrwx 1 root root 8 2004-07-20 06:44 rtc -> misc/rtc

root@starlight:/dev/misc# vdir
total 0
crw------- 1 root root 10, 175 2004-07-20 06:44 agpgart
crw-rw-rw- 1 root sys 10, 1 2004-07-20 06:44 psaux
crw-rw-rw- 1 root root 10, 135 2004-07-20 06:44 rtc
crw------- 1 root root 10, 223 2004-07-20 06:44 uinput


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 01:52 PM
jenso
 
Posts: n/a
Default Re: Slackware 10, MPlayer, SELinux monolithic kernel recompiled, realtime-lsm... isn't that too much?

On 2004-07-20, Mark Hill <mrhill@gmail.com> wrote:
> On Tue, 20 Jul 2004 13:06:39 -0400,
> Alejandro Nova <novaasc@vtr.net> wrote:
>> I'm having trouble with access to /dev/rtc.

> ...
>> Failed to open /dev/rtc: Dispositivo o recurso ocupado (it should be readable by
>> the user.)

> ...
>> Is this origined by udev? Which setting should I change there? My
>> permissions for /dev/misc/rtc are 662 normally

>
> Is there any significance in that mplayer is trying to open /dev/rtc
> while udev has a /dev/misc/rtc? Does it help to symlink /dev/rtc to
> /dev/misc/rtc? I have no experience of udev or SELinux, so I'm just
> guessing here until a more informed answer comes along.
>


Don't know about SELinux. But i do have MPlayer ( CVS ),
working with Slackware 10.0 2.6.7/udev.
Check /etc/udev/permissions.d/udev.permissions.
And /etc/udev/rules.d/udev.rules.
The symlink should bee there.

/Jens
--
Slackware | CRUX-1.3.1 PPC
window manager improved

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 01:56 PM
Alejandro Nova
 
Posts: n/a
Default Re: Slackware 10, MPlayer, SELinux monolithic kernel recompiled, realtime-lsm... isn't that too much?

On Wed, 21 Jul 2004 06:07:56 +0000, jenso wrote:

> On 2004-07-20, Mark Hill <mrhill@gmail.com> wrote:
>> On Tue, 20 Jul 2004 13:06:39 -0400,
>> Alejandro Nova <novaasc@vtr.net> wrote:
>>> I'm having trouble with access to /dev/rtc.

>> ...
>>> Failed to open /dev/rtc: Dispositivo o recurso ocupado (it should be

readable by
>>> the user.)

>> ...
>>> Is this origined by udev? Which setting should I change there? My
>>> permissions for /dev/misc/rtc are 662 normally

>>
>> Is there any significance in that mplayer is trying to open /dev/rtc
>> while udev has a /dev/misc/rtc? Does it help to symlink /dev/rtc to
>> /dev/misc/rtc? I have no experience of udev or SELinux, so I'm just
>> guessing here until a more informed answer comes along.
>>

>
> Don't know about SELinux. But i do have MPlayer ( CVS ),
> working with Slackware 10.0 2.6.7/udev.
> Check /etc/udev/permissions.d/udev.permissions.
> And /etc/udev/rules.d/udev.rules.
> The symlink should bee there.
>
> /Jens


Thank you, guys, I'm nothing without you
I only checked /etc/udev/permissions.d/udev.permissions, but I didn't know
about udev.rules. It seems MPlayer doesn't like symlinks, because,
even when /dev/rtc was symlinked with /dev/misc/rtc, it didn't work. So, I
had to change a line in udev.rules, the line that was saying...

KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"

to this...

KERNEL="rtc", NAME="rtc", [could have been %k, but rtc worked]

changing accordingly permissions in udev.permissions, and it worked. Now I
can access with MPlayer to my /dev/rtc.

Alejandro Nova.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com