This problem has been discussed in the past on this list.  Here are a couple
of messages that should help you.


-----Original Message-----
From: Frederic Cazenave [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: [rtl] root id


Last week I have posted a question concerning the lost of my root
privilege
after installing rtlinux modules. I can summary all my mail with hofrat
( Der Herr Hofrat <[EMAIL PROTECTED]> ), thanks to him, as following :

I have installed this files :
    521612 -rw-r--r--    1 root     root     19090206 Feb 14 20:56
linux-2.2.18.tar.gz
    521622 -rw-r--r--    1 root     root       450860 Feb 16 15:10
rtlinux-3.0.tar.gz

then patch linux with  kernel_patch-2.2 and build the new rtlinux image

when I reboot my machine and logged as root my id is

[root@xport /root]# id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

After installing all the modules of rtlinux my effective id changes :

uid=0(root) gid=0(root) euid=4294967295
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
(here there is no possibility to bring down the system propely !!)

If I remove all the rt modules my id goes back to the original

uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

Rigth now I didn't find any solution

Fred Cazenave

--
 _________________________________________________________
|                                                          |
|               Frederic CAZENAVE                          |
|    _/\_  /^=  McGill Radar                               |
| \_/    \//    Box 198, MacDonald College                 |
|   | /-\ |     Ste Anne de Bellevue                       |
|   ||   ||     Quebec, Canada   H9X 3V9                   |
|               Tel (514) 398 7733 fax (514) 398 7755      |
|               mailto:[EMAIL PROTECTED]       |
|               http://www.mpl.orstom.fr/hydrologie/catch/ |
|__________________________________________________________|





} I think the bigger question here is:  Why did this happen in the first
place?
} 
} Cort,
} 
} Is there anyone at FSM Labs know why this occurred?

The problem was with the psc module.  Well, actually it wasn't the psc
module it was bad user-land programs.

The PSC module grabs a free syscall when it's loaded.  With older kernels
we were getting a free syscall that happens to correspond with a syscall
added to later kernels to set/check privilege levels.  Some user-programs
would make a direct call to syscall #201 (not through glibc) and assume it
was the correct one.  On kernels that didn't support this syscall the
user-program would get an error.  When psc grabbed that syscall the
user-program would end up calling a syscall it didn't intend rather than
the privilege syscall.

We've changed the syscall hook code in psc so that it searches top-down
rather than bottom up.  That fixes the problem.

In short, if you have doubts just don't load psc.  It's not needed unless
you're using the user-level realtime features of RTLinux.





-----Original Message-----
From: dmv [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 9:56 AM
To: [EMAIL PROTECTED]
Subject: Re: [rtl] How do I shutdown the system


        Try load/unload RT-Linux
        >>/usr/src/RTLDIR/scripts/.insrtl
        >>/usr/src/RTLDIR/scripts/.rmrtl
        Or even,  init 6

        Alex

RK Patil wrote:

> Hello,
> I have been able to successfully load RTLinux( rtlinux-3.0, kernel-2.2.18)
> on my PC ( x86).  The system is able to boot with both the modules ( Red
Hat
> Linux 7.1 and RTLinux 3.0).
> 
> However when I boot the system with RTLinux  I have not been able to bring
> down the system using "shutdown" command. the system displays the
following
> error message:
> 
> init: you must be the super user
> 
> This messege comes inspite of me logging as super user. Can anybody help
me
> out??
> 
> --TIA
> RK
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
> 
> 
> 


-- 
  ------------------------------------------------------------------
|  Alexandre de Moura Vidal            |                           |
|                                      |                           |
|  Email: [EMAIL PROTECTED]   |                           |
|                                      |                           |
|  Phone:+49/0241/807954               | Phone: +49/0241/155320    |
|  Communication Networks              | Mobile:+49/0174/4273068   |
|  http://www.comnets.rwth-aachen.de   | Private Address:          |
|  Aachen University of Technology     |                           |
|  Kopernikusstr. 16                   | Roermondersstr. 34/36     |
|  52074 Aachen                        | 52072 Aachen              |
|   GERMANY                            |  GERMANY                  |
  ------------------------------------------------------------------

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to