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 271791 Details for
Bug 307431
GFS2: security_eo_get() uses permission() when it should use security_inode_getxattr()
[?]
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]
Remove permission checks from xattr ops
gfs2_xattr_permission.diff (text/plain), 1.95 KB, created by
Ryan O'Hara
on 2007-11-28 21:02:30 UTC
(
hide
)
Description:
Remove permission checks from xattr ops
Filename:
MIME Type:
Creator:
Ryan O'Hara
Created:
2007-11-28 21:02:30 UTC
Size:
1.95 KB
patch
obsolete
>--- a/fs/gfs2/eaops.c 2007-11-28 14:32:06.000000000 -0600 >+++ b/fs/gfs2/eaops.c 2007-11-28 14:32:19.000000000 -0600 >@@ -57,41 +57,16 @@ > > static int user_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) > { >- struct inode *inode = &ip->i_inode; >- int error = permission(inode, MAY_READ, NULL); >- if (error) >- return error; >- > return gfs2_ea_get_i(ip, er); > } > > static int user_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er) > { >- struct inode *inode = &ip->i_inode; >- >- if (S_ISREG(inode->i_mode) || >- (S_ISDIR(inode->i_mode) && !(inode->i_mode & S_ISVTX))) { >- int error = permission(inode, MAY_WRITE, NULL); >- if (error) >- return error; >- } else >- return -EPERM; >- > return gfs2_ea_set_i(ip, er); > } > > static int user_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) > { >- struct inode *inode = &ip->i_inode; >- >- if (S_ISREG(inode->i_mode) || >- (S_ISDIR(inode->i_mode) && !(inode->i_mode & S_ISVTX))) { >- int error = permission(inode, MAY_WRITE, NULL); >- if (error) >- return error; >- } else >- return -EPERM; >- > return gfs2_ea_remove_i(ip, er); > } > >@@ -107,8 +82,6 @@ > GFS2_ACL_IS_DEFAULT(er->er_name, er->er_name_len))) > return -EOPNOTSUPP; > >- >- > return gfs2_ea_get_i(ip, er); > } > >@@ -171,31 +144,16 @@ > > static int security_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) > { >- struct inode *inode = &ip->i_inode; >- int error = permission(inode, MAY_READ, NULL); >- if (error) >- return error; >- > return gfs2_ea_get_i(ip, er); > } > > static int security_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er) > { >- struct inode *inode = &ip->i_inode; >- int error = permission(inode, MAY_WRITE, NULL); >- if (error) >- return error; >- > return gfs2_ea_set_i(ip, er); > } > > static int security_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) > { >- struct inode *inode = &ip->i_inode; >- int error = permission(inode, MAY_WRITE, NULL); >- if (error) >- return error; >- > return gfs2_ea_remove_i(ip, er); > } >
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 307431
: 271791