URL
https://opencores.org/ocsvn/test_project/test_project/trunk
Subversion Repositories test_project
[/] [test_project/] [trunk/] [linux_sd_driver/] [Documentation/] [highuid.txt] - Rev 62
Compare with Previous | Blame | View Log
Notes on the change from 16-bit UIDs to 32-bit UIDs:- kernel code MUST take into account __kernel_uid_t and __kernel_uid32_twhen communicating between user and kernel space in an ioctl or datastructure.- kernel code should use uid_t and gid_t in kernel-private structures andcode.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 themaximum UID/GID. They are limited by the maximum file size on theunderlying filesystem, because quota records are written at offsetscorresponding to the UID in question.Further investigation is needed to see if the quota system can copeproperly with huge UIDs. If it can deal with 64-bit file offsets on allarchitectures, this should not be a problem.- Decide whether or not to keep backwards compatibility with the systemaccounting file, or if we should break it as the comments suggest(currently, the old 16-bit UID and GID are still written to disk, andpart of the former pad space is used to store separate 32-bit UID andGID)- Need to validate that OS emulation calls the 16-bit UIDcompatibility syscalls, if the OS being emulated used 16-bit UIDs, oruses the 32-bit UID system calls properly otherwise.This affects at least:SunOS emulationSolaris emulationiBCS on Intelsparc32 emulation on sparc64(need to support whatever new 32-bit UID system calls are added tosparc32)- Validate that all filesystems behave properly.At present, 32-bit UIDs _should_ work for:ext2ufsisofsnfscodaudfIoctl() fixups have been made for:ncpfssmbfsFilesystems with simple fixups to prevent 16-bit UID wraparound:minixsysvqnx4Other filesystems have not been checked yet.- The ncpfs and smpfs filesystems cannot presently use 32-bit UIDs inall ioctl()s. Some new ioctl()s have been added with 32-bit UIDs, butmore are needed. (as well as new user<->kernel data structures)- 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 wouldrequire adding a new ELF section.- The ioctl()s used to control the in-kernel NFS server only support16-bit UIDs on arm, i386, m68k, sh, and sparc32.- 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 tocommunicate between user and kernel)Chris Wingwingc@umich.edulast updated: January 11, 2000
