<dec f='src/src/sys/miscfs/genfs/genfs.h' l='52' type='int genfs_can_chown(kauth_cred_t , __uid_t , __gid_t , __uid_t , __gid_t )'/>
<use f='src/src/sys/fs/ptyfs/ptyfs_vnops.c' l='544' u='c' c='ptyfs_chown'/>
<use f='src/src/sys/fs/tmpfs/tmpfs_subr.c' l='1074' u='c' c='tmpfs_chown'/>
<def f='src/src/sys/miscfs/genfs/genfs_vnops.c' l='767' ll='807' type='int genfs_can_chown(kauth_cred_t cred, __uid_t cur_uid, __gid_t cur_gid, __uid_t new_uid, __gid_t new_gid)'/>
<doc f='src/src/sys/miscfs/genfs/genfs_vnops.c' l='753'>/*
 * Common routine to check if chown() is allowed.
 *
 * Policy:
 *   - You must own the file, and
 *     - You must not try to change ownership, and
 *     - You must be member of the new group
 *
 * cred - credentials of the invoker
 * cur_uid, cur_gid - current uid/gid of the file-system object
 * new_uid, new_gid - target uid/gid of the file-system object
 *
 * Returns 0 if the change is allowed, or an error value otherwise.
 */</doc>
<use f='src/src/sys/ufs/ext2fs/ext2fs_vnops.c' l='525' u='c' c='ext2fs_chown'/>
<use f='src/src/sys/ufs/lfs/ulfs_vnops.c' l='460' u='c' c='ulfs_chown'/>
<use f='src/src/sys/ufs/ufs/ufs_vnops.c' l='695' u='c' c='ufs_chown'/>
