Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th May 2010, 07:13 PM
twohot's Avatar
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 243
linuxfirefox
SELinux prevents Bricscad

The absence of a strong AutoCAD alternative (native to linux) had been a source of concern for me. I had waitied so long for a good CAD software for Linux and its here ... Bricscad v10. http://www.bricsys.com/en_INTL/ What a relief for Linux Architects & Engineers!

Now there is a new problem.
SELinux won't allow it in Fedora and Bricsys supports only Red Hat & Ubuntu. I'm stuck again. Any idea how to make SELinux more merciful in my case? Meanwhile, their TGZ version works quite well (... but It'll be nice to run things normally)

Here is the SELinux Alert:

Summary:


Code:
SELinux is preventing /opt/bricsys/bricscad/v10/bricscad from loading
/opt/bricsys/bricscad/v10/libBrxGeo.so which requires text relocation.

Detailed Description:

The bricscad application attempted to load
/opt/bricsys/bricscad/v10/libBrxGeo.so which requires text relocation. This is a
potential security problem. Most libraries do not need this permission.
Libraries are sometimes coded incorrectly and request this permission. The
SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/opt/bricsys/bricscad/v10/libBrxGeo.so to use relocation as a workaround, until
the library is fixed. Please file a bug report.

Allowing Access:

If you trust /opt/bricsys/bricscad/v10/libBrxGeo.so to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/bricsys/bricscad/v10/libBrxGeo.so'" You must also change the default file
context files on the system in order to preserve them even on a full relabel.
"semanage fcontext -a -t textrel_shlib_t
'/opt/bricsys/bricscad/v10/libBrxGeo.so'"

Fix Command:

chcon -t textrel_shlib_t '/opt/bricsys/bricscad/v10/libBrxGeo.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /opt/bricsys/bricscad/v10/libBrxGeo.so [ file ]
Source                        bricscad
Source Path                   /opt/bricsys/bricscad/v10/bricscad
Port                          <Unknown>
Host                          ambassador
Source RPM Packages           bricscadv10-10.4.4-1
Target RPM Packages           bricscadv10-10.4.4-1
Policy RPM                    selinux-policy-3.6.32-89.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     ambassador
Platform                      Linux ambassador 2.6.31.12-174.2.3.fc12.i686 #1
                              SMP Mon Jan 18 20:22:46 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Sat 15 May 2010 02:54:40 AM WAT
Last Seen                     Sat 15 May 2010 02:54:40 AM WAT
Local ID                      cf5eba89-da53-4db7-b0a4-726d3282b67e
Line Numbers                  

Raw Audit Messages            

node=ambassador type=AVC msg=audit(1273888480.734:26): avc:  denied  { execmod } for  pid=2522 comm="bricscad" path="/opt/bricsys/bricscad/v10/libBrxGeo.so" dev=sdb3 ino=284435 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=ambassador type=SYSCALL msg=audit(1273888480.734:26): arch=40000003 syscall=125 success=no exit=-13 a0=22c5000 a1=215000 a2=5 a3=bff9d500 items=0 ppid=2512 pid=2522 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts1 ses=1 comm="bricscad" exe="/opt/bricsys/bricscad/v10/bricscad" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
Reply With Quote
  #2  
Old 16th May 2010, 07:06 AM
wmorri Offline
Registered User
 
Join Date: Dec 2008
Location: Potsdam, NY
Posts: 16
windows_7firefox
Re: SELinux prevents Bricscad

Hi,

I am going to assume that you followed the directions and tried the command that it gave you.

Code:
Fix Command:

chcon -t textrel_shlib_t '/opt/bricsys/bricscad/v10/libBrxGeo.so'
If you haven't tried that then I would start there.
Reply With Quote
  #3  
Old 16th May 2010, 04:05 PM
twohot's Avatar
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 243
linuxfirefox
Re: SELinux prevents Bricscad

Thanks wmorri:

You assumed correctly. LibBrxGeo.so was not the first file to get an AVC alert. It was the third ... The first two were just the same. Hence, SELinux is going to repeat that suggestion for a lot more than LibBrxGeo.so in that directory. I'm not used to the internal functioning of SELinux, so I don't know a faster/accurate way to a permanent solution and it seems a change of context, in this manner, will not survive a reboot ( ... again I may be wrong)
Reply With Quote
  #4  
Old 16th May 2010, 04:08 PM
wmorri Offline
Registered User
 
Join Date: Dec 2008
Location: Potsdam, NY
Posts: 16
windows_7firefox
Re: SELinux prevents Bricscad

I am not an expert when it comes to SELinux myself. I just wanted to make sure that you had tried that first.
Reply With Quote
  #5  
Old 16th May 2010, 04:46 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,149
linuxfedorafirefox
Re: SELinux prevents Bricscad

Quote:
Originally Posted by twohot View Post
Thanks wmorri:

You assumed correctly. LibBrxGeo.so was not the first file to get an AVC alert. It was the third ... The first two were just the same. Hence, SELinux is going to repeat that suggestion for a lot more than LibBrxGeo.so in that directory. I'm not used to the internal functioning of SELinux, so I don't know a faster/accurate way to a permanent solution and it seems a change of context, in this manner, will not survive a reboot ( ... again I may be wrong)
It will survive a reboot, but not a forced relabel.

And no, I don't know which one (or where) that is (yet).
Reply With Quote
  #6  
Old 16th May 2010, 09:37 PM
twohot's Avatar
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 243
linuxfirefox
Re: SELinux prevents Bricscad

Quote:
Originally Posted by jpollard View Post
It will survive a reboot, but not a forced relabel.

And no, I don't know which one (or where) that is (yet).
Reading up on SELinux (very geeky stuff ... not the kind of thing I'll decipher in one sitting). http://www.redhat.com/docs/manuals/e...pter-0013.html

I didn't get the last line, jpollard ... I mean the "which"
Reply With Quote
  #7  
Old 17th May 2010, 04:52 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,149
linuxfedorafirefox
Re: SELinux prevents Bricscad

Sorry - I ment which file to add the rule to. I don't know where the file is either.

It may be possible to set the rules using the "setsexxxx" utilities though, but again
I'm not sure since the only mods to the SELinux policy I've set were to enable samba
home directories.
Reply With Quote
Reply

Tags
bricscad, prevents, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selinux prevents wireless connection relayer Servers & Networking 0 24th January 2009 08:18 PM
SELinux prevents login after FC9 upgrade jak56 Security and Privacy 2 20th June 2008 12:04 AM
SELinux prevents logwatch email cwebster Security and Privacy 4 3rd June 2008 07:44 PM
SELinux prevents Squirrelmail from sending termdex Security and Privacy 1 2nd August 2006 12:21 PM


Current GMT-time: 06:54 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat