Bug 445897 - /sbin/ybin: line 1142: /bin/mount: Permission denied
Summary: /sbin/ybin: line 1142: /bin/mount: Permission denied
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-09 18:00 UTC by James Laska
Modified: 2013-09-02 06:25 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-10 16:06:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
log file (77.90 KB, application/octet-stream)
2008-05-28 10:23 UTC, Roman Rakus
no flags Details

Description James Laska 2008-05-09 18:00:15 UTC
Description of problem:

# ybin
/sbin/ybin: line 1142: /bin/mount: Permission denied

Version-Release number of selected component (if applicable):
yaboot-1.3.13-12.fc9.ppc

How reproducible:
100%

Steps to Reproduce:
1. Run /sbin/ybin
  
Actual results:

# ybin
/sbin/ybin: line 1142: /bin/mount: Permission denied

Expected results:

No errors displayed

Additional info:

 It appears the PATH variable may not be making it's way into several bash
methods?  I've naively added an 'export PATH' stmt and this appears to resolve
the error message.

--- /tmp/ybin   2008-05-09 13:58:48.000000000 -0400
+++ /sbin/ybin  2008-04-17 13:41:53.000000000 -0400
@@ -34,7 +34,6 @@
 VERBOSE=0
 TMP="${TMPDIR:-/tmp}"
 export LC_COLLATE=C
-export PATH
 
 ## avoid older versions of ofpath shipped in debian boot-floppies etc.
 if [ -x "${PATH_PREFIX}/usr/sbin/ofpath" ] ; then

Comment 1 Bug Zapper 2008-05-14 10:55:42 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Roman Rakus 2008-05-27 16:33:15 UTC
Looks like SElinux policy troubles...

Comment 3 Roman Rakus 2008-05-28 10:20:36 UTC
ls -Z /sbin/bin
-rwxr-xr-x  root root system_u:object_r:bootloader_exec_t:s0 /sbin/ybin



Comment 4 Roman Rakus 2008-05-28 10:23:54 UTC
Created attachment 306916 [details]
log file

Comment 5 Daniel Walsh 2008-07-02 13:49:39 UTC
This looks like it should work with the latest FC-9 policy.

Fixed in selinux-policy-3.3.1-72.fc9

Comment 6 Kevin Fenzi 2008-07-02 16:07:53 UTC
I can confirm it works with the latest rawhide policy here. 
3.4.2-5.fc10.


Comment 7 James Laska 2008-11-10 16:05:52 UTC
Confirmed, same here using yaboot-1.3.14-6.fc10.ppc and selinux-policy-3.5.13-11.fc10.noarch


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