Bug 216760 - Mount with context or fscontext option fails
Mount with context or fscontext option fails
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2006-11-21 16:15 EST by Bojan Smojver
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-11-21 19:02:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bojan Smojver 2006-11-21 16:15:55 EST
Description of problem:
A command like this:

mount -vv -t iso9660 -o loop,ro,fscontext=system_u:object_r:public_content_t:s0
/var/distro/FC-6-i386-disc1.iso /var/distro/mnt/1

Fails with:

mount: translated fscontext 'system_u:object_r:public_content_t:s0' to
mount: going to use the loop device /dev/loop0
set_loop(/dev/loop0,/var/distro/FC-6-i386-disc1.iso,0): success
mount: setup loop device successfully
del_loop(/dev/loop0): success
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

The same used to work just a week ago or so. Since then, there has been an
update to selinux-policy, but I'm not sure if that's somehow related. Anyway,
the version of the policy is 2.4.3-10.fc6.

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

How reproducible:

Steps to Reproduce:
1. Attempt to mount an ISO filesystem while with fscontext or context option.

Actual results:
Mount fails.

Expected results:
Should work.

Additional info:
This is a mount done by hand. SELinux is running in targeted mode.
Comment 1 Bojan Smojver 2006-11-21 17:19:15 EST
Reverting back to util-linux-2.13-0.44.fc6 fixes the problem. So, it must be
something in the new version of this package.
Comment 2 Karel Zak 2006-11-21 18:46:00 EST
Hmm... you're right. The kernel in FC6 doesn't support context options that
contain commas :-(. I'll temporary disable this feature in util-linux. Thanks!
Comment 3 Bojan Smojver 2006-11-21 21:03:21 EST
So, this will show up in FC6 updates-testing?
Comment 4 Karel Zak 2006-11-22 04:38:32 EST
This will show up in FC6 updates (final updates, no testing).
Comment 5 Fedora Update System 2006-11-22 11:21:47 EST
util-linux-2.13-0.45.1.fc6 has been pushed for fc6, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.
Comment 6 Bojan Smojver 2006-11-22 14:40:51 EST
Thanks. The new version works fine.

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