Skip to content
  • Laurent Vivier's avatar
    linux-user: add support of binfmt_misc 'O' flag · 03cfd8fa
    Laurent Vivier authored
    
    
    The binfmt_misc module can calculate the credentials and security
    token according to the binary instead of to the interpreter if the
    'C' flag is enabled.
    
    To be able to execute non-readable binaries, this flag implies 'O'
    flag. When 'O' flag is enabled, bintfmt_misc opens the file for
    reading and pass the file descriptor to the interpreter.
    
    References:
    linux/Documentation/binfmt_misc.txt          ['O' and 'C' description]
    linux/fs/binfmt_misc.c linux/fs/binfmt_elf.c [ AT_EXECFD usage ]
    
    Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
    Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
    03cfd8fa