RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 823728 - selinux block setxattr in CIFS filesystems
Summary: selinux block setxattr in CIFS filesystems
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-22 02:16 UTC by Jian Li
Modified: 2014-03-04 00:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-23 04:15:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jian Li 2012-05-22 02:16:42 UTC
Description of problem:
In CIFS filesystems, when selinux is enforcing, setxattr returns 'permission denied', when selinux is closed, setxattr works well.

Version-Release number of selected component (if applicable):


How reproducible:
Set up samba, and mount from client, create a file, and set xattr on it.
In order to create new file, change shared directory's security attribute:
chcon -t samba_share_t /share/directory

Comment 2 Dan Horák 2012-05-22 09:31:20 UTC
sdparm is definitely not the right component, kernel seems more appropriate to me.

Jian Li, please post here the exact commands you run and their outputs, maybe even including lines from /var/log/messages.

Comment 3 Jeff Layton 2012-05-22 10:24:16 UTC
I doubt this is a kernel problem either...probably selinux-policy issue, but it's difficult to know for sure. The description doesn't make it clear whether you're disabling selinux on the client or server here to get it working.

Comment 4 Jian Li 2012-05-23 02:03:31 UTC
sorry, I couldn't manually reproduce it...

I have resubmit a job again, and waiting for result.

beaker job link:  (RHEL6.3-20120509.1)
https://beaker.engineering.redhat.com/jobs/233613

the test(/kernel/filesystems/cifs/xattr) is a standalone test, and setfattr after mounting some local shared directory.

Comment 5 Jian Li 2012-05-23 02:34:14 UTC
fail jobs:

https://beaker.engineering.redhat.com/jobs/236119

checking case, and resubmit job to test with selinux closed.

Comment 6 Jian Li 2012-05-23 04:13:40 UTC
job with selinux closed PASS:
https://beaker.engineering.redhat.com/jobs/236132

Try to manual test and resubmit one on the latest distro.

Comment 7 Jian Li 2012-05-23 04:15:54 UTC
job pass
https://beaker.engineering.redhat.com/jobs/236161

It's case that miss to configure some test file's selinux attribute 'samba_share_t'. 

So it's NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.