Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:56:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_sb_eat_lsm_opts

Proto:static int selinux_sb_eat_lsm_opts(char *options, void **mnt_opts)

Type:int

Parameter:

TypeParameterName
char *options
void **mnt_opts
2620  from = options
2621  to = options
2622  bool first = true
2625  When 1 cycle
2626  len = opt_len(from)
2628  char * arg = NULL
2630  token = match_opt_prefix(from, len, & arg)
2632  If token != Opt_error Then
2636  If arg Then
2650  kfree(arg)
2651  Go to free_opt
2653  Else
2654  If Not first Then
2655  from--
2656  len++
2660  to += len
2661  first = false
2663  If Not from[len] Then Break
2665  from += len + 1
2667  to = '\0'
2668  Return 0
2670  free_opt :
2671  If mnt_opts Then
2672  selinux_free_mnt_opts( * mnt_opts)
2673  * mnt_opts = NULL
2675  Return rc