Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-28 20:00:56
Last Modify:2020-03-18 10:16:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksys_fchown

Proto:int ksys_fchown(unsigned int fd, uid_t user, gid_t group)

Type:int

Parameter:

TypeParameterName
unsigned intfd
uid_tuser
gid_tgroup
713  f = fdget(fd)
714  error = -EBADF
716  If Not file Then Go to out
719  error = mnt_want_write_file(file)
720  If error Then Go to out_fput
722  audit_file(file)
723  error = chown_common( & f_path, user, group)
724  mnt_drop_write_file(file)
725  out_fput :
726  fdput(f)
727  out :
728  Return error
Caller
NameDescribe
SYSCALL_DEFINE3