-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zpl_inode.c: Fix SMACK interoperability #11839
Merged
behlendorf
merged 1 commit into
openzfs:master
from
TerraTech:iss/11646/SMACK_interoperability
Apr 9, 2021
Merged
zpl_inode.c: Fix SMACK interoperability #11839
behlendorf
merged 1 commit into
openzfs:master
from
TerraTech:iss/11646/SMACK_interoperability
Apr 9, 2021
Conversation
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
TerraTech
force-pushed
the
iss/11646/SMACK_interoperability
branch
from
April 3, 2021 22:48
b5e40f5
to
31d7102
Compare
behlendorf
reviewed
Apr 6, 2021
TerraTech
force-pushed
the
iss/11646/SMACK_interoperability
branch
2 times, most recently
from
April 7, 2021 05:02
a57e0c6
to
d3d7159
Compare
closes: openzfs#11646 ref: openzfs#11646 (comment) ref: cschaufler/smack-next#1 SMACK needs to have the ZFS dentry security field setup before SMACK's d_instantiate() hook is called as it requires functioning '__vfs_getxattr()' calls to properly set the labels. Fixes: 1) file instantiation properly setting the object label to the subject's label 2) proper file labelling in a transmutable directory Functions Updated: 1) zpl_create() 2) zpl_mknod() 3) zpl_mkdir() 4) zpl_symlink() Signed-off-by: TerraTech <TerraTech@users.noreply.github.com>
TerraTech
force-pushed
the
iss/11646/SMACK_interoperability
branch
from
April 8, 2021 05:15
d3d7159
to
a2b9173
Compare
behlendorf
approved these changes
Apr 8, 2021
behlendorf
added
Status: Accepted
Ready to integrate (reviewed, tested)
and removed
Status: Code Review Needed
Ready for review and testing
labels
Apr 9, 2021
mcmilk
pushed a commit
to mcmilk/zfs
that referenced
this pull request
Apr 10, 2021
SMACK needs to have the ZFS dentry security field setup before SMACK's d_instantiate() hook is called as it requires functioning '__vfs_getxattr()' calls to properly set the labels. Fxes: 1) file instantiation properly setting the object label to the subject's label 2) proper file labeling in a transmutable directory Functions Updated: 1) zpl_create() 2) zpl_mknod() 3) zpl_mkdir() 4) zpl_symlink() External-issue: cschaufler/smack-next#1 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: TerraTech <TerraTech@users.noreply.github.com> Closes openzfs#11646 Closes openzfs#11839
adamdmoss
pushed a commit
to adamdmoss/zfs
that referenced
this pull request
Apr 10, 2021
SMACK needs to have the ZFS dentry security field setup before SMACK's d_instantiate() hook is called as it requires functioning '__vfs_getxattr()' calls to properly set the labels. Fxes: 1) file instantiation properly setting the object label to the subject's label 2) proper file labeling in a transmutable directory Functions Updated: 1) zpl_create() 2) zpl_mknod() 3) zpl_mkdir() 4) zpl_symlink() External-issue: cschaufler/smack-next#1 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: TerraTech <TerraTech@users.noreply.github.com> Closes openzfs#11646 Closes openzfs#11839
mcmilk
pushed a commit
to mcmilk/zfs
that referenced
this pull request
Apr 10, 2021
SMACK needs to have the ZFS dentry security field setup before SMACK's d_instantiate() hook is called as it requires functioning '__vfs_getxattr()' calls to properly set the labels. Fxes: 1) file instantiation properly setting the object label to the subject's label 2) proper file labeling in a transmutable directory Functions Updated: 1) zpl_create() 2) zpl_mknod() 3) zpl_mkdir() 4) zpl_symlink() External-issue: cschaufler/smack-next#1 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: TerraTech <TerraTech@users.noreply.github.com> Closes openzfs#11646 Closes openzfs#11839
behlendorf
pushed a commit
to behlendorf/zfs
that referenced
this pull request
Apr 14, 2021
SMACK needs to have the ZFS dentry security field setup before SMACK's d_instantiate() hook is called as it requires functioning '__vfs_getxattr()' calls to properly set the labels. Fxes: 1) file instantiation properly setting the object label to the subject's label 2) proper file labeling in a transmutable directory Functions Updated: 1) zpl_create() 2) zpl_mknod() 3) zpl_mkdir() 4) zpl_symlink() External-issue: cschaufler/smack-next#1 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: TerraTech <TerraTech@users.noreply.github.com> Closes openzfs#11646 Closes openzfs#11839
sempervictus
pushed a commit
to sempervictus/zfs
that referenced
this pull request
May 31, 2021
SMACK needs to have the ZFS dentry security field setup before SMACK's d_instantiate() hook is called as it requires functioning '__vfs_getxattr()' calls to properly set the labels. Fxes: 1) file instantiation properly setting the object label to the subject's label 2) proper file labeling in a transmutable directory Functions Updated: 1) zpl_create() 2) zpl_mknod() 3) zpl_mkdir() 4) zpl_symlink() External-issue: cschaufler/smack-next#1 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: TerraTech <TerraTech@users.noreply.github.com> Closes openzfs#11646 Closes openzfs#11839
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
closes: #11646
closes: cschaufler/smack-next#1
ref: #11646 (comment)
Description
SMACK needs to have the ZFS dentry security field setup before SMACK's d_instantiate() hook
is called as it requires functioning '__vfs_getxattr()' calls to properly set the labels.
Fixes:
Functions Updated:
Signed-off-by: TerraTech TerraTech@users.noreply.github.com
How Has This Been Tested?
I have been using this on production systems for over a month with no ZFS operational problems and SMACK now works properly.
Types of changes
Checklist:
Signed-off-by
.