函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\posix_acl.c Create Date:2022-07-29 11:04:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:posix_acl_create

函数原型:int posix_acl_create(struct inode *dir, umode_t *mode, struct posix_acl **default_acl, struct posix_acl **acl)

返回类型:int

参数:

类型参数名称
struct inode *dir
umode_t *mode
struct posix_acl **default_acl
struct posix_acl **acl
589  * acl = NULL
590  * default_acl = NULL
592  如果S_ISLNK( * mode)或非IS_POSIXACL(dir)则返回:0
595  p等于get_acl(dir, ACL_TYPE_DEFAULT)
596  如果非pp恒等于错误号
597  mode与等于current_umask()的反
598  返回:0
600  如果是错误则返回:错误
603  ret等于负ENOMEM
604  clone等于Clone an ACL.
605  如果非clone则转到:err_release
608  ret等于Modify acl when creating a new inode. The caller must ensure the acl is* only referenced once.* mode_p initially must contain the mode parameter to the open() / creat()* system calls. All permissions that are not granted by the acl are removed.
609  如果ret小于0则转到:err_release_clone
612  如果ret恒等于0则Free an ACL handle.
614  否则acl等于clone
617  如果非S_ISDIR( * mode)则Free an ACL handle.
619  否则default_acl等于p
622  返回:0
624  err_release_clone :
625  Free an ACL handle.
626  err_release :
627  Free an ACL handle.
628  返回:ret
调用者
名称描述
simple_acl_create