函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smackfs.c Create Date:2022-07-27 20:55:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:smk_perm_from_str - parse smack accesses from a text string*@string: a text string that contains a Smack accesses code* Returns an integer with respective bits set for specified accesses.

函数原型:static int smk_perm_from_str(const char *string)

返回类型:int

参数:

类型参数名称
const char *string
262  perm等于0
265  循环switch cp
267  :cp恒等于'-'
268  退出
269  :cp恒等于'r'
270  :cp恒等于'R'
271  perm或等于MAY_READ
272  退出
273  :cp恒等于'w'
274  :cp恒等于'W'
275  perm或等于MAY_WRITE
276  退出
277  :cp恒等于'x'
278  :cp恒等于'X'
279  perm或等于MAY_EXEC
280  退出
281  :cp恒等于'a'
282  :cp恒等于'A'
283  perm或等于MAY_APPEND
284  退出
285  :cp恒等于't'
286  :cp恒等于'T'
287  perm或等于Controls directory labeling
288  退出
289  :cp恒等于'l'
290  :cp恒等于'L'
291  perm或等于Locks should be writes, but ...
292  退出
293  :cp恒等于'b'
294  :cp恒等于'B'
295  perm或等于Report use of this rule
296  退出
297  默认
298  返回:perm
调用者
名称描述
smk_fill_rulesmk_fill_rule - Fill Smack rule from strings*@subject: subject label string*@object: object label string*@access1: access string*@access2: string with permissions to be removed*@rule: Smack rule*@import: if non-zero, import labels*@len: label length limit