forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes ZFS compilation with real secpolicy_vnode_setids_setgids function.
secpolicy_vnode_setids_setgids is called with parameter "gid" which is not defined (as we don't HAVE_KSID). Previously secpolicy_vnode_setids_setgids was a macro definition to zero so reference to gid variable was removed by the preprocessor. That block of code also used zfs_fuid_create_cred which didn't have a linux fallback code without KSID. Copied relevant portions from the function body. Signed-off-by: Massimo Maggi <massimo@mmmm.it>
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters