public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ?chown and ?chown32 syscalls
@ 2002-03-07  1:24 Laurent
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent @ 2002-03-07  1:24 UTC (permalink / raw)
  To: linux-kernel

In asm/unistd.h there are 2 series of syscalls for chown commands (chown, 
lchown and fchown) : the ?chown and ?chown32
In 2.4.17 (ix86) the system is using the ?chown32 syscalls, when I intercept 
the ?chown syscalls nothing happens. Are these syscalls deprecated ?

Thanks for any help.
Laurent Sinitambirivoutin
laurent@augias.org

PS: please CC: me the answers since I'm not on the list... ;)

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

* Re: ?chown and ?chown32 syscalls
@ 2002-03-07  3:54 Christopher Allen Wing
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Allen Wing @ 2002-03-07  3:54 UTC (permalink / raw)
  To: laurent; +Cc: linux-kernel

Laurent:

Prior to Linux 2.4, uid_t on i386 Linux was a 16 bit type. In Linux 2.4
uid_t was changed to be 32 bits on all Linux architectures. Those
architectures (such as x86) which formerly used a 16 bit uid_t needed to
have new syscall entries added, one of which is chown32.

At the same time, to preserve backwards compatibility with old software,
the existing 16 bit uid_t system calls were left intact, including the old
chown.

As of glibc 2.2, chown32 is used first if the kernel supports it, else
glibc falls back to using the old 16 bit uid_t syscalls.


If you use a version of glibc older than 2.2 or a Linux kernel older than
2.4, the old 16 bit uid_t system calls will be used on i386.

Note that Linux architectures which always used a 32 bit uid_t do not have
this second set of system calls, and chown32 will not be defined for them
in asm/unistd.h.

-Chris Wing
wingc@engin.umich.edu


> In asm/unistd.h there are 2 series of syscalls for chown commands (chown,
> lchown and fchown) : the ?chown and ?chown32
> In 2.4.17 (ix86) the system is using the ?chown32 syscalls, when I intercept
> the ?chown syscalls nothing happens. Are these syscalls deprecated ?
>
> Thanks for any help.
> Laurent Sinitambirivoutin
> laurent@augias.org


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

end of thread, other threads:[~2002-03-07  3:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-07  1:24 ?chown and ?chown32 syscalls Laurent
  -- strict thread matches above, loose matches on Subject: below --
2002-03-07  3:54 Christopher Allen Wing

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