Skip to contentSkip to conversation

dpkg fails on installing nvidia-glx because /etc/init.d/nvidia-glx start is run

DISCUSSION Luke Kenneth Casson Leighton 2 participants 5 messages Jun 7, 2004 – Jun 8, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

hiya (russell?)

i just installed the nvidia-glx package (don't ask :)

i think i got it to install - by editing /etc/init.d/nvidia-glx and temporarily putting exit 0 at the top of it.

is there provision for dpkg running /etc/init.d/NNNN scripts and correctly... oh.

darn.

i get it.

i need to write an nvidia-glx policy, don't i?

:)

Signature · 14 lines
expecting email to be received and understood is a bit like
picking up the telephone and immediately dialing without
checking for a dial-tone; speaking immediately without listening
for either an answer or ring-tone; hanging up immediately and
believing that you have actually started a conversation.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 5 lines · Luke Kenneth Casson Leighton

hiya (russell?)

i just installed the nvidia-glx package (don't ask :)

i need to write an nvidia-glx policy, don't i?

Not necessarily. At least under Fedora, all the NVidia stuff ends up labelled correctly by the contents of file_contexts/program/xserver.fc (All the /usr/lib *.so's end up as shlib_t, and the /dev/nvidia.* end up as xserver_misc_device_t, and you're ready to rock-n-roll...)

You may just need to cd to /etc/<selinux-path> and do a 'make relabel'.

#2 lore raw
Quoted 5 lines · On Mon, Jun 07, 2004 at 10:12:01PM -0400, [email protected] wrote:
Quoted 3 lines · Luke Kenneth Casson Leighton

hiya (russell?)

i just installed the nvidia-glx package (don't ask :)

Quoted 8 lines
Quoted 1 line

i need to write an nvidia-glx policy, don't i?

Not necessarily. At least under Fedora, all the NVidia stuff ends up labelled correctly by the contents of file_contexts/program/xserver.fc (All the /usr/lib *.so's end up as shlib_t, and the /dev/nvidia.* end up as xserver_misc_device_t, and you're ready to rock-n-roll...)

You may just need to cd to /etc/<selinux-path> and do a 'make relabel'.

*sigh*. yeh, i did.

i did the make relabel and th libGL.so.1.0.5336 is ... yep, shlib_t. the symlink is lib_t.

btw during the install i got "cannot create symbolic link /usr/X11/lib/ libglx-something to /usr/lib/nvidia-something".

... why aren't these files _created_ with the correct permissions?

can that be done?

l.

Signature · 15 lines
-- 
expecting email to be received and understood is a bit like
picking up the telephone and immediately dialing without
checking for a dial-tone; speaking immediately without listening
for either an answer or ring-tone; hanging up immediately and
believing that you have actually started a conversation.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 2 lines · Luke Kenneth Casson Leighton

btw during the install i got "cannot create symbolic link /usr/X11/lib/ libglx-something to /usr/lib/nvidia-something".

That's a different problem - you weren't allowed to create a symlink in the /usr/X11R6/lib directory for some reason. Unfortunately, it's probably going to be impossible to debug it without seeing the exact error message...

Quoted 1 line

... why aren't these files _created_ with the correct permissions?

There's many potential reasons, most of which boil down to some variant of "You weren't allowed to, or the tool didn't know how to". I'd have to double-check what the nvidia installer does, and what the 'make install' does, to see what command actually gets invoked to put the *.so into place. And then there's the question of what context you were in at the time - under SELinux, it's possible to su to UID 0 and *not* be in role sysadm_r (which has almost all permissions), or to su to a non-zero UID and still be in sysadm_r.

#4 lore raw
Quoted 12 lines · On Tue, Jun 08, 2004 at 11:12:54AM -0400, [email protected] wrote:
Quoted 2 lines · Luke Kenneth Casson Leighton

btw during the install i got "cannot create symbolic link /usr/X11/lib/ libglx-something to /usr/lib/nvidia-something".

That's a different problem - you weren't allowed to create a symlink in the /usr/X11R6/lib directory for some reason. Unfortunately, it's probably going to be impossible to debug it without seeing the exact error message...

Quoted 1 line

... why aren't these files _created_ with the correct permissions?

Quoted 9 lines

There's many potential reasons, most of which boil down to some variant of "You weren't allowed to, or the tool didn't know how to". I'd have to double-check what the nvidia installer does, and what the 'make install' does, to see what command actually gets invoked to put the *.so into place. And then there's the question of what context you were in at the time - under SELinux, it's possible to su to UID 0 and *not* be in role sysadm_r (which has almost all permissions), or to su to a non-zero UID and still be in sysadm_r.

all thoroughly likely. i have been having problems running se_apt-get and se-dpkg (and apt-get and dpkg as well, eep) so i pick-and-choose: one works, one doesn't, and pick up the pieces from there.

l.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.