Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\binfmt_misc.c Create Date:2022-07-28 20:27:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_special_flags

Proto:static char *check_special_flags(char *sfs, Node *e)

Type:char

Parameter:

TypeParameterName
char *sfs
Node *e
279  p = sfs
280  cont = 1
283  When cont cycle
285  Case p == 'P'
286  pr_debug("register: flag: P (preserve argv0)\n")
287  p++
289  Break
290  Case p == 'O'
291  pr_debug("register: flag: O (open binary)\n")
292  p++
294  Break
295  Case p == 'C'
296  pr_debug("register: flag: C (preserve creds)\n")
297  p++
302  Break
303  Case p == 'F'
304  pr_debug("register: flag: F: open interpreter file now\n")
305  p++
307  Break
308  Default
309  cont = 0
313  Return p
Caller
NameDescribe
create_entryThis registers a new binary format, it recognises the syntax* ':name:type:offset:magic:mask:interpreter:flags'* where the ':' is the IFS, that can be chosen with the first char