[patch] two patches for your review

Tigran Aivazian (tigran@sco.COM)
Mon, 11 Oct 1999 07:44:42 +0100 (BST)


Hi guys,

If you have time, please review the two patches against 2.3.20:

1. http://www.ocston.org/~tigran/patches/execdomains-2.3.20.patch

Adds /proc/execdomains support, to list all supported exec domains,
personality ranges and whether it is the base kernel [kernel] or a
module [module_name] that provides the support:

# cat /proc/execdomains
5-5 ISC [abi_ibcs]
7-7 Xenix [abi_ibcs]
3-3 OpenServer [abi_ibcs]
1-2 iBCS2 [abi_ibcs]
0-0 Linux [kernel]
# ls -l /proc/execdomains
-r--r--r-- 1 root root 158 Oct 10 15:54 /proc/execdomains

Uses lazy /proc file size update in the spirit of /proc/mtrr.

2. http://www.ocston.org/~tigran/patches/binfmt-2.3.20.patch

A simple optimization for ELF magic check along the lines of:

- if (elf_ex.e_ident[0] != 0x7f ||
- strncmp(&elf_ex.e_ident[1], "ELF", 3) != 0)
+ if (strncmp(elf_ex.e_ident, ELFMAG, SELFMAG))

(I hope it doesn't break non-intel-endian worlds, but you tell me!)

Thank you,
Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/