Messages in this thread | | | Date | Wed, 7 Apr 1999 16:24:19 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: ext3 to include capabilities? |
| |
> Pavel > PS: And now, questions: Does anyone see a possibility how to add > suitable information into _existing_ elf executable? > > I'd like to be able > > #setcap /bin/ping CAP_RAWSOCK >
Here is an ELF header.
00000000 7F 45 4C 46 01 01 01 00-00 00 20 00 00 00 00 00 ELF...... ..... ^---------------- This byte 00000010 02 00 03 00 01 00 00 00-94 87 04 08 34 00 00 00 ............4...
I think you will find that byte offset 10 -> 15 are available. Byte at offset 10 can definitely be modified and still run on Linux and Sun.
Cheers, Dick Johnson ***** FILE SYSTEM WAS MODIFIED ***** Penguin : Linux version 2.2.5 on an i686 machine (400.59 BogoMips). Warning : It's hard to remain at the trailing edge of technology.
- 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/
| |