| To: | Richard Gooch <rgooch@xxxxxxxxxxxxxxx>, devfs <devfs@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: PTS/? with incorrect ownership. |
| From: | "Joshua M. Schmidlkofer" <menion@xxxxxxxxxxxx> |
| Date: | Wed, 11 Jul 2001 08:03:35 -0600 |
| References: | <3B44CC4B.7010300@mindless.com> <200107062019.f66KJxP00393@mobilix.ras.ucalgary.ca> |
| Reply-to: | menion@xxxxxxxx |
| Sender: | owner-devfs@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2+) Gecko/20010710 |
Hm. Try changing fs/devfs/base.c:devfs_register() to use current->fsuid instead of current->uid (and similarly for gid), and recompile your kernel. I bet your xterm is using setfsuid(2) because it still has root privileges. I will try this, but I wanted to let you know that xterm is _not_ suid. konsole is not, but another bin called 'konsole_grantpty' [hmm. wonder what that could be doing *jk*] IS suid. rxvt is not. However, I don't know that much about KDE, etc. So I have no idea what the init processes are doing. kde_init runs everything, perhaps there are some changes going on underneath? Actually, devfs will wait for devfsd to finish processing an event. Devfsd and all its children have special access to the filesystem. So if you were to have an action which logged the permissions, and then you have a PERMISSIONS action, the logging programme will see the original permissions before they are changed by PERMISSIONS. However, I don't think that is relevant to your problem. I meant that I suppose that before devfsd started its work, devfs had set the permissions. i.e. current->uid Before devfsd ran it's configuration.. I have not studied it all that much..
joshua |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: PTS/? with incorrect ownership., Richard Gooch |
|---|---|
| Next by Date: | [PATCH] devfs v182 available, Richard Gooch |
| Previous by Thread: | Re: PTS/? with incorrect ownership., Richard Gooch |
| Next by Thread: | Re: PTS/? with incorrect ownership., Joshua M. Schmidlkofer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |