Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* setuid() in Alpha/Linux
@ 1999-03-03  7:05 Dumb Kid
  1999-03-03  8:03 ` Tom Holroyd
  0 siblings, 1 reply; 3+ messages in thread
From: Dumb Kid @ 1999-03-03  7:05 UTC (permalink / raw)
  To: axp-list

Hi All,

I know the uid limit in x86 linux is 65535. And I would
think the limit in Alpha will be much bigger due to the 64-bit
arch.

I can successfully create a file and chown to >65535 uid. And
getpwuid(>65535) will return the correct user entry also.

However, when I do "setuid" in a C program, the uid will change
to something like uid-65535, therefore, setuid(65536) will
run the program as uid 1 ??

All that was in 2.0.36 kernel. Any patches I need to patch
in order to make the kernel support >65535 uid?

Regards,
Tom

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setuid() in Alpha/Linux
  1999-03-03  7:05 setuid() in Alpha/Linux Dumb Kid
@ 1999-03-03  8:03 ` Tom Holroyd
  1999-03-04  2:51   ` Michael Tibor
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Holroyd @ 1999-03-03  8:03 UTC (permalink / raw)
  To: axp-list

On Wed, 3 Mar 1999, Dumb Kid wrote:

>I know the uid limit in x86 linux is 65535. And I would
>think the limit in Alpha will be much bigger due to the 64-bit
>arch.

uid >= 2^16 is a feature slated for inclusion starting in the 2.3 series. 
There's so much to change, they will also be changing many other
quantities for 64 bit archs., to get it all done at once.  (For example,
the kernel will have to keep track of time in nanoseconds, as we are
starting to move into GHz territory clock speeds.) 

So you'll have to wait on this one, but do check the archives
(http://www.linuxhq.com/lnxlists/) for discussions of this issue and
possible pointers to people who may be working on patches already. 

Dr. Tom Holroyd
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
	-- The Scarecrow


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setuid() in Alpha/Linux
  1999-03-03  8:03 ` Tom Holroyd
@ 1999-03-04  2:51   ` Michael Tibor
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Tibor @ 1999-03-04  2:51 UTC (permalink / raw)
  To: axp-list

On Wed, 3 Mar 1999, Tom Holroyd wrote:

> On Wed, 3 Mar 1999, Dumb Kid wrote:
> 
> >I know the uid limit in x86 linux is 65535. And I would
> >think the limit in Alpha will be much bigger due to the 64-bit
> >arch.
> 
> uid >= 2^16 is a feature slated for inclusion starting in the 2.3 series. 
> There's so much to change, they will also be changing many other
> quantities for 64 bit archs., to get it all done at once.  (For example,
> the kernel will have to keep track of time in nanoseconds, as we are
> starting to move into GHz territory clock speeds.) 
> 
> So you'll have to wait on this one, but do check the archives
> (http://www.linuxhq.com/lnxlists/) for discussions of this issue and
> possible pointers to people who may be working on patches already. 

Just a reminder that at

  http://www.lib.uaa.alaska.edu/archives.html

(click the axp-list link)

I've got a searchable archive (never had much luck with other archives--
even the one at linuxhq.com appears to be non-searchable at the moment,
and I won't even mention the one at archive.redhat.com).

One thing to note is that by using the form on the main archives page you
can type in your search keywords, and it'll return matches from both
axp-list and linux-kernel (with just one search!).  Of course, if you're
only interested in the stuff from axp-list, then use the form on the
axp-list page...

Mike
-- 
Mike Tibor         Univ. of Alaska Anchorage    (907) 786-1001 voice
LAN Technician     Consortium Library             (907) 786-6050 fax
tibor@lib.uaa.alaska.edu       http://www.lib.uaa.alaska.edu/~tibor/
http://www.lib.uaa.alaska.edu/~tibor/pgpkey  for PGP public key


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-03-04  2:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-03  7:05 setuid() in Alpha/Linux Dumb Kid
1999-03-03  8:03 ` Tom Holroyd
1999-03-04  2:51   ` Michael Tibor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox