OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [Documentation/] [highuid.txt] - Diff between revs 1279 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 1279 Rev 1765
Notes on the change from 16-bit UIDs to 32-bit UIDs:
Notes on the change from 16-bit UIDs to 32-bit UIDs:
- kernel code MUST take into account __kernel_uid_t and __kernel_uid32_t
- kernel code MUST take into account __kernel_uid_t and __kernel_uid32_t
  when communicating between user and kernel space in an ioctl or data
  when communicating between user and kernel space in an ioctl or data
  structure.
  structure.
- kernel code should use uid_t and gid_t in kernel-private structures and
- kernel code should use uid_t and gid_t in kernel-private structures and
  code.
  code.
What's left to be done for 32-bit UIDs on all Linux architectures:
What's left to be done for 32-bit UIDs on all Linux architectures:
- Disk quotas have an interesting limitation that is not related to the
- Disk quotas have an interesting limitation that is not related to the
  maximum UID/GID. They are limited by the maximum file size on the
  maximum UID/GID. They are limited by the maximum file size on the
  underlying filesystem, because quota records are written at offsets
  underlying filesystem, because quota records are written at offsets
  corresponding to the UID in question.
  corresponding to the UID in question.
  Further investigation is needed to see if the quota system can cope
  Further investigation is needed to see if the quota system can cope
  properly with huge UIDs. If it can deal with 64-bit file offsets on all
  properly with huge UIDs. If it can deal with 64-bit file offsets on all
  architectures, this should not be a problem.
  architectures, this should not be a problem.
- Decide whether or not to keep backwards compatibility with the system
- Decide whether or not to keep backwards compatibility with the system
  accounting file, or if we should break it as the comments suggest
  accounting file, or if we should break it as the comments suggest
  (currently, the old 16-bit UID and GID are still written to disk, and
  (currently, the old 16-bit UID and GID are still written to disk, and
  part of the former pad space is used to store separate 32-bit UID and
  part of the former pad space is used to store separate 32-bit UID and
  GID)
  GID)
- Need to validate that OS emulation calls the 16-bit UID
- Need to validate that OS emulation calls the 16-bit UID
  compatibility syscalls, if the OS being emulated used 16-bit UIDs, or
  compatibility syscalls, if the OS being emulated used 16-bit UIDs, or
  uses the 32-bit UID system calls properly otherwise.
  uses the 32-bit UID system calls properly otherwise.
  This affects at least:
  This affects at least:
        SunOS emulation
        SunOS emulation
        Solaris emulation
        Solaris emulation
        iBCS on Intel
        iBCS on Intel
        sparc32 emulation on sparc64
        sparc32 emulation on sparc64
        (need to support whatever new 32-bit UID system calls are added to
        (need to support whatever new 32-bit UID system calls are added to
        sparc32)
        sparc32)
- Validate that all filesystems behave properly.
- Validate that all filesystems behave properly.
  At present, 32-bit UIDs _should_ work for:
  At present, 32-bit UIDs _should_ work for:
        ext2
        ext2
        ufs
        ufs
        isofs
        isofs
        nfs
        nfs
        coda
        coda
        udf
        udf
  Ioctl() fixups have been made for:
  Ioctl() fixups have been made for:
        ncpfs
        ncpfs
        smbfs
        smbfs
  Filesystems with simple fixups to prevent 16-bit UID wraparound:
  Filesystems with simple fixups to prevent 16-bit UID wraparound:
        minix
        minix
        sysv
        sysv
        qnx4
        qnx4
  Other filesystems have not been checked yet.
  Other filesystems have not been checked yet.
- The ncpfs and smpfs filesystems can not presently use 32-bit UIDs in
- The ncpfs and smpfs filesystems can not presently use 32-bit UIDs in
  all ioctl()s. Some new ioctl()s have been added with 32-bit UIDs, but
  all ioctl()s. Some new ioctl()s have been added with 32-bit UIDs, but
  more are needed. (as well as new user<->kernel data structures)
  more are needed. (as well as new user<->kernel data structures)
- The ELF core dump format only supports 16-bit UIDs on arm, i386, m68k,
- The ELF core dump format only supports 16-bit UIDs on arm, i386, m68k,
  sh, and sparc32. Fixing this is probably not that important, but would
  sh, and sparc32. Fixing this is probably not that important, but would
  require adding a new ELF section.
  require adding a new ELF section.
- The ioctl()s used to control the in-kernel NFS server only support
- The ioctl()s used to control the in-kernel NFS server only support
  16-bit UIDs on arm, i386, m68k, sh, and sparc32.
  16-bit UIDs on arm, i386, m68k, sh, and sparc32.
- make sure that the UID mapping feature of AX25 networking works properly
- make sure that the UID mapping feature of AX25 networking works properly
  (it should be safe because it's always used a 32-bit integer to
  (it should be safe because it's always used a 32-bit integer to
  communicate between user and kernel)
  communicate between user and kernel)
Chris Wing
Chris Wing
wingc@umich.edu
wingc@umich.edu
last updated: January 11, 2000
last updated: January 11, 2000
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.