Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144111 Details for
Bug 219900
"cp -a" overwrites with a zero length file on NFS mount
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch fixing the problem
fix_selinux.diff (text/plain), 2.14 KB, created by
Paul Dickson
on 2006-12-20 15:37:26 UTC
(
hide
)
Description:
Patch fixing the problem
Filename:
MIME Type:
Creator:
Paul Dickson
Created:
2006-12-20 15:37:26 UTC
Size:
2.14 KB
patch
obsolete
>commit 2a1edc8201f02109fb084fbee64170cd0e974bb0 >Author: Trond Myklebust <Trond.Myklebust@netapp.com> >Date: Tue Dec 19 08:58:26 2006 -0500 > > NFS: Ensure we support selinux xattrs > > Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> >--- > fs/nfs/nfs3acl.c | 13 +++++++++++++ > fs/nfs/nfs4proc.c | 14 ++++++++++++++ > 2 files changed, 27 insertions(+), 0 deletions(-) > >diff --git a/fs/nfs/nfs3acl.c b/fs/nfs/nfs3acl.c >index 7322da4..5970e7b 100644 >--- a/fs/nfs/nfs3acl.c >+++ b/fs/nfs/nfs3acl.c >@@ -4,6 +4,9 @@ #include <linux/nfs3.h> > #include <linux/nfs_fs.h> > #include <linux/posix_acl_xattr.h> > #include <linux/nfsacl.h> >+#include <linux/security.h> >+#include <linux/xattr.h> >+#include <linux/fsnotify.h> > > #define NFSDBG_FACILITY NFSDBG_PROC > >@@ -82,6 +85,16 @@ int nfs3_setxattr(struct dentry *dentry, > struct posix_acl *acl; > int type, error; > >+ /* Selinux support */ >+ if (!strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN)) { >+ const char *suffix = name + XATTR_SECURITY_PREFIX_LEN; >+ error = security_inode_setsecurity(inode, suffix, value, >+ size, flags); >+ if (!error) >+ fsnotify_xattr(dentry); >+ return error; >+ } >+ > if (strcmp(name, POSIX_ACL_XATTR_ACCESS) == 0) > type = ACL_TYPE_ACCESS; > else if (strcmp(name, POSIX_ACL_XATTR_DEFAULT) == 0) >diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c >index 1712d03..f008eb4 100644 >--- a/fs/nfs/nfs4proc.c >+++ b/fs/nfs/nfs4proc.c >@@ -48,6 +48,9 @@ #include <linux/nfs_page.h> > #include <linux/smp_lock.h> > #include <linux/namei.h> > #include <linux/mount.h> >+#include <linux/security.h> >+#include <linux/xattr.h> >+#include <linux/fsnotify.h> > > #include "nfs4_fs.h" > #include "delegation.h" >@@ -3506,6 +3509,17 @@ int nfs4_setxattr(struct dentry *dentry, > { > struct inode *inode = dentry->d_inode; > >+ /* Selinux support */ >+ if (!strncmp(key, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN)) { >+ const char *suffix = key + XATTR_SECURITY_PREFIX_LEN; >+ int error; >+ error = security_inode_setsecurity(inode, suffix, buf, >+ buflen, flags); >+ if (!error) >+ fsnotify_xattr(dentry); >+ return error; >+ } >+ > if (strcmp(key, XATTR_NAME_NFSV4_ACL) != 0) > return -EOPNOTSUPP; > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219900
: 144111